Subject: port-mac68k/9678: gdb fails to debug kernel core dump on mac68k
To: None <>
From: None <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 03/26/2000 13:16:01
>Number:         9678
>Category:       port-mac68k
>Synopsis:       gdb fails to debug kernel core dump on mac68k
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer (NetBSD/mac68k Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 26 13:15:01 2000
>Originator:     Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Einzeln auftretender Radfahrer
>Release:        NetBSD 1.4V
System: NetBSD 1.4V (CHUCK) #5: Thu Mar 23 00:27:26 CET 2000
Apple Macintosh IIcx  (68030)

trying to debug a NetBSD -current core, all I see in gdb is

chuck# gdb netbsd.gdb
GNU gdb 4.17
Copyright 1998 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 "m68k--netbsd"...
(gdb) target kcore /var/crash/netbsd.2.core
panic: Bus error
#0  0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()

when, according to ddb, I should see something like

db> t
_cpu_Debugger(71ca2c,100,71ca68,12ee7e,12e97d) + 6
_panic(12e97d) + 56
_trap(0,75d,8c9003) + 2b6
_sbc_pdma_in(3e2800,1,ff,2000c1c) + 11c
_ncr5380_data_xfer(3e2800,1) + 20c
_ncr5380_machine(3e2800) + 182
_ncr5380_sched(3e2800) + 40e
_ncr5380_scsi_cmd(3ec000) + 1da
_scsipi_execute_xs(3ec000) + 90
_scsi_scsipi_cmd(3dd480,3f38b4,6,2000c18,ff,0,7d0,3f3808,818) + 14a
_scsistrategy(3f3808) + 188
_physio(11249c,3f3808,d0a,100000,1c04c,3f3884) + 2fa
_scsipi_do_ioctl(3dd480,d0a,c05e5101,71ceac,3,6f3640) + 1d2
_sdioctl(d0a,c05e5101,71ceac,3,6f3640) + 552
_spec_ioctl(71cdc0) + 8c
_VOP_IOCTL(7100d0,c05e5101,71ceac,3,3ddf00,6f3640) + 5a
_vn_ioctl(70c060,c05e5101,71ceac,6f3640) + d4
_sys_ioctl(6f3640,71cf6c,71cf64) + 338
_syscall(36) + 1b4
_trap0() + e

This happens with the 1.4V system as well as with a 1.4Q system.
I've seen it work on i386, but I don't remember trying gdb on a 
core dump on mac68k.

Have a -current NetBSD/mac68k installation dump core, build a kernel 
with "-g" and look at the core dump. Be very surprised about what you see.

None, sorry.