* c-exp.y (parse_number): Handle 0 return from sscanf.
testsuite/
* gdb.base/printcmds.exp (test_integer_literals_rejected): Add
test of "p 0x1.1".
+2010-08-19 Doug Evans <dje@google.com>
+
+ PR exp/11926
+ * c-exp.y (parse_number): Handle 0 return from sscanf.
+
2010-08-19 Joel Brobecker <brobecker@adacore.com>
* psymtab.c (map_symbol_filenames_psymtab): Call FUN with
&putithere->typed_val_float.dval, s);
p[len] = saved_char; /* restore the input stream */
+ if (num == 0)
+ {
+ free (s);
+ return ERROR;
+ }
+
if (num == 1)
putithere->typed_val_float.type =
parse_type->builtin_double;
+2010-08-19 Doug Evans <dje@google.com>
+
+ PR exp/11926
+ * gdb.base/printcmds.exp (test_integer_literals_rejected): Add
+ test of "p 0x1.1".
+
2010-08-09 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.python/python.exp (show height, set height 10)
test_print_reject "p 123DEADBEEF"
test_print_reject "p 123foobar.bazfoo3"
test_print_reject "p 123EEEEEEEEEEEEEEEEE33333k333"
+ test_print_reject "p 0x1.1"
gdb_test "p 123.4+56.7" "180.(099\[0-9]*|100\[0-9\]*)" "check for floating addition"
# Test various octal values.