Update README.md
Attempt to fix formatting.
This commit is contained in:
parent
1792faaafe
commit
e0ddd55c66
1 changed files with 8 additions and 4 deletions
12
README.md
12
README.md
|
@ -29,20 +29,24 @@ If a release build is desired, use `cmake -S <project_dir> -B buildRelease
|
||||||
## With gdb
|
## With gdb
|
||||||
|
|
||||||
1. Start the debugger
|
1. Start the debugger
|
||||||
|
```
|
||||||
gdb ./my_program
|
gdb ./my_program
|
||||||
|
```
|
||||||
|
|
||||||
2. Set the env variable to use AnotherMemCheck.
|
2. Set the env variable to use AnotherMemCheck.
|
||||||
|
```
|
||||||
set environment LD_PRELOAD ./path/to/libAnotherMemCheck.so
|
set environment LD_PRELOAD ./path/to/libAnotherMemCheck.so
|
||||||
|
```
|
||||||
|
|
||||||
3. Set debug breakpoints if you want to step through things
|
3. Set debug breakpoints if you want to step through things
|
||||||
|
```
|
||||||
b my_source_file.c:123
|
b my_source_file.c:123
|
||||||
|
```
|
||||||
|
|
||||||
4. Run it
|
4. Run it
|
||||||
|
```
|
||||||
r --my-arg-one --my-arg-two
|
r --my-arg-one --my-arg-two
|
||||||
|
```
|
||||||
|
|
||||||
AnotherMemCheck should output when memory is handled as the debugger runs, even
|
AnotherMemCheck should output when memory is handled as the debugger runs, even
|
||||||
when stepping through from breakpoints.
|
when stepping through from breakpoints.
|
||||||
|
|
Loading…
Reference in a new issue