This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: macro expansion doesn't work when looking at fortran code
- From: Tom Tromey <tromey at redhat dot com>
- To: Mathew Yeates <mat dot yeates at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 23 Aug 2010 12:32:52 -0600
- Subject: Re: macro expansion doesn't work when looking at fortran code
- References: <AANLkTin+iZjHdRXj0s7s2bps4M0PpGxzg8tBRVo3zs8e@mail.gmail.com>
>>>>> "Mathew" == Mathew Yeates <mat.yeates@gmail.com> writes:
Mathew> I have to go up a few frames until I get to the calling C code. Only
Mathew> then can I see what a constant is set to.
You can try "macro expand CONSTANT".
Mathew> Related to the "fortran case" problem?
It is http://sourceware.org/bugzilla/show_bug.cgi?id=9609
In gdb, a language's expression parser must call into the macro
expansion code. Nobody has yet done this for fortran.
Tom