From: Tom Tromey <tromey@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: RFC: Simplify partial dies
Date: Mon, 02 Nov 2009 19:44:00 -0000 [thread overview]
Message-ID: <m37hu8g1af.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20091102152607.GA10051@caradoc.them.org> (Daniel Jacobowitz's message of "Mon, 2 Nov 2009 10:26:07 -0500")
>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
Daniel> - if (comp_unit_die.dirname)
Daniel> - pst->dirname = obsavestring (comp_unit_die.dirname,
Daniel> - strlen (comp_unit_die.dirname),
Daniel> + attr = dwarf2_attr (comp_unit_die, DW_AT_comp_dir, &cu);
Daniel> + if (attr != NULL)
Daniel> + pst->dirname = obsavestring (DW_STRING (attr),
Daniel> + strlen (DW_STRING (attr)),
Daniel> &objfile->objfile_obstack);
Is this obsavestring actually needed? I thought a DW_STRING value
necessarily had to live as long as the symbol tables, so did not need to
be copied; but if that isn't so, I would like to know.
Tom
next prev parent reply other threads:[~2009-11-02 19:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-02 15:26 Daniel Jacobowitz
2009-11-02 19:44 ` Tom Tromey [this message]
2009-11-02 19:50 ` Daniel Jacobowitz
2009-11-05 23:18 ` Daniel Jacobowitz
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=m37hu8g1af.fsf@fleche.redhat.com \
--to=tromey@redhat.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