-var-update using formatted value

Daniel Jacobowitz drow@false.org
Tue Jan 29 21:26:00 GMT 2008


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



More information about the Gdb mailing list