diff options
author | Pedro Alves <palves@redhat.com> | 2013-10-22 12:16:51 +0100 |
---|---|---|
committer | Tom Tromey <tromey@sourceware.org> | 2013-10-25 14:02:58 +0000 |
commit | 4e2250753386b308ed148b39a4a3bac00f69f198 (patch) | |
tree | 81f44eac024fca111b83c9038801ffa42d8170b8 /gdb/darwin-nat.c | |
parent | c8fde1b179bf0a7145f62bba50b95f541e72652b (diff) | |
download | gdb-4e2250753386b308ed148b39a4a3bac00f69f198.zip gdb-4e2250753386b308ed148b39a4a3bac00f69f198.tar.gz gdb-4e2250753386b308ed148b39a4a3bac00f69f198.tar.bz2 |
Fix up a couple oddities in GDB's signal names and strings.
- The Mach exception/signals escaped the TARGET_ -> GDB_ prefix change
done a while ago, but there's no real reason for that. I grepped
for TARGET_EXC and fixed all found, which unsurprisingly, means
darwin-nat.c needed fixing. I think the change there is as obvious
and trivial as it can get, so I'd be quite surprised if this broke
anything there somehow.
- GDB_SIGNAL_LAST's description string was unnecessarily inconsistent
with the enum name.
Built on x86_64 Fedora 17.
gdb/
2013-10-22 Pedro Alves <palves@redhat.com>
* include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
GDB_EXC_BAD_ACCESS.
(TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
(TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
(TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
(TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
(TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
(GDB_SIGNAL_LAST): Change description string.
* common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
Adjust to signal renaming.
* darwin-nat.c (darwin_decode_message): Likewise.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r-- | gdb/darwin-nat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 153ffd0..6995c25 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -897,16 +897,16 @@ darwin_decode_message (mach_msg_header_t *hdr, switch (thread->event.ex_type) { case EXC_BAD_ACCESS: - status->value.sig = TARGET_EXC_BAD_ACCESS; + status->value.sig = GDB_EXC_BAD_ACCESS; break; case EXC_BAD_INSTRUCTION: - status->value.sig = TARGET_EXC_BAD_INSTRUCTION; + status->value.sig = GDB_EXC_BAD_INSTRUCTION; break; case EXC_ARITHMETIC: - status->value.sig = TARGET_EXC_ARITHMETIC; + status->value.sig = GDB_EXC_ARITHMETIC; break; case EXC_EMULATION: - status->value.sig = TARGET_EXC_EMULATION; + status->value.sig = GDB_EXC_EMULATION; break; case EXC_SOFTWARE: if (thread->event.ex_data[0] == EXC_SOFT_SIGNAL) @@ -928,11 +928,11 @@ darwin_decode_message (mach_msg_header_t *hdr, } } else - status->value.sig = TARGET_EXC_SOFTWARE; + status->value.sig = GDB_EXC_SOFTWARE; break; case EXC_BREAKPOINT: /* Many internal GDB routines expect breakpoints to be reported - as GDB_SIGNAL_TRAP, and will report TARGET_EXC_BREAKPOINT + as GDB_SIGNAL_TRAP, and will report GDB_EXC_BREAKPOINT as a spurious signal. */ status->value.sig = GDB_SIGNAL_TRAP; break; |