Subject: Re: Patching kernel with GDB
To: Manuel BOUYER <>
From: Jason Thorpe <>
List: current-users
Date: 10/30/1997 01:26:53
On Thu, 30 Oct 1997 10:10:57 +0100 
 Manuel BOUYER <> wrote:

 > with the old gdb, it was possible to change the value of a statically
 > initialised globale variable in an executable with gdb, whith the command
 > 'gdb --write <binary>' and then 'set variable=value'.
 > How to do this with the new gdb ? --write is not accepted anymore, and
 > 'set variable=value' complains about unaccessible address. I didn't find
 > anything in the man page or in 'help'.

EBADF is what I get.  Looks like gdb just never opens /dev/mem for writing.
Wow, what a lose.  Should be fairly easy to find this and correct it.

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