This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]