Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-07

FPC 2.2, gdb 6.6: "Internal error: `this' is not an aggregate"

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Schreiber

Hi,
If I debug into FPC rtl I get the error "Internal error: `this' is not an aggregate" while displaying variables.
i386 Suse Linux 10.2, gdb 6.6, FPC fixes_2_2 rev 7921. Any hints?

Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote 5 lines
If I debug into FPC rtl I get the error "Internal error: `this' is not an aggregate" while displaying variables. i386 Suse Linux 10.2, gdb 6.6, FPC fixes_2_2 rev 7921. Any hints?

Compile with -O-

Jonas

Reply by email

Martin Schreiber
to Jonas Maebe
Jonas Maebe wrote 9 lines
On 04 Jul 2007, at 10:43, Martin Schreiber wrote: > If I debug into FPC rtl I get the error "Internal error: `this' is > not an > aggregate" while displaying variables. > i386 Suse Linux 10.2, gdb 6.6, FPC fixes_2_2 rev 7921. > Any hints? Compile with -O-

It helped, thanks.
I hope there will be never a bug which doesn't show with optimisations off. :-)

Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote 5 lines
> Compile with -O- It helped, thanks. I hope there will be never a bug which doesn't show with optimisations off. :-)

There are definitely such bugs, especially those caused by unitialised variables. -gttt should help with that though.

One day we may support debugging with optimisations on using dwarf, although it will never be as good as debugging with optimisations off (and the better the optimisations get, the worse the debugging will become when they are turned on).

Jonas

Reply by email

Daniël Mantione
to Jonas Maebe

Op Wed, 4 Jul 2007, schreef Jonas Maebe:

One day we may support debugging with optimisations on using dwarf, although it will never be as good as debugging with optimisations off

Not off, only -O2 enables debug unfriendly optimizations. Debugging with -O1 is supported.

Daniël

Reply by email

Jonas Maebe
to Daniël Mantione
Daniël Mantione wrote 9 lines
Op Wed, 4 Jul 2007, schreef Jonas Maebe: > One day we may support debugging with optimisations on using > dwarf, although > it will never be as good as debugging with optimisations off Not off, only -O2 enables debug unfriendly optimizations. Debugging with -O1 is supported.

Yes, but keeping them off is easiest to remember, and safest (there could always be a "bug" in -O1 in the sense that one or other transformation confuses the debugger anyway).

Jonas

Reply by email