From: Thomas Leonard <tal00r@ec...> - 2004-07-16 10:35:36
I'm trying out a new system with the ROX-Filer snapshot. Previously, there
were two ways to distribute the filer: with debug symbols or without.
Debugging symbols add over 6 Mb to the size of the filer, but are needed
to get useful stacktraces if it crashes.
In the Zero Install version (/uri/0install/www.ecs.soton.ac.uk#~tal/rox),
instead of completely removing the debug symbols, they are now extracted
into a second file (ROX-Filer.dbg). 0build puts this file into a separate
The effect of this is that when you run the snapshot through zero install,
you get the small stripped binary. But, if you fire up gdb on it, gdb will
try to load the debug symbols file, which will be fetched automatically,
allowing you to send more useful bug reports.
Let me know of any problems!
If you want to distribute your own binaries this way (small, but with
debugging info on demand) these are the commands to use:
$ cd Linux-ix86
$ objcopy --only-keep-debug ROX-Filer ROX-Filer.dbg
$ strip ROX-Filer
$ objcopy --add-gnu-debuglink=ROX-Filer.dbg ROX-Filer
To get the .dbg file grouped separately, upgrade 0build (0refresh
(since the source code is also downloaded on demand, you can use gdb's
'dir' command to point to that... probably there's a way to make that
happen automatically too)
Thomas Leonard http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1