-
-
Notifications
You must be signed in to change notification settings - Fork 784
Description
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
attachment :https://pan.baidu.com/s/1OShEy3egenmYb7UxnWrdAw password:nk18