From: Tom Tromey <tom@tromey.com>
To: "Kempke, Nils-Christian via Gdb-patches" <gdb-patches@sourceware.org>
Cc: Tom Tromey <tom@tromey.com>,
"Kempke, Nils-Christian" <nils-christian.kempke@intel.com>,
"jinisusan.george@amd.com" <jinisusan.george@amd.com>,
Bernhard Heckel <bernhard.heckel@intel.com>,
Tim Wiederhake <tim.wiederhake@intel.com>
Subject: Re: [PATCH v2 1/1] dwarf, fortran: add support for DW_TAG_entry_point
Date: Thu, 26 May 2022 11:34:51 -0600 [thread overview]
Message-ID: <87r14g6vus.fsf@tromey.com> (raw)
In-Reply-To: <CY4PR1101MB20716F8172ACDA3055B098D7B8CB9@CY4PR1101MB2071.namprd11.prod.outlook.com> (Nils-Christian via Gdb-patches Kempke's message of "Thu, 12 May 2022 10:38:52 +0000")
>>>>> Kempke, Nils-Christian via Gdb-patches <gdb-patches@sourceware.org> writes:
>> If it's needed I suppose I would expect some other changes to the
>> indexer. Like maybe cooked_indexer::index_dies has to handle it, or
>> cooked_index_entry::matches(search_domain).
> I am honestly not quite sure about the two parts you pointed out.
> What I think I understand it this:
> In cooked_index_entry::matches(search_domain) we could add the
> DW_TAG_entry_point to the FUNCTIONS_DOMAIN (similar to
> DW_TAG_subroutine). Not sure if this would be wanted but I think
> this is quite reasonable. Entry points are virtually like separate functions
> with their own argument lists.
> I am not sure what this would actually change within GDB though - commands
> like 'info functions' and 'info module functions'
The test case in this situation is to have an entry point in some other
CU -- not the same one with the program's "main" -- and then try to
"break" on the entry point.
I think this should make gdb try to look up the function via the index,
but since the matching will fail, I suspect it won't cause CU expansion,
and so the entry point won't be found.
> The other part you mentioned is cooked_indexer::index_dies. I think here the
> change you meant is to recurse the entry if it is a DW_TAG_entry_point? In my
> understanding this would then also index possibly interesting child DIEs, right?
Yeah, I think I was mistaken about this one.
thanks,
Tom
next prev parent reply other threads:[~2022-05-26 17:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 9:41 [PATCH v2 0/1] Fortran entry and DW_TAG_entry_point Nils-Christian Kempke
2022-04-14 9:41 ` [PATCH v2 1/1] dwarf, fortran: add support for DW_TAG_entry_point Nils-Christian Kempke
2022-04-14 22:05 ` Kevin Buettner
2022-04-15 15:27 ` Tom Tromey
2022-05-12 10:38 ` Kempke, Nils-Christian
2022-05-26 17:34 ` Tom Tromey [this message]
2022-07-06 15:30 ` Kempke, Nils-Christian
2022-04-19 11:53 ` [PATCH v2 0/1] Fortran entry and DW_TAG_entry_point George, Jini Susan
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=87r14g6vus.fsf@tromey.com \
--to=tom@tromey.com \
--cc=bernhard.heckel@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=jinisusan.george@amd.com \
--cc=nils-christian.kempke@intel.com \
--cc=tim.wiederhake@intel.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).