This is the mail archive of the gdb-patches@sourceware.org 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: [RFA] Avoid problems with ptype command


> On Fri, 15 Oct 2010 17:38:33 +0200, Pierre Muller wrote:
> > --- src/gdb/valops.c	8 Oct 2010 16:50:53 -0000	1.252
> > +++ src/gdb/valops.c	15 Oct 2010 10:37:47 -0000
> > @@ -289,7 +289,7 @@ value_cast_structs (struct type *type, s
> > -	  return value_at (type, addr2);
> > +	  return value_at_lazy (type, addr2);
> 
> Is it easy enough to provide a gdb.pascal/ testcase for this kind of fix?

I agree with Jan that a testcase would be useful. And a comment should
be added next to the change, to explain why we use value_at_lazy and
make sure we don't revert it back to value_at.  At the same time,
though, from a conceptual level, should the use of value_at make
such any difference except in terms of performance???

-- 
Joel


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