Commit b008327 1 parent 03be57b commit b008327 Copy full SHA for b008327
File tree 1 file changed +15
-1
lines changed
docs/dev/modules/ROOT/pages
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,14 @@ When AddressSanitizer finds a bug you can set a breakpoint
32
32
* right before it generates the error report by setting a breakpoint on `__asan::ReportGenericError`
33
33
* right after the error generation by setting a breakpoint on `__asan::Die`
34
34
35
- NOTE: you can also set the environment variable `ASAN_OPTIONS=abort_on_error=1` to
35
+ [TIP]
36
+ ====
37
+ you can also set the environment variable `ASAN_OPTIONS=abort_on_error=1` to
36
38
get the same effect as in the second case
39
+ ----
40
+ > ASAN_OPTIONS=abort_on_error=1 gdb <executable to debug>
41
+ ----
42
+ ====
37
43
38
44
[TIP]
39
45
====
@@ -43,3 +49,11 @@ It is advised to disable the leak detection while looking for a bug as follows
43
49
> ASAN_OPTIONS=detect_leaks=0 gdb <executable to debug>
44
50
----
45
51
====
52
+
53
+ [TIP]
54
+ ====
55
+ To combine multiple address sanitizer options in the command line, separate them with a `:` like below
56
+ ----
57
+ > ASAN_OPTIONS=detect_leaks=0:abort_on_error=1 gdb <executable to debug>
58
+ ----
59
+ ====
You can’t perform that action at this time.
0 commit comments