Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdb10.2 has an error with the gef plugin #647

Closed
D1ag0n-Young opened this issue May 13, 2021 · 8 comments
Closed

gdb10.2 has an error with the gef plugin #647

D1ag0n-Young opened this issue May 13, 2021 · 8 comments

Comments

@D1ag0n-Young
Copy link

GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word".
File "~/.gdbinit-gef.py", line 965
pattern_libc_ver = re.compile(rb"glibc (\d+).(\d+)")
^
SyntaxError: invalid syntax

What is the cause of this?

@Grazfather
Copy link
Collaborator

I am guessing your GDB is using python2 and not python3

@D1ag0n-Young
Copy link
Author

D1ag0n-Young commented May 13, 2021 via email

@Grazfather
Copy link
Collaborator

I am not sure how you are building your gdb, but I think you can just use --enable-targets=all on your normal build.

@D1ag0n-Young
Copy link
Author

D1ag0n-Young commented May 13, 2021 via email

@Grazfather
Copy link
Collaborator

I'm glad it worked out for you.

@D1ag0n-Young
Copy link
Author

D1ag0n-Young commented May 14, 2021 via email

@Grazfather
Copy link
Collaborator

please ask questions on our discord

@hugsy hugsy added this to the 2021-07 Release milestone Jun 11, 2021
@BlackBird-BB
Copy link

A similar question just happened on me. I'm wondering how to let gdb use python3 interpret script instead of python2 on Ubuntu1604.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants