[fpc-devel] fp IDE with libgdb

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Mon Feb 1 16:26:07 CET 2010


Mark Morgan Lloyd wrote:
> Jonas Maebe wrote:
>> On 05 Oct 2009, at 15:27, Mark Morgan Lloyd wrote:
>>
>>> The fp IDE can drive libgdb to do straightforward debugging on x86 
>>> and ARM, there might be failures with complex stuff that I've not 
>>> been able to test. Those two platforms are no problem, the problems 
>>> are on PowerPC and SPARC.
>>
>> You're really picking your fights, aren't you? :) The textmode IDE is 
>> probably the least maintained part of FPC currently, and Linux/SPARC 
>> is not exactly the most used release either :)
> 
> [GRIN] Yes, and I'm the one trying to get to grips with the IDE "for the 
> common good" starting with finding out exactly what files are being 
> built into it on the different platforms- hence the Perl filter.
> 
> If SPARC is of any continuing relevance it's because it's possible to 
> get fairly large systems dirt-cheap right now, I've been very quiet on 
> this over the last few months specifically because I was trying to get 
> to grips with the IDE issue... I didn't want to say anything until I was 
> confident of my facts.
> 
>>> Note that the code is correct: it's output the Hello World message 
>>> even though subsequently the debugger is confused.
>>
>> d48656c = #13'Hel'. gdb on SPARC is trying to dereference the string 
>> itself. I've fixed this in r13813 in trunk.
> 
> 0d48. Well spotted :-) OK, I'll get back onto that as soon as I've got a 
> couple more live jobs off my desk.

Apologies that once again I've taken months getting back onto this. I 
checked the code but there was still a problem, however I think that 
there's a possibility that I somehow screwed up getting the most 
up-to-date version (I don't claim great experience with SVN etc.). I 
took a bit of a look at the generated code using -al but I really need 
to get getting 2.4.0 onto the various development machines and re-test.

One question if I may: am I correct in believing that I need to generate 
the compiler with EXTDEBUG before -an works? Are there any undesirable 
side effects to doing this?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list