This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] corelow.c


Committed as per: http://sourceware.org/ml/gdb-patches/2009-06/msg00097.html

ChangeLog:

2009-06-05 Aleksandar Ristovski <aristovski@qnx.com>

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




Thanks,
--
Aleksandar Ristovski
QNX Software Systems
Index: gdb/corelow.c
===================================================================
RCS file: /cvs/src/src/gdb/corelow.c,v
retrieving revision 1.85
diff -u -p -r1.85 corelow.c
--- gdb/corelow.c	3 Jun 2009 18:50:36 -0000	1.85
+++ gdb/corelow.c	5 Jun 2009 18:08:29 -0000
@@ -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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]