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
|
@ -11840,7 +11840,7 @@ ada_exception_support_info_sniffer (void)
|
|||
to most users. */
|
||||
|
||||
static int
|
||||
is_known_support_routine (struct frame_info *frame)
|
||||
is_known_support_routine (frame_info_ptr frame)
|
||||
{
|
||||
enum language func_lang;
|
||||
int i;
|
||||
|
@ -11899,7 +11899,7 @@ is_known_support_routine (struct frame_info *frame)
|
|||
part of the Ada run-time, starting from FI and moving upward. */
|
||||
|
||||
void
|
||||
ada_find_printable_frame (struct frame_info *fi)
|
||||
ada_find_printable_frame (frame_info_ptr fi)
|
||||
{
|
||||
for (; fi != NULL; fi = get_prev_frame (fi))
|
||||
{
|
||||
|
@ -11933,7 +11933,7 @@ static CORE_ADDR
|
|||
ada_unhandled_exception_name_addr_from_raise (void)
|
||||
{
|
||||
int frame_level;
|
||||
struct frame_info *fi;
|
||||
frame_info_ptr fi;
|
||||
struct ada_inferior_data *data = get_ada_inferior_data (current_inferior ());
|
||||
|
||||
/* To determine the name of this exception, we need to select
|
||||
|
@ -13048,7 +13048,7 @@ ada_add_standard_exceptions (compiled_regex *preg,
|
|||
|
||||
static void
|
||||
ada_add_exceptions_from_frame (compiled_regex *preg,
|
||||
struct frame_info *frame,
|
||||
frame_info_ptr frame,
|
||||
std::vector<ada_exc_info> *exceptions)
|
||||
{
|
||||
const struct block *block = get_frame_block (frame, 0);
|
||||
|
@ -13477,7 +13477,7 @@ public:
|
|||
|
||||
struct value *read_var_value (struct symbol *var,
|
||||
const struct block *var_block,
|
||||
struct frame_info *frame) const override
|
||||
frame_info_ptr frame) const override
|
||||
{
|
||||
/* The only case where default_read_var_value is not sufficient
|
||||
is when VAR is a renaming... */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue