2 things though about the debugger.
1) Which one did you @Curt Carpenter use? Gdb or FpDebug
2) Which setting for debug info? Dwarf 2 or 3?
There may be an odd version of gdb doing something odd....
But also, if you use Dwarf 2 (that is Dwarf, or dwarf-with-sets / anything NOT labelled "dwarf 3"), then FPC does write strings in a form that is not distinguishable from Pchar.
Though even then
- there would be 'a'#0 Strings always have a leading #0 byte
- FpDebug would display 2 results labelled string and pchar.
But of course, I don't know what the odd version of GDB would do.
--------EDIT
Just saw you found something else...