2013-02-13 Pedro Alves <palves@redhat.com>
authorHafiz Abid Qadeer <abidh@codesourcery.com>
Wed, 13 Feb 2013 10:41:11 +0000 (10:41 +0000)
committerHafiz Abid Qadeer <abidh@codesourcery.com>
Wed, 13 Feb 2013 10:41:11 +0000 (10:41 +0000)
    Hafiz Abid Qadeer  <abidh@codesourcery.com>

* c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.

gdb/ChangeLog
gdb/c-lang.c

index ad0ed749fa5519304cdfacd0fb6f1db4bf7e5d38..f177fa3e6d758a1df0bf530871207956fbb43af0 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-13  Pedro Alves  <palves@redhat.com>
+           Hafiz Abid Qadeer  <abidh@codesourcery.com>
+
+       * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
+
 2013-02-12  Tom Tromey  <tromey@redhat.com>
 
        PR symtab/11464:
index 3a7d6f18d9c9f0d2a81eaa68c16dcb1e8a7e1549..91cb21ecd2e416492412738119f9f27017a0bd25 100644 (file)
@@ -732,6 +732,7 @@ const struct op_print c_op_print_tab[] =
   {"/", BINOP_DIV, PREC_MUL, 0},
   {"%", BINOP_REM, PREC_MUL, 0},
   {"@", BINOP_REPEAT, PREC_REPEAT, 0},
+  {"+", UNOP_PLUS, PREC_PREFIX, 0},
   {"-", UNOP_NEG, PREC_PREFIX, 0},
   {"!", UNOP_LOGICAL_NOT, PREC_PREFIX, 0},
   {"~", UNOP_COMPLEMENT, PREC_PREFIX, 0},