[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] qualify constants as const
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 1/2] qualify constants as const |
Date: |
Fri, 13 Sep 2013 00:24:42 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
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