diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-28 05:50:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-28 05:50:19 +0000 |
commit | 1bd54964ac860e975e1e76d2398f48d01beb5feb (patch) | |
tree | 9a6696e2a7e4d5c00cb25c8ff6f0c60ee0c5d284 /gdb/m68k-tdep.c | |
parent | 2000-04-27 Michael Snyder <msnyder@seadog.cygnus.com> (diff) | |
download | binutils-gdb-1bd54964ac860e975e1e76d2398f48d01beb5feb.tar.gz binutils-gdb-1bd54964ac860e975e1e76d2398f48d01beb5feb.tar.bz2 binutils-gdb-1bd54964ac860e975e1e76d2398f48d01beb5feb.zip |
From "Serge Nikulin" <nikulin@actsw.amat.com>:
Don't trip on NULL function name in sigtramp.
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r-- | gdb/m68k-tdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |