From owner-freebsd-bugs Thu May 29 14:40:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA11195 for bugs-outgoing; Thu, 29 May 1997 14:40:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA11177; Thu, 29 May 1997 14:40:03 -0700 (PDT) Resent-Date: Thu, 29 May 1997 14:40:03 -0700 (PDT) Resent-Message-Id: <199705292140.OAA11177@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, fenner@parc.xerox.com Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id OAA11093 for ; Thu, 29 May 1997 14:38:49 -0700 (PDT) Received: from klute.parc.xerox.com ([13.2.116.207]) by alpha.xerox.com with SMTP id <17907(6)>; Thu, 29 May 1997 14:38:08 PDT Received: from sundae.parc.xerox.com ([13.2.117.33]) by klute.parc.xerox.com with SMTP id <59220>; Thu, 29 May 1997 14:38:00 PDT Received: (from fenner@localhost) by sundae.parc.xerox.com (8.8.5/8.8.5) id VAA00447; Thu, 29 May 1997 21:38:00 GMT Message-Id: <199705292138.VAA00447@sundae.parc.xerox.com> Date: Thu, 29 May 1997 14:38:00 PDT From: Bill Fenner Reply-To: fenner@parc.xerox.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: gnu/3714: gdb -w -k /kernel /dev/mem != gdb --wcore --kernel /kernel /dev/mem Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 3714 >Category: gnu >Synopsis: gdb -w -k /kernel /dev/mem != gdb --wcore --kernel /kernel /dev/mem >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 29 14:40:01 PDT 1997 >Last-Modified: >Originator: Bill Fenner >Organization: Xerox >Release: FreeBSD 2.2-RELEASE i386 >Environment: FreeBSD 2.2-RELEASE >Description: gdb -w -k /kernel /dev/mem does not allow writing to variables, nor does gdb --w --k /kernel /dev/mem. gdb --wcore --kernel /kernel /dev/mem does. >How-To-Repeat: # gdb -w -k /kernel /dev/mem GDB is free software and you are welcome to 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. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc...(no debugging symbols found)... IdlePTD 26e000 current pcb at 183e000 #0 0xf0118c63 in ?? () (kgdb) set tcpconsdebug = 0 kvm_write:write failed (kgdb) quit # gdb --w --k /kernel /dev/mem GDB is free software and you are welcome to 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. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc...(no debugging symbols found)... IdlePTD 26e000 current pcb at 769000 #0 0xf0118c63 in ?? () (kgdb) set tcpconsdebug = 0 kvm_write:write failed (kgdb) quit # gdb --wcore --kernel /kernel /dev/mem GDB is free software and you are welcome to 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. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc...(no debugging symbols found)... IdlePTD 26e000 current pcb at ad4000 #0 0xf0118c63 in ?? () (kgdb) set tcpconsdebug = 0 (kgdb) quit >Fix: Unknown. Perhaps this is a gnu getopt_long_only bug. >Audit-Trail: >Unformatted: