From "Serge Nikulin" <nikulin@actsw.amat.com>:
authorAndrew Cagney <cagney@redhat.com>
Fri, 28 Apr 2000 05:50:19 +0000 (05:50 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 28 Apr 2000 05:50:19 +0000 (05:50 +0000)
Don't trip on NULL function name in sigtramp.

gdb/ChangeLog
gdb/m68k-tdep.c

index bec72c3d99d3851fb01cefd59f925d7800fc9ec0..38c03fa7362b7ae30c96c34413872b57997bdcc7 100644 (file)
@@ -1,3 +1,9 @@
+Fri Apr 28 15:31:10 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From "Serge Nikulin" <nikulin@actsw.amat.com>:
+       * m68k-tdep.c (delta68_in_sigtramp): Return 0 when the function
+       name is unknow.
+
 2000-04-27  Michael Snyder  <msnyder@seadog.cygnus.com>
 
        * gdbarch.sh (d10v_daddr_p, d10v_iaddr_p, d10v_convert_daddr_to_raw,
index ab3adc583e2097d374a0745147c4492cea20c920..359d61f85aa8545b0dcfeba131a1b3a6bc8a4468 100644 (file)
@@ -91,7 +91,10 @@ delta68_in_sigtramp (pc, name)
      CORE_ADDR pc;
      char *name;
 {
-  return strcmp (name, "_sigcode") == 0;
+  if (name != NULL)
+    return strcmp (name, "_sigcode") == 0;
+  else
+    return 0;
 }
 
 CORE_ADDR