Subject: toolchain/16800: gdb doesn't work on mips with a 64-bit register environment.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 05/14/2002 04:17:50
>Number:         16800
>Category:       toolchain
>Synopsis:       gdb doesn't work on mips with a 64-bit register environment.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 13 21:21:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Simon Burge
>Release:        NetBSD 1.5ZC (any, really)
>Organization:
Wasabi Systems
>Environment:
System:
NetBSD swarm 1.5ZC NetBSD 1.5ZC (SBMIPS) #465: Fri May 3 15:37:29 EST 2002
simonb@thoreau.thistledown.com.au:/var/tmp/SBMIPS sbmips
Architecture: mipsel
Machine: sbmips

>Description:
	Build a mips kernel with _MIPS_BSD_API_LP32_64CLEAN set (as does
	the sbmips port) and observe that gdb doesn't work.

>How-To-Repeat:
	Run a program that produces a core file, and try to use gdb on that
	core file.

	swarm:/tmp 10% gdb /usr/pkg/bin/tcsh tcsh.core
	GNU gdb 5.0nb1
	Copyright 2000 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 "mipsel--netbsd"...(no debugging symbols found)...
	Core was generated by `tcsh'.
	Program terminated with signal 11, Segmentation fault.
	Reading symbols from /usr/libexec/ld.elf_so...done.
	Loaded symbols for /usr/libexec/ld.elf_so
	Reading symbols from /usr/lib/libtermcap.so.0...done.
	Loaded symbols for /usr/lib/libtermcap.so.0
	Reading symbols from /usr/lib/libcrypt.so.0...done.
	Loaded symbols for /usr/lib/libcrypt.so.0
	Reading symbols from /usr/lib/libc.so.12...done.
	Loaded symbols for /usr/lib/libc.so.12
	#0  0x0 in ?? ()
	(gdb)

>Fix:
	None given.
>Release-Note:
>Audit-Trail:
>Unformatted: