public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* How is the location of the breakpoint determined and where is it obtained?
@ 2023-07-24  5:09 hilbert
  2023-07-26 16:22 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: hilbert @ 2023-07-24  5:09 UTC (permalink / raw)
  To: gdb

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

Hi,


Symbols that can be read from elf files, but we cannot know in advance where they will be loaded. 
After the run command, where does gdb get the exact location of the breakpoint?


I don't get the information I want in gdb, who can help me?

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

* Re: How is the location of the breakpoint determined and where is it obtained?
  2023-07-24  5:09 How is the location of the breakpoint determined and where is it obtained? hilbert
@ 2023-07-26 16:22 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2023-07-26 16:22 UTC (permalink / raw)
  To: hilbert via Gdb; +Cc: hilbert

>>>>> hilbert via Gdb <gdb@sourceware.org> writes:

> Symbols that can be read from elf files, but we cannot know in advance
> where they will be loaded.  After the run command, where does gdb get
> the exact location of the breakpoint?

> I don't get the information I want in gdb, who can help me?

It's complicated, but you can start by reading
svr4_relocate_main_executable.

Tom

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

end of thread, other threads:[~2023-07-26 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-24  5:09 How is the location of the breakpoint determined and where is it obtained? hilbert
2023-07-26 16:22 ` 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).