diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-02 20:31:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-02 20:31:35 +0000 |
commit | 4754a64e16a0afde77699cd300487822b46e8247 (patch) | |
tree | 880341674d3e31e388a7e20bad6df2be9fad6ec0 /gdb/c-valprint.c | |
parent | 161f49a3160088a08c3b07e0f025932ef4863ded (diff) | |
download | gdb-4754a64e16a0afde77699cd300487822b46e8247.zip gdb-4754a64e16a0afde77699cd300487822b46e8247.tar.gz gdb-4754a64e16a0afde77699cd300487822b46e8247.tar.bz2 |
2005-02-02 Andrew Cagney <cagney@gnu.org>
* value.c (value_enclosing_type): New function.
* value.h (VALUE_ENCLOSING_TYPE): Delete.
(value_enclosing_type): Declare.
* xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
* gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 4365dcf..532dedc 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -1,7 +1,8 @@ /* Support for printing C values for GDB, the GNU debugger. Copyright 1986, 1988, 1989, 1991, 1992, 1993, 1994, 1995, 1996, - 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. + 1997, 1998, 1999, 2000, 2001, 2003, 2005 Free Software Foundation, + Inc. This file is part of GDB. @@ -578,17 +579,17 @@ c_value_print (struct value *val, struct ui_file *stream, int format, TYPE_NAME (real_type), full ? "" : _(" [incomplete object]")); /* Print out object: enclosing type is same as real_type if full */ - return val_print (VALUE_ENCLOSING_TYPE (val), VALUE_CONTENTS_ALL (val), 0, + return val_print (value_enclosing_type (val), VALUE_CONTENTS_ALL (val), 0, VALUE_ADDRESS (val), stream, format, 1, 0, pretty); /* Note: When we look up RTTI entries, we don't get any information on const or volatile attributes */ } - else if (type != VALUE_ENCLOSING_TYPE (val)) + else if (type != value_enclosing_type (val)) { /* No RTTI information, so let's do our best */ fprintf_filtered (stream, "(%s ?) ", - TYPE_NAME (VALUE_ENCLOSING_TYPE (val))); - return val_print (VALUE_ENCLOSING_TYPE (val), VALUE_CONTENTS_ALL (val), 0, + TYPE_NAME (value_enclosing_type (val))); + return val_print (value_enclosing_type (val), VALUE_CONTENTS_ALL (val), 0, VALUE_ADDRESS (val), stream, format, 1, 0, pretty); } /* Otherwise, we end up at the return outside this "if" */ |