From: Doug Evans <dje@google.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org, eliz@gnu.org
Subject: Re: [doc RFA] "set debug dwarf2-read" and "set debug symtab-create"
Date: Sat, 23 Jun 2012 22:58:00 -0000 [thread overview]
Message-ID: <CADPb22TPVW_fBF0-2o=1JwpJgNP8DKv=e6Y-F4zTQMmq7-vdPg@mail.gmail.com> (raw)
In-Reply-To: <87sjdnjv9y.fsf@fleche.redhat.com>
On Fri, Jun 22, 2012 at 7:06 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Doug" == Doug Evans <dje@google.com> writes:
>
> Doug> I'm committing this after a doc RFA.
> Doug> [But feel free to suggest changes or enhancements.]
>
> Seems nice; I've wanted something like this before. I have one
> suggestion:
>
> Doug> @@ -5286,6 +5300,13 @@ process_queue (void)
>
> Doug> + fprintf_unfiltered (gdb_stdlog,
> Doug> + "Expanding one or more symtabs of objfile %s ...\n",
> Doug> + dwarf2_per_objfile->objfile->name);
>
> This seems a little vague; it would be nice to, say, print the CU offset
> here.
>
> Tom
This message is part A of a two part set.
The other part is:
@@ -5690,6 +5717,14 @@ process_full_comp_unit (struct
dwarf2_per_cu_data *per_cu,
struct cleanup *back_to, *delayed_list_cleanup;
CORE_ADDR baseaddr;
+ if (dwarf2_read_debug)
+ {
+ fprintf_unfiltered (gdb_stdlog,
+ "Expanding symtab of %s at offset 0x%x\n",
+ per_cu->is_debug_types ? "TU" : "CU",
+ per_cu->offset.sect_off);
+ }
+
baseaddr = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
buildsym_init ();
I want to keep the S/N ratio high and thus I don't want to print the
objfile name for each expanded symtab (expanding one symtab can
involve expanding others as well).
So part A (so to speak) prints the objfile name and part B (possibly
replicated multiple times) prints all the CUs that get expanded.
I can add a comment noting this fact if you like.
next prev parent reply other threads:[~2012-06-23 22:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-19 22:27 Doug Evans
2012-06-22 14:06 ` Tom Tromey
2012-06-23 22:58 ` Doug Evans [this message]
2012-06-26 15:45 ` Doug Evans
2012-06-26 16:26 ` Eli Zaretskii
2012-06-26 20:16 ` Doug Evans
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='CADPb22TPVW_fBF0-2o=1JwpJgNP8DKv=e6Y-F4zTQMmq7-vdPg@mail.gmail.com' \
--to=dje@google.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.com \
/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