aboutsummaryrefslogtreecommitdiff
path: root/gdb/README
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-08-18 15:32:46 -0600
committerTom Tromey <tom@tromey.com>2018-10-03 15:19:06 -0600
commitf35d5adea1cee8ce9141ad85a7e59d008c2e4d42 (patch)
tree88cb5d24575333e1977ac5aab23466d476992288 /gdb/README
parent1dffa580e7e083a43216fd7cbcadd72c760cf29d (diff)
downloadbinutils-f35d5adea1cee8ce9141ad85a7e59d008c2e4d42.zip
binutils-f35d5adea1cee8ce9141ad85a7e59d008c2e4d42.tar.gz
binutils-f35d5adea1cee8ce9141ad85a7e59d008c2e4d42.tar.bz2
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 <tom@tromey.com> * 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 <tom@tromey.com> * gdb.texinfo (Configure Options): Document --enable-ubsan.
Diffstat (limited to 'gdb/README')
-rw-r--r--gdb/README7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/README b/gdb/README
index 5881be2..69ba0eb 100644
--- a/gdb/README
+++ b/gdb/README
@@ -538,6 +538,13 @@ more obscure GDB `configure' options are not listed here.
the compiler, which will fail the compilation if the compiler
outputs any warning messages.
+`--enable-ubsan'
+ Enable the GCC undefined behavior sanitizer. By default this is
+ disabled in GDB releases, but enabled when building from git.
+ The undefined behavior sanitizer checks for C++ undefined
+ behavior. It has a performance cost, so if you are looking at
+ GDB's performance, you should disable it.
+
`configure' accepts other options, for compatibility with configuring
other GNU tools recursively.