[Pkg-cups-devel] Bug#315521: closed by Kenshi Muto <kmuto at debian.org> (Re: Bug#315521: cupsys: DEB_BUILD_OPTIONS="nostrip" produces stripped /usr/lib/cups/filter/hpgltops)
Timo Lindfors
lindi at kurp.hut.fi
Fri Aug 3 07:37:42 UTC 2007
Hi,
> From: Kenshi Muto <kmuto at 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
More information about the Pkg-cups-devel
mailing list