From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Berlin To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: GDB on SGI Irix 6.5 Date: Mon, 09 Apr 2001 06:53:00 -0000 Message-id: References: X-SW-Source: 2001-04/msg00070.html Eli Zaretskii writes: > Did someone successfully build the current CVS version on Irix 6.5? If > so, are there any special tricks one need to be aware of to do that? > > I built GDB with "./configure; make" with the native C compiler and a > native Make. While it built okay, the resulting binary aborts at runtime > like this: > > (src)gdb ./emacs > GNU gdb 20010402 > Copyright 2001 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "mips-sgi-irix6.5"... > Environment variable "DISPLAY" not defined. > TERM = vt220 > Breakpoint 1 at 0x100ff7d0: file emacs.c, line 384. > Breakpoint 2 at 0x100d8e18: file xterm.c, line 11714. > (gdb) b main > Breakpoint 3 at 0x100ffe48: file emacs.c, line 736. > (gdb) r -q > Starting program: /gnu/emacs-21/emacs-21.0.101/src/./emacs -q > regcache.c:282: gdb-internal-error: Assertion `regnum >= 0 && regnum < (NUM_REGS + NUM_PSEUDO_REGS)' failed. > An internal GDB error was detected. This may make further > debugging unreliable. Continue this debugging session? (y or n) > > I've verified that this happens because legacy_read_register_gen is > called with regnum = 72, while it doesn't expect any register to have a > number greater than 71. > > Any clues? This type of thing has been happening on IRIX for at least a year. I remember getting a similar problem when I had an SGI machine for a few months last year. -- When I was little, my grandfather used to make me stand in a closet for five minutes without moving. He said it was elevator practice.