summaryrefslogtreecommitdiff
path: root/gdb/expression.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-09-15 16:09:29 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-09-15 16:09:29 +0000
commitb9198fb0e6a3af8f5af706a155eec742e47bd7c8 (patch)
tree9f108f379397dfdce8517d999d3ebdae7955b66b /gdb/expression.h
parentcff51b91be6ed607f5b1b43e60bbade0a1cc0cd1 (diff)
downloadgdb-b9198fb0e6a3af8f5af706a155eec742e47bd7c8.tar.gz
gdb/
Fix gcc-4.5 HEAD warnings for enum ada_operator. * Makefile.in (HFILES_NO_SRCDIR): Add ada-operator.inc. * ada-lang.h (enum ada_operator): Move it to ... * ada-operator.inc: ... a new file. * expression.h (enum exp_opcode): Include ada-operator.inc. New element OP_UNUSED_LAST. Update comment for OP_EXTENDED0. gdb/ Fix gcc-4.5 HEAD warnings for GDB_FORM_cached_string. * dwarf2read.c (GDB_FORM_cached_string) (dwarf_form_name <GDB_FORM_cached_string>): Remove. (struct attribute <dwarf_form>): Reduce the bit width. (struct attribute <string_is_canonical>, DW_STRING_IS_CANONICAL): New. (read_attribute_value <DW_FORM_string>) (read_attribute_value <DW_FORM_strp>): Initialize DW_STRING_IS_CANONICAL. (dwarf2_name, dump_die_shallow <DW_FORM_string>) (dump_die_shallow <DW_FORM_strp>): Update the code using former GDB_FORM_cached_string.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r--gdb/expression.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/gdb/expression.h b/gdb/expression.h
index 12163e3949e..effe1f042ed 100644
--- a/gdb/expression.h
+++ b/gdb/expression.h
@@ -335,24 +335,27 @@ enum exp_opcode
OP_DECFLOAT,
/* First extension operator. Individual language modules define
- extra operators they need as constants with values
- OP_LANGUAGE_SPECIFIC0 + k, for k >= 0, using a separate
- enumerated type definition:
- enum foo_extension_operator {
+ extra operators in *.inc include files below always starting with
+ numbering at OP_EXTENDED0:
BINOP_MOGRIFY = OP_EXTENDED0,
BINOP_FROB,
- ...
- }; */
+ ... */
OP_EXTENDED0,
/* Last possible extension operator. Defined to provide an
explicit and finite number of extended operators. */
- OP_EXTENDED_LAST = 0xff
+ OP_EXTENDED_LAST = 0xff,
/* NOTE: Eventually, we expect to convert to an object-oriented
formulation for expression operators that does away with the
need for these extension operators, and indeed for this
entire enumeration type. Therefore, consider the OP_EXTENDED
definitions to be a temporary measure. */
+
+ /* Each language specific set of operators starts at OP_EXTENDED0. */
+#include "ada-operator.inc"
+
+ /* Existing only to swallow the last comma (',') from last .inc file. */
+ OP_UNUSED_LAST
};
union exp_element