This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: -var-update using formatted value
On Mon, Jan 14, 2008 at 07:33:49PM +1300, Nick Roberts wrote:
> > I was suggesting:
> >
> > (gdb) print 0b1101
> > $1 = 13
>
> I guess the change below to c-exp.y does that, at least for C. But AFAIK 0b
> is not a recognised prefix for C.
> the change below to printcmd.c does this. This seems to be consistent with
> existing usage, e.g. in Modula-2 hexadecimals are input like 0FFH but
> output in a lanuage independent way as 0xff.
Thanks. This is exactly what I meant. If you have time, could you
post this to gdb-patches along with news/manual/testsuite bits? If
not, I'll do it (but no promises when I'll get to it).
--
Daniel Jacobowitz
CodeSourcery