summaryrefslogtreecommitdiff
path: root/gdb/c-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-08 07:27:57 -0700
committerTom Tromey <tom@tromey.com>2021-03-08 07:28:41 -0700
commitf2a98603a807101722f12b8d7a1aca9651deb133 (patch)
tree0355abc24a75d4fc1920415690cebe7e48cc2712 /gdb/c-lang.h
parentd3c54a1ce8b250acf83dda2653393f29b70d3390 (diff)
downloadbinutils-gdb-f2a98603a807101722f12b8d7a1aca9651deb133.tar.gz
Remove now-unused C evaluator code
Now that the C parser has switched to the new style, there is no need for the old C evaluation code. This affects some other languages that were relying on the C code. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * go-lang.c (go_language::expression_ops): Don't declare. * go-lang.h (class go_language) <expression_ops>: Remove. * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl): Remove. (class opencl_language) <expression_ops>: Remove. * d-lang.c (class d_language) <expression_ops>: Remove. * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare. * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove. (class c_language, class cplus_language, class asm_language) (class minimal_language) <expression_ops>: Remove.
Diffstat (limited to 'gdb/c-lang.h')
-rw-r--r--gdb/c-lang.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/c-lang.h b/gdb/c-lang.h
index a488c04c569..543a62632d5 100644
--- a/gdb/c-lang.h
+++ b/gdb/c-lang.h
@@ -90,10 +90,7 @@ extern void c_value_print (struct value *, struct ui_file *,
/* These are in c-lang.c: */
-extern struct value *evaluate_subexp_c (struct type *expect_type,
- struct expression *exp,
- int *pos,
- enum noside noside);
+extern void c_printchar (int, struct type *, struct ui_file *);
extern void c_printstr (struct ui_file * stream,
struct type *elttype,
@@ -106,8 +103,6 @@ extern void c_printstr (struct ui_file * stream,
extern void c_language_arch_info (struct gdbarch *gdbarch,
struct language_arch_info *lai);
-extern const struct exp_descriptor exp_descriptor_c;
-
extern void c_emit_char (int c, struct type *type,
struct ui_file *stream, int quoter);