From: "Metzger, Markus T" <markus.t.metzger@intel.com>
To: Andrew Burgess <aburgess@redhat.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: RE: [PATCH v2] gdb: fix breakpoints on inline functions qualified with source file name
Date: Tue, 10 Nov 2026 05:47:35 +0000 [thread overview]
Message-ID: <DM8PR11MB5749004B7D14BA6B441B41B8DE722@DM8PR11MB5749.namprd11.prod.outlook.com> (raw)
In-Reply-To: <87tslp61ji.fsf@redhat.com>
Thanks for your review, Andrew,
>> +static int
>> +test (void)
>> +{
>> + int f = foo ();
>> + int b = bar ();
>> + return f + b;
>> +}
>> +
>> +int
>> +main (void)
>> +{
>> + /* Don't make breakpoints on foo and main bind to the same address. */
>
>This comment is missing a space at the beginning, and a space at the end
>after the period. But even then, at a first glance I don't understand
>what this comment is telling me. Can you rewrite it to better explain
>what's going on please.
I just removed the comment. It was more confusing than helpful. To explain
it here, if I had written it like this:
int
main (void)
{
int f = foo ();
then, given that foo() is inlined, the initial breakpoint at main() for the usual
runto_main would be at the same address as the breakpoint at the inlined
foo(), so we would have hit both breakpoints at once.
Regards,
Markus.
________________________________________
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 (89) 99143-0
www.intel.de
Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman
Chairperson of the Supervisory Board: Sonja Pierer
Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
prev parent reply other threads:[~2026-11-10 5:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 9:56 Markus Metzger
2026-08-14 13:57 ` Guinevere Larsen
2026-09-09 6:12 ` [PING][PATCH " Metzger, Markus T
2026-10-05 12:55 ` [PING v2][PATCH " Metzger, Markus T
2026-10-21 10:01 ` [PING v3][PATCH " Metzger, Markus T
2026-11-09 16:13 ` [PING v4][PATCH " Metzger, Markus T
2026-11-09 23:13 ` [PATCH " Andrew Burgess
2026-11-10 5:47 ` Metzger, Markus T [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=DM8PR11MB5749004B7D14BA6B441B41B8DE722@DM8PR11MB5749.namprd11.prod.outlook.com \
--to=markus.t.metzger@intel.com \
--cc=aburgess@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