public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: hilbert via Gdb <gdb@sourceware.org>
Cc: hilbert <swdtian@163.com>
Subject: Re: How is the location of the breakpoint determined and where is it obtained?
Date: Wed, 26 Jul 2023 10:22:05 -0600	[thread overview]
Message-ID: <87y1j2iqxe.fsf@tromey.com> (raw)
In-Reply-To: <15d3f696.4bf2.189864d47d1.Coremail.swdtian@163.com> (hilbert via Gdb's message of "Mon, 24 Jul 2023 13:09:18 +0800 (CST)")

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

      reply	other threads:[~2023-07-26 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-24  5:09 hilbert
2023-07-26 16:22 ` Tom Tromey [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=87y1j2iqxe.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb@sourceware.org \
    --cc=swdtian@163.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).