Re: Mandatory -dbg packages
On 29/10/12 07:25, Neil Williams wrote:
In Fedora, the dbg package includes the source code for the package, and
the debug information points to it.
On Mon, 29 Oct 2012 08:53:05 +0800
Paul Wise<firstname.lastname@example.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.
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.