aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <abidh@codesourcery.com>2013-02-13 10:41:11 +0000
committerHafiz Abid Qadeer <abidh@codesourcery.com>2013-02-13 10:41:11 +0000
commita016fc87ebad51788218c2efb2790deede24758e (patch)
tree6cca9f7d6e5de7024985e47a7ce245fb8027dfc7
parentd63f4e6dff7e13120d6f8a8c7fd2df5e02fe5eb0 (diff)
downloadgdb-a016fc87ebad51788218c2efb2790deede24758e.zip
gdb-a016fc87ebad51788218c2efb2790deede24758e.tar.gz
gdb-a016fc87ebad51788218c2efb2790deede24758e.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/c-lang.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ad0ed74..f177fa3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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:
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index 3a7d6f1..91cb21e 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -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},