diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2013-12-04 14:53:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2013-12-04 06:53:36 -0800 |
commit | 3bd7b086fdd32ce44e735929351bfbc832e5bfaa (patch) | |
tree | 4b10e399d12e88199b5297e69184574fb0ede80d /gcc/configure.ac | |
parent | ecd78fc9ab2350579bfdcd25676a2864bbf4b04b (diff) | |
download | gcc-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/configure.ac')
-rw-r--r-- | gcc/configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index 91a22d5..5cf3825 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -5245,6 +5245,14 @@ fi echo "source ${srcdir}/gdbinit.in" >> .gdbinit echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit +# Put a breakpoint on __asan_report_error to help with debugging buffer +# overflow. +case "$CFLAGS" in +*-fsanitize=address*) + echo "source ${srcdir}/gdbasan.in" >> .gdbinit + ;; +esac + gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)' AC_SUBST(gcc_tooldir) AC_SUBST(dollar) |