From: James E Wilson <wilson@specifix.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] fix dwarf2 missing frame base problem
Date: Tue, 15 Nov 2005 08:52:00 -0000 [thread overview]
Message-ID: <1132007198.9830.0.camel@aretha.corp.specifix.com> (raw)
In-Reply-To: <20051113182753.GC3599@nevyn.them.org>
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
On Sun, 2005-11-13 at 10:27, Daniel Jacobowitz wrote:
> This is OK for both head and branch. Could you please use a temporary
> variable though? You're out to 82 columns.
OK, thanks. Here is the revised and retested patch that I added to the
head and branch.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com
[-- Attachment #2: patch.frame.address --]
[-- Type: text/plain, Size: 1716 bytes --]
2005-11-14 James E Wilson <wilson@specifix.com>
PR 2024
* dwarf2loc.c (dwarf_expr_frame_base): Use get_frame_address_in_block
instead of get_frame_pc.
(loclist_read_variable): Likewise.
Index: dwarf2loc.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2loc.c,v
retrieving revision 1.29
diff -p -p -r1.29 dwarf2loc.c
*** dwarf2loc.c 12 Jul 2005 13:06:54 -0000 1.29
--- dwarf2loc.c 14 Nov 2005 20:42:17 -0000
*************** dwarf_expr_frame_base (void *baton, gdb_
*** 164,172 ****
if (SYMBOL_OPS (framefunc) == &dwarf2_loclist_funcs)
{
struct dwarf2_loclist_baton *symbaton;
symbaton = SYMBOL_LOCATION_BATON (framefunc);
*start = find_location_expression (symbaton, length,
! get_frame_pc (debaton->frame));
}
else
{
--- 164,174 ----
if (SYMBOL_OPS (framefunc) == &dwarf2_loclist_funcs)
{
struct dwarf2_loclist_baton *symbaton;
+ struct frame_info *frame = debaton->frame;
+
symbaton = SYMBOL_LOCATION_BATON (framefunc);
*start = find_location_expression (symbaton, length,
! get_frame_address_in_block (frame));
}
else
{
*************** loclist_read_variable (struct symbol *sy
*** 580,586 ****
size_t size;
data = find_location_expression (dlbaton, &size,
! frame ? get_frame_pc (frame) : 0);
if (data == NULL)
{
val = allocate_value (SYMBOL_TYPE (symbol));
--- 582,589 ----
size_t size;
data = find_location_expression (dlbaton, &size,
! frame ? get_frame_address_in_block (frame)
! : 0);
if (data == NULL)
{
val = allocate_value (SYMBOL_TYPE (symbol));
prev parent reply other threads:[~2005-11-14 22:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-03 20:03 James E Wilson
2005-11-12 2:38 ` James E Wilson
2005-11-13 18:40 ` Daniel Jacobowitz
2005-11-15 8:52 ` James E Wilson [this message]
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=1132007198.9830.0.camel@aretha.corp.specifix.com \
--to=wilson@specifix.com \
--cc=drow@false.org \
--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