[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mandatory -dbg packages

On 29/10/12 07:25, Neil Williams wrote:
On Mon, 29 Oct 2012 08:53:05 +0800
Paul Wise<pabs@debian.org>  wrote:

On Mon, Oct 29, 2012 at 8:50 AM, Philip Ashmore wrote:

While this feature allows gdb to know the correct source locations, using it
implies that packages requiring the feature contain incorrect source paths -
wouldn't it be better for these packages to contain correct source paths in
the first place?

There is no such thing as a "correct source path", I unpack source
tarballs to ~/tmp/ when debugging, you seem to use /usr/src/ and John
Doe uses ~/src/debian/pool/f/foo/foo-0.1/.

The "correct source path" for gdb is whatever the user has put into
~/.gdbinit - the paths inside the package don't matter.

dir /path/one/
dir /path/another/
In Fedora, the dbg package includes the source code for the package, and the debug information points to it.
In Fedora, by convention, such source code goes under /usr/src.

If you prefer your users mess with .gdbinit so they can create a useful stack trace then that's up to you.


Reply to: