Skip to content

Commit ce9c7b6

Browse files
authored
Merge pull request #4 from jay16213/develop
update readme
2 parents 891d57f + 8f8281e commit ce9c7b6

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
SDB
22
===
33

4+
[![Develop CI](https://github.com/jay16213/sdb/actions/workflows/develop.yml/badge.svg)](https://github.com/jay16213/sdb/actions/workflows/develop.yml)
5+
46
simple C debugger like gdb
57

68
### How can I do with SDB ?
@@ -82,8 +84,38 @@ show the help message
8284
terminate the debugger
8385

8486
## Example
87+
![example.gif](./example.gif)
88+
8589
```
86-
TODO...
90+
$ ./sdb sample/hello64
91+
** program 'sample/hello64' load. entry point: 0x4000b0, vaddr: 0x4000b0, offset: 0xb0, size: 0x23
92+
sdb> disasm 0x4000b0
93+
4000b0: b8 04 00 00 00 mov eax, 4
94+
4000b5: bb 01 00 00 00 mov ebx, 1
95+
4000ba: b9 d4 00 60 00 mov ecx, 0x6000d4
96+
4000bf: ba 0e 00 00 00 mov edx, 0xe
97+
4000c4: cd 80 int 0x80
98+
4000c6: b8 01 00 00 00 mov eax, 1
99+
4000cb: bb 00 00 00 00 mov ebx, 0
100+
4000d0: cd 80 int 0x80
101+
4000d2: c3 ret
102+
sdb> b 0x4000c6
103+
sdb> l
104+
0: 4000c6
105+
sdb> run
106+
** pid 11796
107+
hello, world!
108+
** breakpoint @ 4000c6: b8 01 00 00 00 mov eax, 1
109+
sdb> set rip 0x4000b0
110+
sdb> cont
111+
hello, world!
112+
** breakpoint @ 4000c6: b8 01 00 00 00 mov eax, 1
113+
sdb> delete 0
114+
** breakpoint 0 deleted.
115+
sdb> set rip 0x4000b0
116+
sdb> cont
117+
hello, world!
118+
** child process 11796 terminated normally (code 0)
87119
```
88120

89121
## License

example.gif

6.55 MB
Loading

0 commit comments

Comments
 (0)