diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-03-22 20:39:28 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-03-22 20:39:28 +0000 |
commit | 0da462514a01205302e1a34bd9cdfc7bec87b814 (patch) | |
tree | f4a1112a2ceac725da8c68f5321407a889d8c3e1 /gdb/exceptions.h | |
parent | a92d1f522c964f92a465fda2a4af5a509def0312 (diff) | |
download | gdb-0da462514a01205302e1a34bd9cdfc7bec87b814.tar.gz |
gdb/
* exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
* remote.c (trace_error): Remove the special handling of '2'.
(readchar) <SERIAL_EOF>
(readchar) <SERIAL_ERROR>
(getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
(remote_get_trace_status): Call throw_exception if EX is
TARGET_CLOSE_ERROR.
* utils.c (perror_with_name): Rename to ...
(throw_perror_with_name): ... here. New parameter errcode, describe it
in the function comment.
(perror_with_name): New function wrapper.
* utils.h (enum errors): New stub declaration.
(throw_perror_with_name): New declaration.
gdb/testsuite/
* gdb.server/server-kill.c: New file.
* gdb.server/server-kill.exp: New file.
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r-- | gdb/exceptions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h index 0d6771966ee..630eb2e56bd 100644 --- a/gdb/exceptions.h +++ b/gdb/exceptions.h @@ -86,6 +86,10 @@ enum errors { /* DW_OP_GNU_entry_value resolving failed. */ NO_ENTRY_VALUE_ERROR, + /* Target throwing an error has been closed. Current command should be + aborted as the inferior state is no longer valid. */ + TARGET_CLOSE_ERROR, + /* Add more errors here. */ NR_ERRORS }; |