Skip to content

Commit cdc0470

Browse files
committed
docs: separate gdb and strace
1 parent 2a90a5c commit cdc0470

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ write(1, "Hello!\n", 7Hello!
154154
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], NULL, 8) = 0
155155
exit_group(0) = ?
156156
+++ exited with 0 +++
157+
```
158+
159+
#### `gdb` (QEMU)
160+
161+
```
157162
$ qemu-aarch64 -L /usr/aarch64-redhat-linux/sys-root/fc41/usr -g 1234 shexec shcode_hello.bin &
158163
$ gdb
159164
gef➤ set architecture aarch64
@@ -297,7 +302,13 @@ write(1, "Hello, World!\n\0", 15Hello, World!
297302
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], NULL, 8) = 0
298303
exit_group(0) = ?
299304
+++ exited with 0 +++
305+
```
306+
307+
#### `gdb` (QEMU)
308+
309+
```
300310
$ qemu-x86_64 -g 1234 build/linux/x64/shexec build/linux/x64/shcode_hello.bin &
311+
$ gdb
301312
gef➤ target remote localhost:1234
302313
(remote) gef➤ b _start
303314
(remote) gef➤ c

0 commit comments

Comments
 (0)