This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: doing a comparison in python


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)
      [...];


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]