[fpc-devel] 0020225: issue examining pointer/array/record elements with GDB

Joost van der Sluis joost at cnoc.nl
Fri Sep 16 12:11:43 CEST 2011


On Thu, 2011-09-15 at 13:19 -0600, Seth Grover wrote:
> Joost wrote:
> > That should work. Did you compile using -gw3?
> >
> 
> I did, but it behaves even more strangely (I can't seem to print any
> variables). However I'm not in the trunk, I'm using 2.4.4 (this is a
> production environment) so maybe there's more recent changes in the
> dwarf 3 generation I don't have that are affecting it as well.

There's another difference between Dwarf-3 and Dwarf-2, and that is that
Dwarf-2 stores all variables in uppercase, while Dwarf-3 does not. Not
all GDB-versions can really handle case-insensitive searches, so a
fallback is added to search uppercase. So it could be that GDB is
case-sensitive for those variables.

Also make sure that GDB detects the language right, and is running in
pascal-mode.

Joost
-- 
My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog




More information about the fpc-devel mailing list