Article View: gnu.gdb.bug
Article #1207GDB/MI - garbage in first call to -var-evaluate-expression
From: Sebastian Bialy
Date: Thu, 09 Feb 2006 08:16
Date: Thu, 09 Feb 2006 08:16
42 lines
2780 bytes
2780 bytes
Hi all.
I'm hope this is right group.
I'm working with GDB/MI. I'm stepping on C++ code (actually it is
SystemC code). I want to read local variable 'VALIDATED' of current frame:
-var-create - * VALIDATED
^done,name="var2",numchild="0",type="int"
-var-info-type var2
^done,type="int"
-var-update var2
^done,changelist=[{name="var2",in_scope="false"}]
-var-evaluate-expression var2
^done,value="77828156"
-var-delete var2
^done,ndeleted="1"
As you can see there is garbage instead of real variable value.
However if I do exactly the same instructions again (no change in
debugger between) I get proper value:
-var-create - * VALIDATED
^done,name="var3",numchild="0",type="int"
-var-info-type var3
^done,type="int"
-var-update var3
^done,changelist=[]
-var-evaluate-expression var3
^done,value="1"
-var-delete var3
^done,ndeleted="1"
I cannot support You with this piece of code. But anyway problem exists
_every_ time, first "evaluate-expression" always returns garbage. I mean
"first" after any step instruction. This happens with all "numeric"
variables in my code. Looks like GDB/MI bug for me.
GDB 6.3/windows.
Sebastian Bialy.
Technical Details
Message-ID:
<mailman.224.1139628662.2885.bug-gdb@gnu.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f5053,a195bd4432bbbad6,start X-Google-Attributes: gidf5053,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail From: Sebastian Bialy <sebastianb@aldec.com.pl> Newsgroups: gnu.gdb.bug Subject: GDB/MI - garbage in first call to -var-evaluate-expression Date: Thu, 09 Feb 2006 09:16:19 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 44 Approved: bug-gdb@gnu.org Message-ID: <mailman.224.1139628662.2885.bug-gdb@gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.Stanford.EDU 1139628663 27727 199.232.76.165 (11 Feb 2006 03:31:03 GMT) X-Complaints-To: news@news.stanford.edu To: gnu-gdb-bug@moderators.isc.org Envelope-to: bug-gdb@gnu.org User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: pl, en-us, en X-Mailman-Approved-At: Fri, 10 Feb 2006 22:31:01 -0500 X-BeenThere: bug-gdb@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/bug-gdb> List-Post: <mailto:bug-gdb@gnu.org> List-Help: <mailto:bug-gdb-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=subscribe>