[Lazarus] lazarus debug with gdb [Re: [fpc-devel] bounty: FPC based debugger]

Martin lazarus at mfriebe.de
Wed Sep 14 22:06:54 CEST 2011


On 13/09/2011 13:12, Joost van der Sluis wrote:
> On Mon, 2011-09-12 at 23:18 +0100, Martin wrote:
>> On 12/09/2011 22:51, Hans-Peter Diettrich wrote:
>> However, I still recommend trunk =>  a lot of fixes have been applied.
>>
>> Known issues are :
>> - strings 0 versus 1 based (I do hope to test with dwarf3 soon, but no
>> idea yet, if it will help...)
> I didn't check if it works in (plain) gdb 7.3 yet, but it should work.
>
Interestingly enough:

while ansistring pose a general problem, using shhotstring, stabs does 
the job. (fpc trunk / gdb 7.3-2 / win 32)

VarString15 starts with "T15"
-data-evaluate-expression VarString15[2]
STABS: ^done,value="49 '1'"
DWARF: ^done,value="53 '5'"

dwarf3: ^done,value="84 'T'"

evaluating the entire string, dwarf 3 includes the "length byte" as a 
char, old-dwarf and stabs do exclude it







More information about the Lazarus mailing list