tech-kern archive

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

Re: re-enabling debugging of 32 bit processes with 64 bit debugger



On Sat, Jun 29, 2019 at 08:03:59PM -0000, Christos Zoulas wrote:
> In article <CAJeAr6vOWxv4ZxspYNMDeuP0U=ZcCFACPsBMOZ-4xguf54njTg%mail.gmail.com@localhost>,
> Andrew Cagney  <andrew.cagney%gmail.com@localhost> wrote:
> >
> >Having 32-bit and 64-bit debuggers isn't sufficient.  Specifically, it
> >can't handle an exec() call where the new executable has a different
> >ISA; and this imnsho is a must have.
> 
> It is really hard to make a 32 bit debugger work on a 64 bit system
> because of the tricks we play with the location of the shared
> libraries in rtld and the debugger needs to be aware of them.

I don't buy that at all. Exposing the translation to a debugger is
trivial and in most cases, it doesn't care about the lookup mechanism at
all since it just asks the dynamic linker for the path names of the
libraries anyway.

Joerg


Home | Main Index | Thread Index | Old Index