[padb-users] Make "gdb set language c" for Fortran program to get correct value and offset of symbols.
Jie Cai
Jie.Cai at anu.edu.au
Thu Nov 25 01:07:34 GMT 2010
Hi Ashley,
Agreed, it makes more sense to set the language only when it is needed.
There is a little bug in line 6323. I have fixed it with the attached
patch. Other than that works fine.
Kind Regards,
Jie
--
Jie Cai Jie.Cai at anu.edu.au
ANU Supercomputer Facility NCI National Facility
Leonard Huxley, Mills Road Ph: +61 2 6125 7965
Australian National University Fax: +61 2 6125 8199
Canberra, ACT 0200, Australia http://nf.nci.org.au
-----------------------------------------------------
On 25/11/10 09:55, Ashley Pittman wrote:
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://pittman.org.uk/pipermail/padb-users_pittman.org.uk/attachments/20101125/53b72849/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-fix-gdb.patch
Type: text/x-patch
Size: 374 bytes
Desc: not available
URL: <http://pittman.org.uk/pipermail/padb-users_pittman.org.uk/attachments/20101125/53b72849/attachment.bin>
More information about the padb-users
mailing list