Article View: gnu.gcc.help
Article #50155Help! Simple gdb question: view variables
From: BENJAMIN J JOHNSON
Date: Tue, 09 Nov 1993 10:14
Date: Tue, 09 Nov 1993 10:14
24 lines
1360 bytes
1360 bytes
I've been working on this for a while now, and I still can't get it. :*( what I want, is to examine the value of a variable in my function. I set the break point fine, the program reaches it, and I can step through the source, all of this I found in the man pages. but what wasn't in the man pages or the internal help, was how to get the value of a variable. ie: gdb> next if (f==b) fill_servq(); gdb> value f,b,servq int f=>2 int b=>25 char *servq=>"1 0 ^ * 3 4 55 6 777 0 99 . . . . 88" gdb> anyway, is there a function/command like the above 'value' ? info locals only shows the value of local variables, and info variables only lists the variables, not there values. -ben
Technical Details
Message-ID:
<2bnqhiINNbjp@twain.ucs.umass.edu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!yeshua.marcam.com!zip.eecs.umich.edu!caen!nic.umass.edu!twain.ucs.umass.edu!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,7801f694e5bdb446,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-09 02:28:43 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!yeshua.marcam.com!zip.eecs.umich.edu!caen!nic.umass.edu!twain.ucs.umass.edu!not-for-mail From: benjamin@twain.ucs.umass.edu (BENJAMIN J JOHNSON) Newsgroups: gnu.gcc.help Subject: Help! Simple gdb question: view variables Date: 9 Nov 1993 05:14:10 -0500 Organization: University of Massachusetts, Amherst Lines: 24 Message-ID: <2bnqhiINNbjp@twain.ucs.umass.edu> NNTP-Posting-Host: twain.ucs.umass.edu