This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFHelp] Linux, threads, and regsets in thread_db

On Wed, Nov 14, 2001 at 01:55:02PM -0800, H . J . Lu wrote:
> On Tue, Sep 25, 2001 at 12:08:37PM +0200, Mark Kettenis wrote:
> > Daniel Jacobowitz <> writes:
> > 
> > > I spent a while this summer making thread debugging work on some more
> > > non-x86 targets, with great frustration.  Eventually I reached the
> > > decision that my problem was in fact a glibc bug; the attached messages
> > > explain it.  Ulrich has categorically (and without explanation, when
> > > asked.  sigh.) refused the patch.
> > 
> > Seems that Ulrich is still confused about the regset issues.  I asked
> > the port maintainers to clean this up when I fixed it for i386.  Jakub
> > Jellinek cleaned up sparc, but nothing else happened.
> > 
> > > Could someone on this list at least sanity check my patch?  I have a
> > > (disgusting) workaround for GDB if the header is not changed, but I'd
> > > much rather someone convince Ulrich that I'm not crazy.  Especially
> > > since I can not get the workaround to compile without warnings.  C
> > > behaves badly in the presence of casts to/from array types.
> > 
> > In principle, your patch is the right thing.  There may be
> > interactions with <sys/user.h> and <sys/elf.h> though.  Look at the
> > i386 port to see how things should be done.
> > 
> Here is a patch for mips. It seems to work for me.

If this is applied, I strongly suggest that the rest of the patch I
originally posted be applied also.  Alpha and probably ia64/m68k are
broken in a similar way.

Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]