Path: 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 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 was a shorthand for p 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