linux-mips
[Top] [All Lists]

Re: New toolchain for Linux/mips

To: Daniel Jacobowitz <dan@debian.org>
Subject: Re: New toolchain for Linux/mips
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Thu, 7 Jun 2001 21:35:57 +0200 (MET DST)
Cc: "H . J . Lu" <hjl@lucon.org>, linux-mips@oss.sgi.com
In-reply-to: <20010607121741.A24155@nevyn.them.org>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
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. 

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

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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