This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Tweak SPARC Solaris signal trampoline recognition
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sun, 14 Aug 2005 00:09:16 +0200 (CEST)
- Subject: [commit] Tweak SPARC Solaris signal trampoline recognition
Apparently Solaris does something different with signal handlers if
you link in the threads library. There are several library functions
on the stack before the user signal handler. This makes sure we
consider the one just below the user signal handler as the trampoline.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Check for
"__sighndlr".
Index: sparc-sol2-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-sol2-tdep.c,v
retrieving revision 1.8
diff -u -p -r1.8 sparc-sol2-tdep.c
--- sparc-sol2-tdep.c 12 Jun 2005 11:10:56 -0000 1.8
+++ sparc-sol2-tdep.c 13 Aug 2005 22:04:57 -0000
@@ -70,7 +70,8 @@ int
sparc_sol2_pc_in_sigtramp (CORE_ADDR pc, char *name)
{
return (name && (strcmp (name, "sigacthandler") == 0
- || strcmp (name, "ucbsigvechandler") == 0));
+ || strcmp (name, "ucbsigvechandler") == 0
+ || strcmp (name, "__sighndlr") == 0));
}
static struct sparc_frame_cache *