Subject: gdb on kernel cores not working?
To: None <port-amd64@netbsd.org>
From: Jeff Rizzo <riz@NetBSD.org>
List: port-amd64
Date: 02/02/2006 13:13:41
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig46421E687B04E3DE1C692394
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Trying to debug an LKM, I managed to get a successful crash dump.=20
However, when I attempt to use it with gdb:

fubar:riz  /lfs/buildobj/usr/src/sys/arch/amd64/compile/FUBAR64> gdb
netbsd.gdb
GNU gdb 5.3nb1
Copyright 2002 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 detail=
s.
This GDB was configured as "x86_64--netbsd"...
(gdb) target kcore netbsd.1.core
panic: kernel %sassertion "%s" failed: file "%s", line %d
#0  0x0000000000000104 in ?? ()
(gdb) bt
#0  0x0000000000000104 in ?? ()
(gdb)


Am I doing something wrong, here?  Perhaps something about how the
kernel is compiled?  From the description of GENERIC, I have the
following so that DDB will work:

makeoptions     COPTS=3D"-O2 -fno-omit-frame-pointer"


=2E..suggestions?

Thanks,
+j





--------------enig46421E687B04E3DE1C692394
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBQ+J2FLOuUtxCgar5AQNA7wQAgMmQ2Udh4IzK2m32epDxt6RnBoS0fi48
MnadJrMRZmVaFURjiW4fmpJcJprEZOQ0IKaHxxUb7fFe5H97Yr2Iw3RRkU8DAexk
EAWmZJg7a9sYSrbThCgCdPvKHtSz8JZPt71ZQW40WwedUkevylohp8DU3kKJ61I8
mycjDzErZjY=
=yMOM
-----END PGP SIGNATURE-----

--------------enig46421E687B04E3DE1C692394--