Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Linux SGI <linux@cthulhu.engr.sgi.com>
Subject: Re: GDB
Date: Tue, 23 Mar 1999 00:10:51 +0100	[thread overview]
Message-ID: <19990323001051.B2701@alpha.franken.de> (raw)
In-Reply-To: <19990322164706.A27372@bun.falkenberg.se>; from Ulf Carlsson on Mon, Mar 22, 1999 at 04:47:06PM -0500

On Mon, Mar 22, 1999 at 04:47:06PM -0500, Ulf Carlsson wrote:
> I'm having some problems with gdb for mips. I can't examine core files 
> since gdb itself dumps core files when I try start gdb (gdb nsgsml core).
> Are there other ways to check where a program crashes (except for printf()s)?
> It isn't possible to run nsgsml in gdb either, or at least it doesn't 
> provide the information I want.

hmm, if memory serves right, I had reading core working at some point.
But I just tried it again and it fails like you described. I debugged
gdb some time ago and it's was a real nightmare. IMHO fixing gdb isn't
a short term task and I'm right now trying to plug all SCSI holes
(two bugs smashed, but still too much known bugs unfixed). And after 
the SCSI stuff I'll port the RedHat Rawhide installer, so I'm not 
available to fix gdb for some time.

For a short term solution edit arch/mips/mm/fault.c and look for the
second #if 0 (after the label bad_area) and change that to a #if 1.
This will give you a kernel message for every segfault, but it won't
help you for bus errors (but it's also possible to add printks there, too).

Thomas.

-- 
   This device has completely bogus header. Compaq scores again :-|
It's a host bridge, but it should be called ghost bridge instead ;^)
                                        [Martin `MJ' Mares on linux-kernel]

  reply	other threads:[~1999-03-22 23:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-22 21:47 GDB Ulf Carlsson
1999-03-22 23:10 ` Thomas Bogendoerfer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-31 23:41 gdb Ratin Rahman (mratin)
2006-07-31 23:41 ` gdb Ratin Rahman (mratin)
1999-07-25 12:34 GDB Ralf Baechle
1998-11-05  1:30 GDB ralf
1998-11-06 20:24 ` GDB Thomas Bogendoerfer
1998-11-08 23:50   ` GDB ralf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990323001051.B2701@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=linux@cthulhu.engr.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox