From: Simon Marchi <simon.marchi@polymtl.ca>
To: Wei-min Pan <weimin.pan@oracle.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/3] gdb/ctf: don't create a buildsym_compunit when building partial symbols
Date: Thu, 31 Mar 2022 21:32:44 -0400 [thread overview]
Message-ID: <f34742c2-bf1f-ca36-67e2-98aaead8875a@polymtl.ca> (raw)
In-Reply-To: <68ff0d4f-2b63-fcad-6798-d6dbc458a914@oracle.com>
> Here is the spec for CTF V3:
>
> http://www.esperi.org.uk/~oranix/ctf/ctf-spec.pdf
>
> which hopefully is helpful.
Thanks, I read the first section (CTF archives), I think it somewhat
matches what I thought. I'm not sure about how the details of how types
are deduplicated exactly, but that's not relevant for this patch.
>> I'll attach the output of "readelf --ctf=.ctf" for the file I am working
>> with.
>>
>> My understanding from the readelf output is that there is some debug
>> info (function, types, etc) described at the top-level. It doesn't seem
>> associated to a source file, and it seems to contain things that are
>> global.
>>
>> Then there is one "archive" for each compiled .c file, such as:
>>
>> CTF archive member: /home/simark/src/babeltrace/src/lib/current-thread.c:
>>
>> Each archive contains very little data, my guess is that it only
>> contains what is not already described at the top-level?
>
> Yes, that's my understanding too.
>
>>
>> Right now, in GDB, we create one CU (partial_symtab, and then
>> compunit_symtab after expansion) for the top-level, and the one CU for
>> each archive. My patch does not change that. It only removes a
>> "new buildsym_compunit" call that just seems useless / to do nothing.
>>
>> In other words, no user-visible changes are expected from this patch.
>
> OK. Thanks.
Thanks, I will push the series, let me know if you see something
breaking.
Simon
next prev parent reply other threads:[~2022-04-01 1:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-31 21:20 Simon Marchi
2022-03-31 21:20 ` [PATCH 2/3] gdb: print compunit_symtab name in "maint info symtabs" Simon Marchi
2022-03-31 21:20 ` [PATCH 3/3] gdb/ctf: pass partial symtab's filename to buildsym_compunit Simon Marchi
2022-04-01 0:07 ` Wei-min Pan
2022-03-31 23:56 ` [PATCH 1/3] gdb/ctf: don't create a buildsym_compunit when building partial symbols Wei-min Pan
2022-04-01 0:14 ` Simon Marchi
2022-04-01 0:57 ` Wei-min Pan
2022-04-01 1:32 ` Simon Marchi [this message]
2022-04-04 17:08 ` Tom Tromey
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=f34742c2-bf1f-ca36-67e2-98aaead8875a@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=weimin.pan@oracle.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).