public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Auto variables display
@ 2005-09-01 17:10 Konstantin Karganov
  2005-09-01 17:58 ` Daniel Jacobowitz
  2005-09-02  6:52 ` Vladimir Prus
  0 siblings, 2 replies; 3+ messages in thread
From: Konstantin Karganov @ 2005-09-01 17:10 UTC (permalink / raw)
  To: gdb

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?

TIA,
Konstantin.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Auto variables display
  2005-09-01 17:10 Auto variables display Konstantin Karganov
@ 2005-09-01 17:58 ` Daniel Jacobowitz
  2005-09-02  6:52 ` Vladimir Prus
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-09-01 17:58 UTC (permalink / raw)
  To: Konstantin Karganov; +Cc: gdb

On Thu, Sep 01, 2005 at 09:10:48PM +0400, Konstantin Karganov wrote:
> 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?

As far as I know, no and no.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Auto variables display
  2005-09-01 17:10 Auto variables display Konstantin Karganov
  2005-09-01 17:58 ` Daniel Jacobowitz
@ 2005-09-02  6:52 ` Vladimir Prus
  1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Prus @ 2005-09-02  6:52 UTC (permalink / raw)
  To: gdb

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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-02  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01 17:10 Auto variables display Konstantin Karganov
2005-09-01 17:58 ` Daniel Jacobowitz
2005-09-02  6:52 ` Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).