Bug#315521: closed by Kenshi Muto <kmuto@debian.org> (Re: Bug#315521: cupsys: DEB_BUILD_OPTIONS="nostrip" produces stripped /usr/lib/cups/filter/hpgltops)
- To: 315521@bugs.debian.org
- Cc: Kenshi Muto <kmuto@debian.org>
- Subject: Bug#315521: closed by Kenshi Muto <kmuto@debian.org> (Re: Bug#315521: cupsys: DEB_BUILD_OPTIONS="nostrip" produces stripped /usr/lib/cups/filter/hpgltops)
- From: Timo Lindfors <lindi@kurp.hut.fi>
- Date: Fri, 03 Aug 2007 10:37:42 +0300
- Message-id: <[🔎] krmyx9oypl.fsf@kurp.hut.fi>
- Reply-to: Timo Lindfors <lindi@kurp.hut.fi>, 315521@bugs.debian.org
- In-reply-to: <handler.315521.D315521.118450877822095.notifdone@bugs.debian.org> (Debian Bug Tracking System's message of "Sun, 15 Jul 2007 14:15:05 +0000")
- References: <20070715141257.1CE171A77CD@mail.topstudio.co.jp> <200506230829.j5N8TO4a032336@kurp.hut.fi> <handler.315521.D315521.118450877822095.notifdone@bugs.debian.org>
Hi,
> From: Kenshi Muto <kmuto@debian.org>
> Debian CUPS has provided debug symbols (includes hpgltops also) as
> cupsys-dbg package, since 1.2.2-2.
> Although this is a different way from your question, it's more convenient
> than rebuilding a package.
Convenience probably depends on what one is used to but that is no
problem, I'm willing to learn new things.
Previously I've done
$ cd /local/lindi/debian/debian-cupsys
$ DEB_BUILD_OPTIONS="nostrip debug noopt" fakeroot apt-get --build source cupsys
$ sudo dpkg -i cupsys*.deb
$ gdb usr/lib/cups/filter/hpgltops
(gdb) break main
(gdb) run
to get source level debuggability (I've used the approach for very
many packages and even written a script to do it automatically). With
this cupsys-dbg approach I seem to be able to get the same effect by
doing
$ cd /local/lindi/debian/debian-cupsys
$ sudo apt-get install cupsys-dbg
$ apt-get source cupsys
$ gdb /usr/lib/cups/filter/hpgltops
(gdb) directory /local/lindi/debian/debian-cupsys/cupsys-1.2.7
(gdb) symbol-file /usr/lib/debug/usr/lib/cups/filter/hpgltops
(gdb) break main
(gdb) run
Does this look correct?
best regards,
Timo Lindfors
Reply to: