This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Support binary (0b...) numbers
On Mon, 11 Jan 2010 18:57:22 +0100, Joel Brobecker wrote:
> > 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
> >
> > Implement binary numbers parsing.
> > * c-exp.y (parse_number): New case 'b' and 'B'.
>
> Is this worth a NEWS entry?
That makes sense. OK to check-in?
Thanks,
Jan
2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
* NEWS: Document 0b binary number prefix parsing.
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -128,6 +128,11 @@ teval EXPR, ...
ftrace FN / FILE:LINE / *ADDR
Define a fast tracepoint at the given function, line, or address.
+* New expression syntax
+
+ GDB now parses the 0b prefix of binary numbers the same was as GCC does.
+ GDB now parses 0b101010 identically with 42.
+
* New options
set follow-exec-mode new|same