Print variable with gdb??
From: JS (d44sf_at_44ada.com)
Date: 03/30/05
- Next message: Mark P: "Re: Print variable with gdb??"
- Previous message: Ben Measures: "Re: Correct C++ tutorial chapter 2.1 "Classes" available (Windows, mingw/msvc/std)"
- Next in thread: Mark P: "Re: Print variable with gdb??"
- Reply: Mark P: "Re: Print variable with gdb??"
- Reply: Anthony Borla: "[OT - gdb-specific] Re: Print variable with gdb??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Mar 2005 00:23:03 +0200
I have:
int p = 5;
when I debug my code I would like to get a print of p's value therefore I
start gdb and type:
print p
but then I get an error that the variable does not exists!
Hope someone can help!
JS
- Next message: Mark P: "Re: Print variable with gdb??"
- Previous message: Ben Measures: "Re: Correct C++ tutorial chapter 2.1 "Classes" available (Windows, mingw/msvc/std)"
- Next in thread: Mark P: "Re: Print variable with gdb??"
- Reply: Mark P: "Re: Print variable with gdb??"
- Reply: Anthony Borla: "[OT - gdb-specific] Re: Print variable with gdb??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]