Introduce c_value_print_inner
This introduces c_value_print_inner, which implements the la_value_print_inner method for the C family of languages. In this patch, it is just a simple wrapper of c_val_print. However, subsequent patches will convert it to use the value API. The transformation is done this way to make each patch easier to review. Future patches will apply this same treatment to other languages as well. gdb/ChangeLog 2020-03-13 Tom Tromey <tom@tromey.com> * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. * objc-lang.c (objc_language_defn): Use c_value_print_inner. * c-valprint.c (c_value_print_inner): New function. * c-lang.h (c_value_print_inner): Declare. * c-lang.c (c_language_defn, cplus_language_defn) (asm_language_defn, minimal_language_defn): Use c_value_print_inner.
This commit is contained in:
parent
1e592a8ae0
commit
6218219002
6 changed files with 32 additions and 6 deletions
|
@ -87,6 +87,11 @@ extern void c_val_print (struct type *,
|
|||
struct value *,
|
||||
const struct value_print_options *);
|
||||
|
||||
/* Implement la_value_print_inner for the C family of languages. */
|
||||
|
||||
extern void c_value_print_inner (struct value *, struct ui_file *, int,
|
||||
const struct value_print_options *);
|
||||
|
||||
extern void c_value_print (struct value *, struct ui_file *,
|
||||
const struct value_print_options *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue