diff options
author | Tom Tromey <tom@tromey.com> | 2022-07-25 14:06:35 -0300 |
---|---|---|
committer | Bruno Larsen <blarsen@redhat.com> | 2022-10-10 11:57:10 +0200 |
commit | bd2b40ac129b167f1a709589dee9c009a04a6e21 (patch) | |
tree | 675eb8430a923c94353eca0ec2e7b56cfc1eae37 /gdb/value.h | |
parent | ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24 (diff) | |
download | binutils-bd2b40ac129b167f1a709589dee9c009a04a6e21.zip binutils-bd2b40ac129b167f1a709589dee9c009a04a6e21.tar.gz binutils-bd2b40ac129b167f1a709589dee9c009a04a6e21.tar.bz2 |
Change GDB to use frame_info_ptr
This changes GDB to use frame_info_ptr instead of frame_info *
The substitution was done with multiple sequential `sed` commands:
sed 's/^struct frame_info;/class frame_info_ptr;/'
sed 's/struct frame_info \*/frame_info_ptr /g' - which left some
issues in a few files, that were manually fixed.
sed 's/\<frame_info \*/frame_info_ptr /g'
sed 's/frame_info_ptr $/frame_info_ptr/g' - used to remove whitespace
problems.
The changed files were then manually checked and some 'sed' changes
undone, some constructors and some gets were added, according to what
made sense, and what Tromey originally did
Co-Authored-By: Bruno Larsen <blarsen@redhat.com>
Approved-by: Tom Tomey <tom@tromey.com>
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/value.h b/gdb/value.h index 52752df..d4b4f95 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -621,7 +621,7 @@ struct value *value_vector_widen (struct value *scalar_value, #include "gdbtypes.h" #include "expression.h" -struct frame_info; +class frame_info_ptr; struct fn_field; extern int print_address_demangle (const struct value_print_options *, @@ -703,13 +703,13 @@ extern struct value *default_value_from_register (struct gdbarch *gdbarch, struct frame_id frame_id); extern void read_frame_register_value (struct value *value, - struct frame_info *frame); + frame_info_ptr frame); extern struct value *value_from_register (struct type *type, int regnum, - struct frame_info *frame); + frame_info_ptr frame); extern CORE_ADDR address_from_register (int regnum, - struct frame_info *frame); + frame_info_ptr frame); extern struct value *value_of_variable (struct symbol *var, const struct block *b); @@ -717,9 +717,9 @@ extern struct value *value_of_variable (struct symbol *var, extern struct value *address_of_variable (struct symbol *var, const struct block *b); -extern struct value *value_of_register (int regnum, struct frame_info *frame); +extern struct value *value_of_register (int regnum, frame_info_ptr frame); -struct value *value_of_register_lazy (struct frame_info *frame, int regnum); +struct value *value_of_register_lazy (frame_info_ptr frame, int regnum); /* Return the symbol's reading requirement. */ @@ -732,7 +732,7 @@ extern int symbol_read_needs_frame (struct symbol *); extern struct value *read_var_value (struct symbol *var, const struct block *var_block, - struct frame_info *frame); + frame_info_ptr frame); extern struct value *allocate_value (struct type *type); extern struct value *allocate_value_lazy (struct type *type); @@ -1110,7 +1110,7 @@ extern int val_print_string (struct type *elttype, const char *encoding, extern void print_variable_and_value (const char *name, struct symbol *var, - struct frame_info *frame, + frame_info_ptr frame, struct ui_file *stream, int indent); |