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: [patch] Fix internal error on optimized-out values (regression by me)


On Wednesday 12 October 2011 21:33:29, Jan Kratochvil wrote:
> On Mon, 10 Oct 2011 23:40:28 +0200, Pedro Alves wrote:
> > IMO, this is just like "p s.f", printing <unavailable> when the whole 
> > of `s' is unavailable.  From the unavailable.exp test:
> > 
> > print globalstruct.memberf
> > $7 = <unavailable>
> > (gdb) PASS: gdb.trace/unavailable.exp: collect globals: print globalstruct.memberf
> > print globalstruct.memberd
> > print globalstruct
> > $9 = {memberc = <unavailable>, memberi = <unavailable>, memberf = <unavailable>, memberd = <unavailable>}
> > 
> > It just happens that today, we only support either wholy
> > optimized-out values, or wholly not optimized-out values.
> 
> This would suggest the user-visible behavior should be more the former patch:
> 	http://sourceware.org/ml/gdb-patches/2011-09/msg00449.html
> 	printing <optimized out>

Yes.

-- 
Pedro Alves


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