* corelow.c (core_open): Check for core_gdbarch before calling
authorAleksandar Ristovski <aristovski@qnx.com>
Fri, 5 Jun 2009 18:08:53 +0000 (18:08 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Fri, 5 Jun 2009 18:08:53 +0000 (18:08 +0000)
gdbarch_target_signal_from_host.

gdb/ChangeLog
gdb/corelow.c

index 15d9c685f1f7ebd7871ed135d1aecb76adfd1afd..1860076742bd75f46aa5c43cdfdc622832a85093 100644 (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.
index 947fe1fb042d8636e77e424bf7a491335bcc8f51..7956bef6b915f61b7fcc347c454c794f0f2a38ac 100644 (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);