* corelow.c (core_open): Check for core_gdbarch before calling

gdbarch_target_signal_from_host.
This commit is contained in:
Aleksandar Ristovski 2009-06-05 18:08:53 +00:00
parent 68c1b02dc9
commit b3ed98d264
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-06-05 Aleksandar Ristovski <aristovski@qnx.com>
* corelow.c (core_open): Check for core_gdbarch before calling
gdbarch_target_signal_from_host.
2009-06-05 Tom Tromey <tromey@redhat.com>
* c-exp.y (parse_number): Don't use K&R definition.

View File

@ -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);