Introduce get_value_arch
Similar to get_type_arch, used to get the gdbarch associated to a struct value. gdb/ChangeLog: * value.c (get_value_arch): New function. * value.h (get_value_arch): New declaration.
This commit is contained in:
parent
3723fda829
commit
e512cdbdff
3 changed files with 17 additions and 0 deletions
|
@ -99,6 +99,10 @@ struct value *value_next (struct 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);
|
||||
|
||||
/* This is being used to change the type of an existing value, that
|
||||
code should instead be creating a new value with the changed type
|
||||
(but possibly shared content). */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue