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
hellow.s - code listing:
compile: $
gcc -nostdlib -static -g hellow.s -o hellow
when run, only the line-to-be-executed-next is displayed:
in order to show registers, must manually type
i r