[fpc-pascal] RTL debuginfo on GDB 7.4+ and OSX Mavericks

Joao Morais l at joaomorais.com.br
Wed Mar 12 12:27:52 CET 2014


Hello list. I've just upgraded to OSX Mavericks. GDB is no longer 
installed with xcode5 so I downloaded, compiled and installed GDB 7.6.2 
myself. I can debug my own programs, testcases and Lazarus packages if I 
use Dwarf debuginfo.

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.""

and

The GDB command:
"-break-insert +0"
did not return any result.
The GDB process is no longer running.

Following [1] I tried to compile GDB 7.3 or below. All of them failed 
compiling or installing on Mavericks. Is this a known problem? Is there 
a workaround to see linenumbers and the like on RTL traces on Mavericks?

[1] http://www.sourceware.org/ml/gdb/2012-03/msg00055.html

Thanks!

Joao Morais





More information about the fpc-pascal mailing list