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: Another proposal for frontends and queries.


> >> Also, if an expression does multiple assignments, are 
> there multiple
> >> queries or just one?  It seems like there should just be one.
> > 
> > I tried:
> > (gdb) p foo(3)+foo(4)
> > and got a single query.
> > 
> > Pretty nice.
> 
> Marc, did you answer yes or no to the query?
> And have you tried the opposite?

I tried 'y' as well as 'n' and there was only a single query both times.
I also re-did the test with 
(gdb) p foo(3) + bar(4)
with each method changing a different memory location and I was able to see
that when pressing 'n' neither of the memory location was change, while when
pressing 'y' both memory locations were changed.

It's bullet-proof! :-)  
(except for nquery and frontends :-O)


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