Date: Sat, 17 Feb 2018 19:56:05 -0800 From: Mark Millard <marklmi26-fbsd@yahoo.com> To: FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: /usr/local/bin/kgdb vs. /usr/libexec/kgdb for amd64 head -r329465: /usr/local/bin/kgdb gets "ABI doesn't support a vmcore target" Message-ID: <44C77922-D50F-4F41-8796-3917A386CAA3@yahoo.com>
next in thread | raw e-mail | index | archive | help
I had a panic and got a dump for amd64 head -r329465 . I was able to use /usr/libexec/kgdb to look at the vmcore.* file. But my prior attempt to use /usr/local/bin/kgdb failed: # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 461121 Last Changed Rev: 461121 # ls -lTdt /usr/local/bin/kgdb* lrwxr-xr-x 1 root wheel 7 Jan 28 12:51:57 2018 = /usr/local/bin/kgdb -> kgdb801 -r-xr-xr-x 1 root wheel 95080255 Jan 28 12:51:57 2018 = /usr/local/bin/kgdb801 # /usr/local/bin/kgdb /usr/lib/debug/boot/kernel/kernel.debug = /var/crash/vmcore.0 GNU gdb (GDB) 8.0.1 [GDB v8.0.1 for FreeBSD] Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later = <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show = copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd12.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib/debug/boot/kernel/kernel.debug...done. .gdbinit:16: Error in sourced command file: No symbol "remotebaud" in current context. ABI doesn't support a vmcore target (kgdb)=20 It seems that for amd64 /usr/local/bin/kgdb is still necessary. (I normally deal with powerpc64 and powerpc for kgdb use, odd contexts in the first place. I did not know of the amd64 issue before this.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( markmi at dsl-only.net is going away in 2018-Feb, late)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C77922-D50F-4F41-8796-3917A386CAA3>