[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#396365: please add a gdb .udeb, for easier debugging inside d-i



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sven Luther wrote:
> On Tue, Oct 31, 2006 at 05:09:46PM +0200, Eddy Petrișor wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Sven Luther wrote:
>>> My impression is that d-i loads the full libraries later on, or something
>>> such.
>> AFAIK, this never happens. The reduction is done mainly for the thing
>> not to be too big in the memory while running.
> 
> Hi Eddy,
> 
> I wonder how the current situation works for .udebs not in the image ? How do
> you find out whose symbols are used by them and know not to strip them ? Is
> this just luck ? I sincerely doubt that.

No, is not luck, just that all udebs which could be used are added to
the pool of binaries which need symbols, AFAICT:

from build/Makefile :

- --------8<----------
ifdef EXTRADRIVERS
	# Unpack the udebs of additional driver disks, so mklibs runs on them too.
	dpkg $(DPKG_UNPACK_OPTIONS) --log=/dev/null --root=$(EXTRAUDEBSDIR)
- --unpack \
		$(wildcard $(foreach dir,$(EXTRADRIVERS),$(dir)/*.udeb))
endif
ifdef EXTRAUDEBS
	# Get and unpack extra udebs too.
	get-packages udeb $(EXTRAUDEBS)
	dpkg $(DPKG_UNPACK_OPTIONS) --log=/dev/null --root=$(EXTRAUDEBSDIR)
- --unpack \
		$(foreach udeb,$(EXTRAUDEBS),$(UDEBDIR)/$(udeb).udeb)
endif
- --------8<----------

>> If you'd want a udeb for gdb, then the library reduction should take
>> into account its dependencies (symbols). This would mean:
>> - - either you make a custom image which uses mklibs-copy (no reduction)
>> and you can use a regular binary or a gdb udeb which contains just the
>> gdb binary (dynamically linked)
>> - - build a custom image with gdb's needed symbols not stripped - but this
>> means that gdb could not be used for regulaly built images.
> 
> We need a custom image anyway, since we need a -debug version of the
> binaries we want to debug.

Indeed

- --
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFR3EaY8Chqv3NRNoRAgObAKCwmdyQ3e8UFZL5tp3IScBRND07PQCfZQCc
r2NSmb15+Bte4FU8COUOIiA=
=Y5+O
-----END PGP SIGNATURE-----



Reply to: