Subject: Re: bin/5533: gdb -w is broken.
To: None <>
From: Jason Thorpe <>
List: netbsd-bugs
Date: 06/03/1998 08:26:56
On 3 Jun 1998 11:25:58 -0000 wrote:

 > 	gdb -w is not able to change values of variables in a kernel.
 > 	i used to use `gdb -k -w /netbsd' to do this, but there is no
 > 	`-k' to gdb anymore, and you can't do `target kcore' with no
 > 	core file :(

If you just want to patch the executable:

	set write
	target exec /netbsd
	set securelevel=-1

It's just a matter of knowing the standard GDB commands (the old GDB we
used to have had a lot of `custom' additions).

Jason R. Thorpe                             
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 428 6939