aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-12-20 19:18:15 +0000
committerPedro Alves <palves@redhat.com>2016-12-20 19:18:15 +0000
commit9bfe0298332782a9c082fb475bdf8eeeef8cf45e (patch)
tree39095231b33ec9328274bf369f04a0e56f56612b /gdb/ada-lang.c
parentada8ff522ce970e11dae4a3463c899b64e6f5006 (diff)
downloadgdb-9bfe0298332782a9c082fb475bdf8eeeef8cf45e.zip
gdb-9bfe0298332782a9c082fb475bdf8eeeef8cf45e.tar.gz
gdb-9bfe0298332782a9c082fb475bdf8eeeef8cf45e.tar.bz2
gdb: Fix C and C++03 builds
The readline/sjlj-exceptions fix added an unconditional use of noexcept, but that's only valid C++11, and 7.12 must build with C and C++03 too. Fix this by adding a GDB_EXCEPT macro that compiles away to nothing in C, and to throw() in C++03, which I've confirmed fixes the original issue just the same as noexcept, with GCC 7 + -std=gnu+03 + sjlj-exceptions. gdb/ChangeLog: 2016-12-20 Pedro Alves <palves@redhat.com> PR gdb/20977 * event-top.c (GDB_NOEXCEPT): Define. (gdb_rl_callback_read_char_wrapper_noexcept): Use GDB_NOEXCEPT instead of noexcept and use (void) instead of (). (gdb_rl_callback_handler): Use GDB_NOEXCEPT instead of noexcept.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions