Commit 3bd7b086 by H.J. Lu Committed by H.J. Lu

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
parent ecd78fc9
2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
* configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
-fsanitize=address.
* configure: Regenerated.
* gdbasan.in: New file.
2013-12-04 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/58726
......@@ -27508,6 +27508,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)'
......
......@@ -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)
......
# Put a breakpoint on __asan_report_error to help with debugging buffer
# overflow.
b __asan_report_error
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment