linux-mips
[Top] [All Lists]

Re: New toolchain for Linux/mips

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: New toolchain for Linux/mips
From: Daniel Jacobowitz <dan@debian.org>
Date: Thu, 7 Jun 2001 12:41:52 -0700
Cc: linux-mips@oss.sgi.com
In-reply-to: <Pine.GSO.3.96.1010607213008.16852F-100000@delta.ds2.pg.gda.pl>; from macro@ds2.pg.gda.pl on Thu, Jun 07, 2001 at 09:35:57PM +0200
References: <20010607121741.A24155@nevyn.them.org> <Pine.GSO.3.96.1010607213008.16852F-100000@delta.ds2.pg.gda.pl>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.16i
On Thu, Jun 07, 2001 at 09:35:57PM +0200, Maciej W. Rozycki wrote:
> On Thu, 7 Jun 2001, Daniel Jacobowitz wrote:
> 
> > >  This happened to me once.  Otherwise, it looks like gdb doesn't recognize
> > > a breakpoint for some reason -- possibly it places it at a wrong address. 
> > > It shouldn't be difficult to debug -- you get information of the address
> > > the trap happened. 
> > 
> > Wouldn't you hope?  No such luck.
> > 
> > Program received signal SIGTRAP, Trace/breakpoint trap.
> > [Switching to Thread 1024 (LWP 89)]
> > 0x00000000 in ?? ()
> 
>  Then patch your kernel to display the address.  It's trivial.  See
> do_bp() in arch/mips/kernel/traps.c. 

Good idea.  Thanks.

> > I blame the threads handling, which I'm only about half through
> > debugging.
> 
>  Ah, threads...  They might be completely non-fuctional on MIPS/Linux. 
> I've never run threaded programs on MIPS/Linux, but such trivial users as
> ls appear to work.

They work, with a couple of kernel patches and a couple of library
patches.  I'm sorting through them right now.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team

<Prev in Thread] Current Thread [Next in Thread>