mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:27:20 +08:00
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:
@ -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). */
|
||||
|
Reference in New Issue
Block a user