From: Jim Blandy <jimb@redhat.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb@sources.redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [RFC] Implementation of DW_OP_deref and DW_OP_deref_size operators
Date: Thu, 04 Jul 2002 20:23:00 -0000 [thread overview]
Message-ID: <npofdmanjb.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <200207042202.g64M2hT62589@elgar.kettenis.dyndns.org>
Mark Kettenis <kettenis@chello.nl> writes:
> After staring for a while at some compiler warnings resulting from an
> attempt to make an i386 x x86-64 cross-debugger, and failing to
> understand the code that implements the DW_OP_deref and
> DW_OP_deref_size operators I think I've found out what's wrong.
>
> These expressions are supposed to dereference pointers. In GDB this
> means that they should look at the address indicated by the pointer
> they're dereferencing *in the target*. The current code is trying to
> dereference a pointer in GDB. If we look at the history of this code
> it is perfectly understandable. It is largely copied from the
> unwinder that comes with GCC. This unwinder is supposed to be linked
> into the program that contains the DWARF2 code, so in that context it
> makes sense to lookup pointers in the program this code is running in.
>
> Does this sound reasonable?
Yes! However, pointers are not always unsigned. I think on some
32-bit ABIs for 64-bit MIPS chips they need to be signed. Andrew will
know the facts.
next prev parent reply other threads:[~2002-07-05 3:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-04 16:00 Mark Kettenis
2002-07-04 18:34 ` Michal Ludvig
2002-07-04 20:23 ` Jim Blandy [this message]
2002-07-04 20:34 ` Jim Blandy
2002-07-05 19:10 ` Mark Kettenis
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=npofdmanjb.fsf@zwingli.cygnus.com \
--to=jimb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=gdb@sources.redhat.com \
--cc=kettenis@chello.nl \
/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