diff options
author | Gary Benson <gbenson@redhat.com> | 2020-07-13 14:47:44 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2020-07-13 14:47:44 +0100 |
commit | 2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb (patch) | |
tree | 33bbc8cf61298451c57238118d44bd92d9d9ba10 /gdb/memory-map.c | |
parent | 3f00c730acee9d452ba81a3083f2c02d13c9f312 (diff) | |
download | gdb-2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb.zip gdb-2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb.tar.gz gdb-2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb.tar.bz2 |
Use volatile pointers when attempting to trigger SIGSEGVs
Clang fails to compile a number of files with the following warning:
indirection of non-volatile null pointer will be deleted, not trap
[-Wnull-dereference]. This commit qualifies the relevant pointers
with 'volatile'.
gdb/testsuite/ChangeLog:
* gdb.base/bigcore.c (main): Use a volatile pointer when
attempting to trigger a SIGSEGV.
* gdb.base/gcore-relro-pie.c (break_here): Likewise.
* gdb.base/gcore-tls-pie.c (break_here): Likewise.
* gdb.base/savedregs.c (thrower): Likewise.
* gdb.mi/mi-syn-frame.c (bar): Likewise.
Diffstat (limited to 'gdb/memory-map.c')
0 files changed, 0 insertions, 0 deletions