From e0ddd55c66b8b8f00545c705b87e123aa3af9416 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 12 Nov 2024 20:15:14 +0900 Subject: [PATCH] Update README.md Attempt to fix formatting. --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11ef518..bde1f2c 100644 --- a/README.md +++ b/README.md @@ -29,20 +29,24 @@ If a release build is desired, use `cmake -S -B buildRelease ## With gdb 1. Start the debugger - + ``` gdb ./my_program + ``` 2. Set the env variable to use AnotherMemCheck. - + ``` set environment LD_PRELOAD ./path/to/libAnotherMemCheck.so + ``` 3. Set debug breakpoints if you want to step through things - + ``` b my_source_file.c:123 + ``` 4. Run it - + ``` r --my-arg-one --my-arg-two + ``` AnotherMemCheck should output when memory is handled as the debugger runs, even when stepping through from breakpoints.