public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Andrea Cardaci <cyrus.and@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Function address incoherence
Date: Mon, 26 Aug 2019 07:55:00 -0000	[thread overview]
Message-ID: <mvmef18743w.fsf@suse.de> (raw)
In-Reply-To: <CACMsj9PVtSb_+1gYAUaQPafUd0A-PDuQT5UpvVUWmOHExzxb=w@mail.gmail.com>	(Andrea Cardaci's message of "Sat, 24 Aug 2019 12:27:09 +0200")

On Aug 24 2019, Andrea Cardaci <cyrus.and@gmail.com> wrote:

> As you can see, $pc points to 0xb7fdba20 and the disassemble commands
> reports that it is part of _start, yet if I print the address of
> _start I obtain a different value (0x80482e0). (Using the disassemble
> command is just an example, simply printing $pc shows 0xb7fdba20
> <_start>.)

The disassembler can chose the nearest symbols, but the expression
evaluator needs to resolve it to a single address, so it can only chose
one of the them.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

  parent reply	other threads:[~2019-08-26  7:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-24 10:27 Andrea Cardaci
2019-08-26  6:54 ` Florian Weimer
2019-08-26 10:22   ` Andrea Cardaci
2019-08-26  7:55 ` Andreas Schwab [this message]
2019-08-26 10:22   ` Andrea Cardaci
2019-08-26 16:34 ` Christian Biesinger via gdb
2019-08-26 16:50   ` Andrea Cardaci
2019-08-26 17:39     ` Andrea Cardaci

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=mvmef18743w.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=cyrus.and@gmail.com \
    --cc=gdb@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).