Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@redhat.com>
To: "Simon Marchi" <simark@simark.ca>,
	"Rohr, Stephan" <stephan.rohr@intel.com>,
	"Sébastien Darche" <sdarche@efficios.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdb: ensure bp_location::section is set correct to avoid an assert
Date: Wed, 04 Feb 2026 11:55:31 +0000	[thread overview]
Message-ID: <87qzr0en9o.fsf@redhat.com> (raw)
In-Reply-To: <e19259fa-6afb-42fc-88d0-710862a106c3@simark.ca>

Simon Marchi <simark@simark.ca> writes:

> On 2026-02-02 03:49, Rohr, Stephan wrote:
>> Hi all,
>> 
>> I came across the same issue when debugging a remote inferior that is compiled w/o debug symbols and a
>> breakpoint is inserted based on the function name that is called in the inferior. 
>> 
>> Our test started to regress with the introduction of patch
>> "gdb: ensure bp_location::section is set correct to avoid an assert".  As mentioned in the patch above,
>> GDB uses the default gdbarch to insert the breakpoint if the section is NULL.  This causes issues later. 
>> 
>> I applied the patch; our breakpoint insertion issue is fixed with this patch.  I reviewed the patch, it is
>> reasonable to me.  Only thing I wonder is the usage of 'find_pc_ovelay'; this always returns NULL if
>> overlay debugging is not used? But I guess that's fixed by using 'find_pc_section' in this case.
>> 
>> Thanks for working on this, Andrew!
>
> I had forgotten about this patch, I think we solved the ROCm issue at
> another level, with:
>
> [PATCH 0/4] make it the responsibility of a symtab_and_line's creator to set its section
> https://inbox.sourceware.org/gdb-patches/20251024162929.352719-1-sdarche@efficios.com/
>
> Andrew, could you send an updated version of your patch?  It doesn't
> apply anymore, and I think it would deserve not being buried in that
> other patch's big thread.

I'll get this updated and send a new version today.

Thanks,
Andrew


  reply	other threads:[~2026-02-04 11:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-04 20:16 Andrew Burgess
2025-09-05  3:10 ` Simon Marchi
2025-09-25 15:16   ` Sébastien Darche
2025-09-25 17:56     ` Andrew Burgess
2025-09-25 21:05       ` Simon Marchi
2025-09-25 21:40         ` Andrew Burgess
2025-09-25 22:30           ` Simon Marchi
2025-10-02 19:40           ` Sébastien Darche
2025-10-06 12:11             ` Andrew Burgess
2026-02-02  8:49               ` Rohr, Stephan
2026-02-02 18:45                 ` Simon Marchi
2026-02-04 11:55                   ` Andrew Burgess [this message]
2026-02-04 12:59                 ` Andrew Burgess
2026-02-04 16:25                   ` Rohr, Stephan
2026-02-12 13:10                     ` Andrew Burgess

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=87qzr0en9o.fsf@redhat.com \
    --to=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sdarche@efficios.com \
    --cc=simark@simark.ca \
    --cc=stephan.rohr@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