This is the mail archive of the gdb@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: Auto variables display


Hi Konstantin,

> Hello, All.
> 
> In MS Visual Studio debugger there is a very convenient feature - "Auto"
> watch window tab, which displays the variables, referenced at the current
> program statement. I.e. when you step across "i=j;" it displays i and j,
> when you step across "x=f(a+b,*c)" displays a,b and c, etc.
> This allows to see automatically just the values that affect current step
> execution and see the error when and where it happens.
> 
> The question is: does GDB support something like this and also are
> there the debug info formats that provide the mapping of the source lines
> (or code addresses) to the set of variables, references at the point?

I suspect that MS debugger does not have such information either, and merely
looks at all identifiers at the current line and tries to fetch them. That
should be possible to implement using gdb, as well.

- Volodya







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