This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]