This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: -var-update using formatted value
On Sat, Jan 12, 2008 at 12:39:49PM +1300, Nick Roberts wrote:
> Daniel Jacobowitz writes:
> > On Fri, Jan 11, 2008 at 11:53:04PM +0100, Andreas Schwab wrote:
> > > It should begin with a digit, otherwise it could be mistaken for an
> > > ordinary identifier. 0b is a often used prefix.
> >
> > That's unambiguous with other supported number formats and valid C
> > tokens, I believe. If I'm right, it would be nice to be able to type
> > binary numbers in GDB.
>
> I don't understand the second sentence.
I was suggesting:
(gdb) print 0b1101
$1 = 13
--
Daniel Jacobowitz
CodeSourcery