[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 09:05:26AM -0500, Daniel Jacobowitz wrote:
>> On Tue, Oct 31, 2006 at 01:06:12PM +0100, Sven Luther wrote:
>>> A version of gdb as .udeb, which could easily be loaded inside the d-i would
>>> be very useful for developers. This would come in handy to debug various bugs
>>> which are otherwise hard to track, like crashes in the graphical installer,
>>> or problems like i am having right now, in parted/libparted, which only are
>>> apparent inside the d-i environment.
>> Is this really a good idea?  It seems like the wrong way round; you
>> could manually load a full GDB and associated libraries, if you need
>> it for debugging, but having it as part of a d-i image would e.g.
>> change the required bits of libraries.
> 
> Mmm, you mean the mklibs'ed library in the standard image, i hadn't thought of
> that. 
> 
> My idea was not to include it by default, but to be able to load it in the
> ramdisk, if needed, so as a .udeb in the archive, but *NOT* as part of the d-i
> image.
> 
> So, i am not entirely sure how d-i handles the case at hand here, where
> libraries are part of the actual image, but symbols are removed during
> reduction, because they are not needed by the .udebs in the image, but they
> are needed by .udebs loaded later on.
> 
> 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.

> In any case if you have a better idea on how to do this, maybe having a
> statically built gdb, it would be welcome too.

A statically built gdb is he way to go, IMHO.

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.


- --
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

iD8DBQFFR2c5Y8Chqv3NRNoRAhv0AJ9lmihF3fyS3OHr38zd4Hw7qeyPZwCg1l2q
EaEljSty/gxAEMg7QTz7xFw=
=Lowy
-----END PGP SIGNATURE-----



Reply to: