From: Maxim Grigoriev <maxim@tensilica.com>
To: <gdb-patches@sourceware.org>
Subject: [PATCH]
Date: Wed, 06 May 2009 00:35:00 -0000 [thread overview]
Message-ID: <4A00DB65.1060707@tensilica.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
This patch fixes Xtensa backtrace which is broken
when frame_func_unwind () returns bad value.
-- Maxim
[-- Attachment #2: xtensa-cisco-fix.diff --]
[-- Type: text/x-patch, Size: 726 bytes --]
2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
Index: gdb/xtensa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/xtensa-tdep.c,v
retrieving revision 1.33
diff -u -r1.33 xtensa-tdep.c
--- gdb/xtensa-tdep.c 17 Apr 2009 15:44:28 -0000 1.33
+++ gdb/xtensa-tdep.c 6 May 2009 00:28:01 -0000
@@ -1242,7 +1242,7 @@
cache->wd.ws = ws & ~(1 << wb);
cache->pc = get_frame_func (this_frame);
- cache->ra = (cache->pc & 0xc0000000) | (ra & 0x3fffffff);
+ cache->ra = (pc & 0xc0000000) | (ra & 0x3fffffff);
cache->ps = (ps & ~PS_CALLINC_MASK)
| ((WINSIZE(ra)/4) << PS_CALLINC_SHIFT);
}
next reply other threads:[~2009-05-06 0:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-06 0:35 Maxim Grigoriev [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-01-23 19:10 [patch] Doug Evans
2012-01-18 4:35 [PATCH] Sergio Durigan Junior
2012-01-18 5:04 ` [PATCH] Joel Brobecker
2012-01-18 5:17 ` [PATCH] Sergio Durigan Junior
2012-01-18 12:48 ` [PATCH] Joel Brobecker
2012-01-18 14:34 ` [PATCH] Sergio Durigan Junior
2004-04-18 13:09 [PATCH] Mark Kettenis
2004-04-09 16:31 [PATCH] Mark Kettenis
2003-10-30 20:21 [PATCH] Mark Kettenis
2003-10-30 19:36 [PATCH] Mark Kettenis
2003-03-01 13:09 [PATCH] Mark Kettenis
2003-03-03 17:33 ` [PATCH] David Carlton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A00DB65.1060707@tensilica.com \
--to=maxim@tensilica.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox