Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 1997 14:38:00 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   gnu/3714: gdb -w -k /kernel /dev/mem != gdb --wcore --kernel /kernel /dev/mem
Message-ID:  <199705292138.VAA00447@sundae.parc.xerox.com>
Resent-Message-ID: <199705292140.OAA11177@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705292138.VAA00447>