Re: [RFC] Implementation of DW_OP_deref and DW_OP_deref_size operators

Michal Ludvig
2002-07-04T23:25:43Z

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