This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Update am33 / mn10300 signal frame support
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 21 Jan 2008 18:17:41 -0700
- Subject: [commit] Update am33 / mn10300 signal frame support
I've just committed the patch below. It updates the am33 signal frame
support to use the `psc' field which was added a while back. (The addition
of this field broke GDB's backtraces through signal frames.)
* mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
sigcontext struct via pointer.
(struct sigframe comment): Update to show new field `psc'.
Index: mn10300-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-linux-tdep.c,v
retrieving revision 1.10
diff -u -p -r1.10 mn10300-linux-tdep.c
--- mn10300-linux-tdep.c 1 Jan 2008 22:53:12 -0000 1.10
+++ mn10300-linux-tdep.c 22 Jan 2008 01:10:46 -0000
@@ -516,6 +516,7 @@ struct sigframe
{
void (*pretcode)(void);
int sig;
+ struct sigcontext *psc;
struct sigcontext sc;
struct fpucontext fpuctx;
unsigned long extramask[_NSIG_WORDS-1];
@@ -625,6 +626,7 @@ am33_linux_sigframe_cache_init (const st
if (self == &am33_linux_sigframe)
{
sc_base += 8;
+ sc_base = get_frame_memory_unsigned (next_frame, sc_base, 4);
}
else
{