Marin Ramesa, le Fri 13 Sep 2013 00:16:57 +0200, a écrit : > On 11.09.2013 23:05:44, Samuel Thibault wrote: > > Marin Ramesa, le Tue 10 Sep 2013 10:38:04 +0200, a écrit : > > > #if DEBUG > > > -int cb_check_enable = 0; > > > +const int cb_check_enable = 0; > > > > I'd rather not. > > > > It is useful to be able to modify the value "live" from the debugger, > > so as to enable the check only for some time while debugging. > > I want to try this but I'm stuck at the first step. What command line > to use to debug a patched gnumach in qemu?
I use the internal debugger, by pressing ctrl-alt-d. Then use w to write 1 into memory. Using nm on the gnumach binary to know the address of the variable to modify. Samuel