Is there some way to make gdb work as a kernel memory reader on 4.2-RELEASE?
It seems to insist on trying /proc/$$/mem:

# gdb -k kernel.debug /dev/mem
GNU gdb 4.18
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 "i386-unknown-freebsd"...
IdlePTD 3190784
initial pcb at 5b6b000
panic messages:
---
---
#0  mi_switch () at ../../kern/kern_synch.c:858
858             if (switchtime.tv_sec == 0)
(kgdb) x/d devtab_count
0x14:   error reading /proc/454/mem

Thanks,
Romain Kang                             Disclaimer: I speak for myself alone,
[EMAIL PROTECTED]                except when indicated otherwise.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to