This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: cli/1211: set
- From: David Carlton <carlton at math dot stanford dot edu>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 16 May 2003 16:18:00 -0000
- Subject: Re: cli/1211: set
- Reply-to: David Carlton <carlton at math dot stanford dot edu>
The following reply was made to PR cli/1211; it has been noted by GNATS.
From: David Carlton <carlton@math.stanford.edu>
To: vera0010@sina.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: cli/1211: set
Date: 16 May 2003 09:15:27 -0700
On 16 May 2003 02:13:12 -0000, vera0010@sina.com said:
> gdb> set i=0
> You'll get a error message as: i undefined ....
> But I'm sure I've defined it in my program.
We'll need a more precise recipe for reproducing this bug: you'll need
to give us a program that we can compile together with steps for how
to reproduce it.
One possibility is that the variable has been optimized away; are you
compiling with optimization? Does 'print i' show a value for the
variable?
David Carlton
carlton@math.stanford.edu