peda
peda copied to clipboard
run ppc32 binary => usual display missing
hellow.s - code listing:
.data
hellow:
.ascii "Hello World\n"
.text
.globl _start
_start:
li 0, 4
li 3, 1
lis 4, hellow@ha
addi 4, 4, hellow@l
li 5, 12
sc
li 0,1
li 3,0
sc
compile:
$ gcc -nostdlib -static -g hellow.s -o hellow
when run, only the line-to-be-executed-next is displayed:
$ gdb -q ./hellow Reading symbols from /home/user/hellow...done. gdb-peda$ b *_start Breakpoint 1 at 0x100000b8: file hellow.s, line 8. gdb-peda$ r Breakpoint 1, _start () at hellow.s:8 8 li 0, 4 gdb-peda$
in order to show registers, must manually type i r
PEDA v1 is x86 only, pls check other forks for your feature.