Bug#315521: closed by Kenshi Muto [EMAIL PROTECTED] (Re: Bug#315521: cupsys: DEB_BUILD_OPTIONS=nostrip produces stripped /usr/lib/cups/filter/hpgltops)

2007-08-03 Thread Timo Lindfors
Hi,

 From: Kenshi Muto [EMAIL PROTECTED]
 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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#315521: cupsys: DEB_BUILD_OPTIONS=nostrip produces stripped /usr/lib/cups/filter/hpgltops

2005-06-23 Thread Timo Lindfors
Package: cupsys
Version: 1.1.23-10
Severity: wishlist

Steps to reproduce:
1. DEB_BUILD_OPTIONS=nostrip debug noopt CFLAGS=-g -O0 fakeroot apt-get 
--build source cupsys
2. sudo dpkg -i cupsys_1.1.23*.deb
3. file /usr/lib/cups/filter/hpgltops

Expected results:
1. hpgltops should be unstripped and contain debugging symbols

Actual results:
1. hpgltops is stripped and thus difficult to debug with gdb. file outputs 
the following:

/usr/lib/cups/filter/hpgltops: ELF 32-bit LSB executable, Intel 80386, version 
1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped

-- System Information
Debian Release: 3.1
Architecture: i386
Kernel: Linux phoenix 2.4.29met2 #1 SMP Fri Jan 21 08:46:57 UTC 2005 i686 
GNU/Linux
Locale: LANG=C, LC_CTYPE=fi_FI



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]