diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/gdbreplay.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 12 |
4 files changed, 15 insertions, 9 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 00312e6..a3599d72 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,11 @@ 2019-04-08 Tom Tromey <tom@tromey.com> + * gdbreplay.c: Update. + * linux-low.c: Update. + * server.c: Update. + +2019-04-08 Tom Tromey <tom@tromey.com> + * server.c: Use C++ exception handling. * linux-low.c: Use C++ exception handling. * gdbreplay.c: Use C++ exception handling. diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index bf566ab..ca0a9d3 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -532,7 +532,7 @@ main (int argc, char *argv[]) { captured_main (argc, argv); } - catch (const gdb_exception_RETURN_MASK_ALL &exception) + catch (const gdb_exception &exception) { if (exception.reason == RETURN_ERROR) { diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 6ca79d5..4b1a211 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -1540,7 +1540,7 @@ linux_detach_one_lwp (struct lwp_info *lwp) if (the_low_target.prepare_to_resume != NULL) the_low_target.prepare_to_resume (lwp); } - catch (const gdb_exception_RETURN_MASK_ERROR &ex) + catch (const gdb_exception_error &ex) { if (!check_ptrace_stopped_lwp_gone (lwp)) throw_exception (ex); @@ -4511,7 +4511,7 @@ linux_resume_one_lwp (struct lwp_info *lwp, { linux_resume_one_lwp_throw (lwp, step, signal, info); } - catch (const gdb_exception_RETURN_MASK_ERROR &ex) + catch (const gdb_exception_error &ex) { if (!check_ptrace_stopped_lwp_gone (lwp)) throw_exception (ex); diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 99ce21e..f2c8f15 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -472,7 +472,7 @@ handle_btrace_general_set (char *own_buf) write_ok (own_buf); } - catch (const gdb_exception_RETURN_MASK_ERROR &exception) + catch (const gdb_exception_error &exception) { sprintf (own_buf, "E.%s", exception.what ()); } @@ -1881,7 +1881,7 @@ handle_qxfer_btrace (const char *annex, if (result != 0) memcpy (cs.own_buf, cache.buffer, cache.used_size); } - catch (const gdb_exception_RETURN_MASK_ERROR &exception) + catch (const gdb_exception_error &exception) { sprintf (cs.own_buf, "E.%s", exception.what ()); result = -1; @@ -1952,7 +1952,7 @@ handle_qxfer_btrace_conf (const char *annex, if (result != 0) memcpy (cs.own_buf, cache.buffer, cache.used_size); } - catch (const gdb_exception_RETURN_MASK_ERROR &exception) + catch (const gdb_exception_error &exception) { sprintf (cs.own_buf, "E.%s", exception.what ()); result = -1; @@ -3553,7 +3553,7 @@ detach_or_kill_for_exit_cleanup () { detach_or_kill_for_exit (); } - catch (const gdb_exception_RETURN_MASK_ALL &exception) + catch (const gdb_exception &exception) { fflush (stdout); fprintf (stderr, "Detach or kill failed: %s\n", @@ -3927,7 +3927,7 @@ captured_main (int argc, char *argv[]) } } } - catch (const gdb_exception_RETURN_MASK_ERROR &exception) + catch (const gdb_exception_error &exception) { fflush (stdout); fprintf (stderr, "gdbserver: %s\n", exception.what ()); @@ -3954,7 +3954,7 @@ main (int argc, char *argv[]) { captured_main (argc, argv); } - catch (const gdb_exception_RETURN_MASK_ALL &exception) + catch (const gdb_exception &exception) { if (exception.reason == RETURN_ERROR) { |