gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gdb] Print variable with gdb??


From: Charles Manning
Subject: Re: [Gdb] Print variable with gdb??
Date: Thu, 31 Mar 2005 07:18:43 +1200

Check your optimisations. These can cause variables to be optimised away.

Also check that you are in the right scope.


On Wednesday 30 March 2005 21:19, JS wrote:
> 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
>
>
>
> _______________________________________________
> Gdb mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gdb




reply via email to

[Prev in Thread] Current Thread [Next in Thread]