aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.c
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2009-06-05 18:08:53 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2009-06-05 18:08:53 +0000
commitb3ed98d264e2938d253d0b08b0bb51fbdc65c75b (patch)
tree90f4c837bf2f06c5f6320af15dd29aaa0ed63f13 /gdb/corelow.c
parent68c1b02dc9066d3871b7f578ebd57630be37dbfe (diff)
downloadfsf-binutils-gdb-b3ed98d264e2938d253d0b08b0bb51fbdc65c75b.zip
fsf-binutils-gdb-b3ed98d264e2938d253d0b08b0bb51fbdc65c75b.tar.gz
fsf-binutils-gdb-b3ed98d264e2938d253d0b08b0bb51fbdc65c75b.tar.bz2
* corelow.c (core_open): Check for core_gdbarch before calling
gdbarch_target_signal_from_host.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r--gdb/corelow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 947fe1f..7956bef6 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -421,7 +421,9 @@ core_open (char *filename, int from_tty)
name ..._from_host(). */
printf_filtered (_("Program terminated with signal %d, %s.\n"), siggy,
target_signal_to_string (
- gdbarch_target_signal_from_host (core_gdbarch, siggy)));
+ (core_gdbarch != NULL) ?
+ gdbarch_target_signal_from_host (core_gdbarch, siggy)
+ : siggy));
/* Fetch all registers from core file. */
target_fetch_registers (get_current_regcache (), -1);