From: Andrew Cagney Date: Fri, 28 Apr 2000 05:50:19 +0000 (+0000) Subject: From "Serge Nikulin" : X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bd54964ac860e975e1e76d2398f48d01beb5feb;p=binutils-gdb.git From "Serge Nikulin" : Don't trip on NULL function name in sigtramp. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bec72c3d99d..38c03fa7362 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Fri Apr 28 15:31:10 2000 Andrew Cagney + + From "Serge Nikulin" : + * m68k-tdep.c (delta68_in_sigtramp): Return 0 when the function + name is unknow. + 2000-04-27 Michael Snyder * gdbarch.sh (d10v_daddr_p, d10v_iaddr_p, d10v_convert_daddr_to_raw, diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index ab3adc583e2..359d61f85aa 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -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