[fpc-devel] RECENT Commit breaking FpDebug - Dwarf / and not even fully fixing the original issue
Martin Frb
lazarus at mfriebe.de
Wed Apr 29 23:22:40 CEST 2026
On 29/04/2026 22:45, Martin Frb via fpc-devel wrote:
>
> It breaks GDB because GDB's Pascal mode is severely broken, and
> declining.
And just to show that:
Compiling for 32 bit, and using an **older** gdb on Windows:
GNU gdb 6.7.50.20071127
Current language: auto; currently pascal
(gdb) p a
$1 = {ab = 0, static d = 3}
It was able to print that for records. (well it gets the value wrong)
(I did not find the version that worked for classes too, though older
v.6 did not crash, but just say "optimized out" for the constant)
And again, making gdb believe its a "c" app, and a lot more suddenly works.
>
> program ClassVar;
> {$Mode objfpc}{$H+}
> {$ModeSwitch advancedrecords}
> type
> TTest = record
> ab: word;
> public const
> d = 5;
> end;
>
> var a,b:TTest;
> begin
> a.ab:=1;
> end.
>
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list