aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2013-06-17 06:14:24 +0000
committerPierre Muller <muller@sourceware.org>2013-06-17 06:14:24 +0000
commit2d50327282ef514c1c855c2ad942336ddafe1d77 (patch)
tree1e0415ea43378b8a4d58d06174b467cdd35e3aba
parentb6857b1e6c7b055d1082ee4e7d7e08f5b9a3ebc3 (diff)
downloadgdb-2d50327282ef514c1c855c2ad942336ddafe1d77.zip
gdb-2d50327282ef514c1c855c2ad942336ddafe1d77.tar.gz
gdb-2d50327282ef514c1c855c2ad942336ddafe1d77.tar.bz2
* corelow.c (core_open): Print GDB signal name instead of target
signal number.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/corelow.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c4a98da..8a291ac 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-17 Pierre Muller <muller@sourceware.org>
+
+ * corelow.c (core_open): Print GDB signal name instead of target
+ signal number.
+
2013-06-17 Mike Frysinger <vapier@gentoo.org>
* .gitignore: Add /gcore.
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 0bfa743..0aa5d97 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -444,8 +444,8 @@ core_open (char *filename, int from_tty)
siggy)
: gdb_signal_from_host (siggy));
- printf_filtered (_("Program terminated with signal %d, %s.\n"),
- siggy, gdb_signal_to_string (sig));
+ printf_filtered (_("Program terminated with signal %s, %s.\n"),
+ gdb_signal_to_name (sig), gdb_signal_to_string (sig));
}
/* Fetch all registers from core file. */