[fpc-devel] .long values in DWARF Symbols
Michael Ring
mail at michael-ring.org
Tue May 24 21:35:10 CEST 2016
Looking very good, I could load and debug a small app with a rtl built
with -gw2
Thank you very much for the fix!
I have now reduced the filesize of the embedded-units so that they
should be small enough to be included in fpc:
-rw-r--r-- 1 ring staff 33568 22 Mai 17:55 pic32mx1x0fxxxb.pp
-rw-r--r-- 1 ring staff 33614 22 Mai 17:55 pic32mx1x0fxxxc.pp
-rw-r--r-- 1 ring staff 33719 22 Mai 17:55 pic32mx1x0fxxxd.pp
-rw-r--r-- 1 ring staff 40189 22 Mai 17:55 pic32mx1x0fxxxh.pp
-rw-r--r-- 1 ring staff 40325 22 Mai 17:55 pic32mx1x0fxxxl.pp
-rw-r--r-- 1 ring staff 39039 22 Mai 17:55 pic32mx2x0fxxxb.pp
-rw-r--r-- 1 ring staff 39085 22 Mai 17:55 pic32mx2x0fxxxc.pp
-rw-r--r-- 1 ring staff 39085 22 Mai 17:55 pic32mx2x0fxxxd.pp
-rw-r--r-- 1 ring staff 45550 22 Mai 17:55 pic32mx2x0fxxxh.pp
-rw-r--r-- 1 ring staff 45686 22 Mai 17:55 pic32mx2x0fxxxl.pp
So I will have something to play with when traveling to Maker Faire in
Hannover this weekend ;-)
Michael
Am 24.05.16 um 20:58 schrieb Florian Klämpfl:
> Am 23.05.2016 um 17:51 schrieb Michael Ring:
>> I have started again to work on pic32 (mipsel-embedded) target and found an issue in the Dwarf Debug
>> Info:
>>
>>
>> (Please also refer to this old discussion on the problem:
>> http://lists.freepascal.org/fpc-devel/2013-July/032447.html )
>>
>> The problem is that .long should be replaced with .4byte for debug symbols to be correctly
>> interpreted on mips. I manually replaced all .long with .4bytes in system.s and can now do symbolic
>> debugging of the startup code
>>
>> There wrong entries always follow the pattern that they include an offset the the varname:
>>
>> Example:
>>
>> # Symbol THREADID
>>
>> .long U_$SYSTEM_$$_THREADID+4
>>
>> --> wrong, offset is "+4"
>>
>>
>> # Symbol UTF8COMPARELOCALE
>> .4byte U_$SYSTEM_$$_UTF8COMPARELOCALE
>>
>> --> no offset, correct
>>
>>
>> Can anybody help?
> Please try with r33782.
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list