Subject: Re: Patching kernel with GDB
To: Manuel BOUYER <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 10/30/1997 01:26:53
On Thu, 30 Oct 1997 10:10:57 +0100
Manuel BOUYER <email@example.com> 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 firstname.lastname@example.org
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