From: Daniel Jacobowitz <drow@false.org>
To: Erik Niessen <erik.niessen@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: inconsistency in printing out the value of an unsigned short in gdb
Date: Thu, 27 Sep 2007 12:15:00 -0000 [thread overview]
Message-ID: <20070927120708.GB27672@caradoc.them.org> (raw)
In-Reply-To: <f21fe8a50709270341u36027f27l70f9cbca5bd97085@mail.gmail.com>
On Thu, Sep 27, 2007 at 12:41:37PM +0200, Erik Niessen wrote:
> I ran the readelf -wi on my executable. The output file is attached.
> Looking at this debug info all the 3 variables are of type short
> unsigned int 2 byte size.
> So it looks that the debug info generated by the compiler is correct?
That's not the issue. You need to look at where the .debug_info
section says the variables live (DW_AT_location), and compare it
to what the assembly code is putting there.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2007-09-27 12:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-25 14:19 Erik Niessen
2007-09-25 15:57 ` Daniel Jacobowitz
2007-09-26 8:33 ` Erik Niessen
2007-09-26 21:38 ` Daniel Jacobowitz
2007-09-27 11:27 ` Erik Niessen
2007-09-27 12:15 ` Daniel Jacobowitz [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=20070927120708.GB27672@caradoc.them.org \
--to=drow@false.org \
--cc=erik.niessen@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