[Lazarus] Generating line info

cobines cobines at gmail.com
Mon Sep 19 20:54:57 CEST 2011


2011/9/19 Martin <lazarus at mfriebe.de>:
> The whole idea is, that using Lazarus as an ide, the user actually gets to
> see what is used...
>
> Otherwise, if users have problems, and are asked to tell what they use, the
> don't know.

I see your point.

> - Why do you prefer stabs?

Because I always had problems with DWARF, at least on Win32. I have
GDB 7.3.2 from MinGW. STABS seems to work better. There is problem
with stacktrace, like Bart posted. I cannot cast pointers, variables
to PChar, PByte, PByteArray, which I use often to look at the bytes.
For example try to do:

"pbytearray(form1.fcaption)^"
"pchar(form1.fcaption)^"
"pbyte(pointer(0x5238a4))^"

For example I want to display reference count of string:

"plongint(form1.fcaption)[-2]"

Doesn't work with DWARF.

> - Why do you prefer stabs generated by -g, rather than choosing explicitly?

I thought -g always chooses the best supported debug info for the
platform. I thought it chooses Stabs not Dwarf since it works better.
Maybe that is not the case.

Otherwise there's no problem. I figured out I can set Stabs in default
options for new project.

--
cobines




More information about the Lazarus mailing list