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/varobj.c | |
parent | ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24 (diff) | |
download | gdb-bd2b40ac129b167f1a709589dee9c009a04a6e21.zip gdb-bd2b40ac129b167f1a709589dee9c009a04a6e21.tar.gz gdb-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/varobj.c')
-rw-r--r-- | gdb/varobj.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index d3df608..467f9ff 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -225,10 +225,10 @@ gdbpy_enter_varobj::gdbpy_enter_varobj (const struct varobj *var) /* Return the full FRAME which corresponds to the given CORE_ADDR or NULL if no FRAME on the chain corresponds to CORE_ADDR. */ -static struct frame_info * +static frame_info_ptr find_frame_addr_in_frame_chain (CORE_ADDR frame_addr) { - struct frame_info *frame = NULL; + frame_info_ptr frame = NULL; if (frame_addr == (CORE_ADDR) 0) return NULL; @@ -265,7 +265,7 @@ varobj_create (const char *objname, if (expression != NULL) { - struct frame_info *fi; + frame_info_ptr fi; struct frame_id old_id = null_frame_id; const struct block *block; const char *p; @@ -1947,7 +1947,7 @@ name_of_child (struct varobj *var, int index) static bool check_scope (const struct varobj *var) { - struct frame_info *fi; + frame_info_ptr fi; bool scope; fi = frame_find_by_id (var->root->frame); |