[padb-users] Make "gdb set language c" for Fortran program to get correct value and offset of symbols.

Ashley Pittman ashley at pittman.co.uk
Wed Nov 24 22:55:27 GMT 2010


On 23 Nov 2010, at 23:44, Jie Cai wrote:

> 
> On 23/11/10 18:55, Ashley Pittman wrote:
>> Thank you for the patch, I'm wondering if it's enough to simply set the mode on attach or does that break the stack traces or local variables in Fortran code?
> As I tested, this is not sufficient.
>> Padb already tracks the value of "-gdb-set print address" and changes it as required, perhaps it needs to do the same for "-gdb-set language"?
>>   
> Yes, you are right. The patch can be simplified as put '-gdb-set languance c' only when '-gdb-set print address' is sent.

I was thinking of something like the attached which sets the value to c when required but reverts it to it's normal state when not.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-language.patch
Type: application/octet-stream
Size: 1708 bytes
Desc: not available
URL: <http://pittman.org.uk/pipermail/padb-users_pittman.org.uk/attachments/20101124/e6d812c7/attachment.obj>
-------------- next part --------------


-- 

Ashley Pittman, Bath, UK.

Padb - A parallel job inspection tool for cluster computing
http://padb.pittman.org.uk



More information about the padb-users mailing list