aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbasan.in
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2013-12-04 14:53:36 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2013-12-04 06:53:36 -0800
commit3bd7b086fdd32ce44e735929351bfbc832e5bfaa (patch)
tree4b10e399d12e88199b5297e69184574fb0ede80d /gcc/gdbasan.in
parentecd78fc9ab2350579bfdcd25676a2864bbf4b04b (diff)
downloadgcc-3bd7b086fdd32ce44e735929351bfbc832e5bfaa.zip
gcc-3bd7b086fdd32ce44e735929351bfbc832e5bfaa.tar.gz
gcc-3bd7b086fdd32ce44e735929351bfbc832e5bfaa.tar.bz2
Put a breakpoint on __asan_report_error for ASAN
* configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains -fsanitize=address. * configure: Regenerated. * gdbasan.in: New file. From-SVN: r205669
Diffstat (limited to 'gcc/gdbasan.in')
-rw-r--r--gcc/gdbasan.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gdbasan.in b/gcc/gdbasan.in
new file mode 100644
index 0000000..cf05825
--- /dev/null
+++ b/gcc/gdbasan.in
@@ -0,0 +1,3 @@
+# Put a breakpoint on __asan_report_error to help with debugging buffer
+# overflow.
+b __asan_report_error