From f35d5adea1cee8ce9141ad85a7e59d008c2e4d42 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 18 Aug 2018 15:32:46 -0600 Subject: Add --enable-ubsan This adds --enable-ubsan to gdb's configure. By default it is enabled in development mode, and disabled otherwise. This passes both -fsanitize=undefined and -fno-sanitize-recover=undefined to compilations, so that undefined behavior violations will be sure to cause test failures. gdb/ChangeLog 2018-10-03 Tom Tromey * README: Mention --enable-ubsan. * NEWS: Mention --enable-ubsan. * acinclude.m4: Include sanitize.m4. * configure: Rebuild. * configure.ac: Call AM_GDB_UBSAN. * sanitize.m4: New file. gdb/doc/ChangeLog 2018-10-03 Tom Tromey * gdb.texinfo (Configure Options): Document --enable-ubsan. --- gdb/NEWS | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 00adcd4..b409aa4 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -108,6 +108,16 @@ CSKY GNU/LINUX csky*-*-linux ** The gdb.Progspace type has a new 'objfiles' method, which returns the list of objfiles associated to that program space. +* Configure changes + +--enable-ubsan + + Enable or disable the undefined behavior sanitizer. Release + versions of GDB disable this by default if it is available, but + development versions enable it. Enabling this can cause a + performance penalty. The undefined behavior sanitizer was first + introduced in GCC 4.9. + *** Changes in GDB 8.2 * The 'set disassembler-options' command now supports specifying options -- cgit v1.1