-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
Labels
Milestone
Comments
I am guessing your GDB is using python2 and not python3 |
Thanks, in the end, only use the parameter ‘--with-python=/usr/bin/python3.5’ to compile successfully and use it normally.
I also want to ask a question: How to upgrade the gdb version of gdb-multiarch? His gdb version is not consistent with the compiled gdb version
➜ ~$ gdb-multiarch -v
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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".
➜ ~$ gdb -v
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.
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年5月13日(星期四) 晚上9:22
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [hugsy/gef] gdb10.2 has an error with the gef plugin (#647)
I am guessing your GDB is using python2 and not python3
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I am not sure how you are building your gdb, but I think you can just use |
Thank you. According to your suggestion, my problem is solved. You can debug the program of mips architecture without using gdb-multiarch.
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年5月13日(星期四) 晚上9:29
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [hugsy/gef] gdb10.2 has an error with the gef plugin (#647)
I am not sure how you are building your gdb, but I think you can just use --enable-targets=all on your normal build.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I'm glad it worked out for you. |
Hello, I want to ask a question:
I want to use gdb to debug mips architecture programs, but the compiled gdb does not support stack, vmmap and other instructions. After using the gef plug-in, the vmmap instruction shows the following exceptions:
0x400868 <main+24> sw gp, 16(sp)
0x40086c <main+28> sw a0, 536(s8)
0x400870 <main+32> sw a1, 540(s8)
→ 0x400874 <main+36> lui v0, 0x40
0x400878 <main+40> lhu v0, 3084(v0)
0x40087c <main+44> sh v0, 24(s8)
0x400880 <main+48> addiu v0, s8, 26
0x400884 <main+52> li v1, 498
0x400888 <main+56> move a2, v1
──────────────────────────────────────────────────────────────────────────────────────────────── threads ────
[#0] Id 1, stopped 0x400874 in main (), reason: BREAKPOINT
──────────────────────────────────────────────────────────────────────────────────────────────── trace ────
[#0] 0x400874 → main()
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
gef➤ vmmap
[ Legend: Code | Heap | Stack ]
Start End Offset Perm Path
0x00000000 0xffffffff 0x00000000 rwx /root/Desktop/pwn-test/mips-pwn/stack_bof_2
gef➤ stack
Undefined command: "stack". Try "help".
The vmmap command cannot display libc, and the stack command cannot be used;What is going on?
gdb version:10.2 --with-python=python3.5 --enable-targets=all
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年5月13日(星期四) 晚上10:35
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [hugsy/gef] gdb10.2 has an error with the gef plugin (#647)
I'm glad it worked out for you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
please ask questions on our discord |
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
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?
The text was updated successfully, but these errors were encountered: