diff options
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/value.h b/gdb/value.h index 2c2d773..80c92c4 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -160,6 +160,11 @@ struct value DISABLE_COPY_AND_ASSIGN (value); + /* Type of the value. */ + struct type *type () const + { return m_type; } + + /* Type of value; either not an lval, or one of the various different possible kinds of lval. */ enum lval_type m_lval = not_lval; @@ -337,10 +342,6 @@ struct value ULONGEST m_limited_length = 0; }; -/* Type of the value. */ - -extern struct type *value_type (const struct value *); - /* Return the gdbarch associated with the value. */ extern struct gdbarch *get_value_arch (const struct value *value); |