On 12/03/2014 11:27, Joao Morais wrote:
However, RTL which I compiled with "-gl" doesn't show filenames,
procnames and line numbers anymore in the heaptrc output or
stacktraces. If I compile RTL with "-gl -gw", GDB crashes with the
following messages. Using FPC_2_6 and Laz_1_2 from yesterday.
While executing the command:
"TGDBMIDebuggerInstruction: "-break-insert +0", "
gdb reported:
"&"linespec.c:2445: internal-error: void decode_line_full(char **,
int, struct symtab *, int, struct linespec_result *, const char *,
const char *): Assertion `state->canonical_names[i].suffix != NULL'
failed.\nA problem internal to GDB has been detected,\nfurther
debugging may prove unreliable.""
Well that points to a fault in GDB. Additionally there may or may not be
an issue with FPC and the line info it wrote.
As for the fault in GDB (crashing, rather than eoither using the line
info or reporting an error), I can not predict at which commands it will
be triggered.
In Lazarus Options (Tools menu), you can change the "InternalStartBreak"
(try Entry or MainAddr). It will lead to an alternative of the "+0" break.
But that does not fix the original issue, and gdb may crash at any other
point.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal