Boost logo

Boost-Build :

Subject: Re: [Boost-build] Adding debuglink information
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-02-23 14:31:45


Anthony Foglia wrote:
> We're running with the Boost 1.40 package that comes with Ubuntu and
> have installed the debug symbol packages, but are still unable to
> debug under gdb.
>
> I believe this is because the compiled executables should have some
> .gnu_debuglink information containing the debug symbol filename, but
> don't. I see no way to add this information via the gcc/g++ command,
> but I can add it via objcopy.
Installing the debug symbols packages should do the trick. I don't think
the executable itself should be specially prepared -- it's the library
that matters.

> So first: Am I right?
I don't know. What are the messages from GDB?

> And second: How do I do this in boost-build? It doesn't call objcopy
> by default, nor does it seem any of the default features would do it.
It is not presently supported to generate separate debug info. You can
file an issue in Trac to have it considered for future versions.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk