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>
This commit is contained in:
parent
ba380b3e51
commit
bd2b40ac12
249 changed files with 1527 additions and 1522 deletions
|
@ -375,7 +375,7 @@ lm32_return_value (struct gdbarch *gdbarch, struct value *function,
|
|||
for it IS the sp for the next frame. */
|
||||
|
||||
static struct lm32_frame_cache *
|
||||
lm32_frame_cache (struct frame_info *this_frame, void **this_prologue_cache)
|
||||
lm32_frame_cache (frame_info_ptr this_frame, void **this_prologue_cache)
|
||||
{
|
||||
CORE_ADDR current_pc;
|
||||
ULONGEST prev_sp;
|
||||
|
@ -421,7 +421,7 @@ lm32_frame_cache (struct frame_info *this_frame, void **this_prologue_cache)
|
|||
}
|
||||
|
||||
static void
|
||||
lm32_frame_this_id (struct frame_info *this_frame, void **this_cache,
|
||||
lm32_frame_this_id (frame_info_ptr this_frame, void **this_cache,
|
||||
struct frame_id *this_id)
|
||||
{
|
||||
struct lm32_frame_cache *cache = lm32_frame_cache (this_frame, this_cache);
|
||||
|
@ -434,7 +434,7 @@ lm32_frame_this_id (struct frame_info *this_frame, void **this_cache,
|
|||
}
|
||||
|
||||
static struct value *
|
||||
lm32_frame_prev_register (struct frame_info *this_frame,
|
||||
lm32_frame_prev_register (frame_info_ptr this_frame,
|
||||
void **this_prologue_cache, int regnum)
|
||||
{
|
||||
struct lm32_frame_cache *info;
|
||||
|
@ -454,7 +454,7 @@ static const struct frame_unwind lm32_frame_unwind = {
|
|||
};
|
||||
|
||||
static CORE_ADDR
|
||||
lm32_frame_base_address (struct frame_info *this_frame, void **this_cache)
|
||||
lm32_frame_base_address (frame_info_ptr this_frame, void **this_cache)
|
||||
{
|
||||
struct lm32_frame_cache *info = lm32_frame_cache (this_frame, this_cache);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue