[fpc-devel] FPC 2.2.2 on Linux/SPARC
Mark Morgan Lloyd
markMLl.fpc-devel at telemetry.co.uk
Fri Sep 12 23:28:53 CEST 2008
Jonas Maebe wrote:
> On 11 Sep 2008, at 15:02, Mark Morgan Lloyd wrote:
>> I've had no success trying to drive fpc interactively across ttys to get
>> to the point of failure.
>
> Indeed, the tty redirection doesn't work very will in combination with
> raw terminal modes.
After experimentation I was able to do better without redirection but
logging to file.
>> If I'm interpreting that correctly then either the command blocks in
>> #14 and #13 are wrong when the Pascal code is optimised (I have not
>> recompiled the GDB interface library), or find_pc_sect_line is finding
>> something it doesn't like. In case it's the former here are the full
>> lines:
>
> I don't see what's wrong in the code at first sight. The command in
> frame 14 already seems wrong though, since frame 15 is gdbcon.pp:251,
> wich should pass 'run' rather than 'cd ' to gdb (the 'cd ' stuff comes
> from gdbcon.pp:195).
>
> But I'm not an IDE developer in any way, I'm purely a compiler/rtl
> person. There are few IDE developers left though.
OK, but your recognition of something wrong in the gdb command blocks
seems to suggest that fpc is mis-compiling the fp IDE when optimisation
is enabled. I find that if I copy a non-optimised fp over an optimised
one (i.e. with fpc and all ppus being optimised) then fp drives the
debugger properly- at least as far as I've been able to test it.
I've run the test suite for the compiler with and without optimisation,
so far I don't see any revealing differences in the output but I might
be overlooking something significant due to inexperience.
--
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