diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 07:52:09 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:06 -0700 |
commit | d0c9791728caa0d3b3270a997c7fd97919976c97 (patch) | |
tree | 1753b7232efa89e05696d4289d60ad019fc161e4 /gdb/infcmd.c | |
parent | 7cf57bc5be656c62cc6b80280a9eddad2b8ded3f (diff) | |
download | binutils-gdb-d0c9791728caa0d3b3270a997c7fd97919976c97.tar.gz |
Turn value_type into method
This changes value_type to be a method of value. Much of this patch
was written by script.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 77206fcbfe8..32d30c2a3e8 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1478,7 +1478,7 @@ get_return_value (struct symbol *func_symbol, struct value *function) = check_typedef (func_symbol->type ()->target_type ()); gdb_assert (value_type->code () != TYPE_CODE_VOID); - if (is_nocall_function (check_typedef (::value_type (function)))) + if (is_nocall_function (check_typedef (function->type ()))) { warning (_("Function '%s' does not follow the target calling " "convention, cannot determine its returned value."), @@ -2158,7 +2158,7 @@ default_print_one_register_info (struct ui_file *file, const char *name, struct value *val) { - struct type *regtype = value_type (val); + struct type *regtype = val->type (); int print_raw_format; string_file format_stream; enum tab_stops |