public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Why does a breakpoint struct contain a location linked list ?
@ 2023-06-05 10:05 hilbert
  2023-06-08 19:02 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: hilbert @ 2023-06-05 10:05 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 273 bytes --]

Hi, 


After setting a breakpoint, GDB can read the location information from the symbol table constructed by dwarf and fill in the breakpoint;
Why  need a linked list to record multiple location information;
Where do so many locations come from?




Thank you very much.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Why does a breakpoint struct contain a location linked list ?
  2023-06-05 10:05 Why does a breakpoint struct contain a location linked list ? hilbert
@ 2023-06-08 19:02 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2023-06-08 19:02 UTC (permalink / raw)
  To: hilbert via Gdb; +Cc: hilbert

> After setting a breakpoint, GDB can read the location information from
> the symbol table constructed by dwarf and fill in the breakpoint; Why
> need a linked list to record multiple location information; Where do
> so many locations come from?

Inlining can cause multiple locations.  So can overloading, wild
matching, or something like a template instantiation when a "file:line"
breakpoint is used.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-08 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05 10:05 Why does a breakpoint struct contain a location linked list ? hilbert
2023-06-08 19:02 ` Tom Tromey

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).