This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Implementation of DW_OP_deref and DW_OP_deref_size operators
- From: Michal Ludvig <mludvig at suse dot cz>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: <gdb-patches at sources dot redhat dot com>
- Date: Fri, 5 Jul 2002 01:25:41 +0200 (CEST)
- Subject: Re: [RFC] Implementation of DW_OP_deref and DW_OP_deref_size operators
On Fri, 5 Jul 2002, Mark Kettenis wrote:
> 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 it does. I have already found this kind of flaws in there and
I bet that there are some more yet :-(
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz