Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by Glenn Engel
Fri, 09 Jun 1989 15:32
gdb3.1.2 - should print re-read vars ?
Author: Glenn Engel
Date: Fri, 09 Jun 1989 15:32
Date: Fri, 09 Jun 1989 15:32
19 lines
1012 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads