🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #796

gdb3.1.2 - should print re-read vars ?

#796
From: Glenn Engel
Date: Fri, 09 Jun 1989 15:32
19 lines
1012 bytes
I'm not sure if this is a bug or a feature but it bit me so I'll call
it a bug for now.

When using the print command with no arguments it prints the previous
print command results.  This led me to believe that  p <return> was
a shorthand for  p <somevarIjustprinted> but it doesn't re-read the
variables.  Here's an example:

(gdb) p ch
$2 = 2 '\002'                          ch is 2
(gdb) set ch = 1                       ch is now 1
(gdb) p                                print says it is 2
$3 = 2 '\002'

--
 |  Glenn R. Engel
 |  Hewlett-Packard 
 |  (206) 335-2066
 |  glenne%hplsla@hplabs.hp.com
Technical Details
Message-ID: <8906091532.AA11746@labgre.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HPLSLA.HP.COM!glenne

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HPLSLA.HP.COM!glenne
From: glenne@HPLSLA.HP.COM (Glenn Engel)
Newsgroups: gnu.gdb.bug
Subject: gdb3.1.2 - should print re-read vars ?
Message-ID: <8906091532.AA11746@labgre.HP.COM>
Date: 9 Jun 89 15:32:43 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 19