Zitat von Jonas Maebe <[email protected]>:

>
> On 27 Feb 2009, at 15:17, Paul Ishenin wrote:
>
> > We have a trouble in lazarus. We need to open units and include
> > files wich gdb returns to us. The problem is that gdb repors them
> > without full path.
>
> It's because there is no path information in the debug information.
>
> > What solution fpc team can suggest?
>
> Use DWARF :)
>
> I don't know where the decision comes from to not include any path
> information in the stabs debug information that FPC generates (gcc
> does include it by default). It is possible to specify a full path for
> each file in stabs. That path would obviously be invalid if you copy
> the program to another machine though (or if you access it from
> another machine over a network share).

True, but a /bla/bla/rtl/objpas/classes/lists.inc is much better than a
lists.inc.

> Maybe you cannot tell gdb to
> search elsewhere for the source if you include a full path? A command
> line option could be added to make FPC store full paths in the stabs
> debug info though. Feel free to file a feature request

Thanks for the advice.
Paul, will you do that?


> In case of DWARF, the path is split in two parts: a base directory,
> and then paths to files relative to this base directory. That makes it
> easier to specify full paths and still be portable to other file
> system layouts, I guess (although I don't know how gdb handles this
> either).


Mattias

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to