This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: doing a comparison in python
no. it's a logical. Either .TRUE. or .FALSE.
On Mon, Aug 16, 2010 at 5:26 PM, Michael Snyder <msnyder@vmware.com> wrote:
> Mathew Yeates wrote:
>>
>> Hi
>> I am debugging fortran code and I want to see if an interior value is
>> equal to .FALSE.
>> I know how to get the value with parse_and_eval but what do I do with it?
>
> Can we assume this value is an integer?
> Then you should be able to do something like this:
>
> ? long foo = value_as_long (parse_and_eval (my_value));
>
> ? if (foo == 0)
> ? ? ?[...];
>
>