From 9efe17a3a07d7d47c50a4369b9460069a6a08d72 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 24 Oct 2022 22:05:15 -0400 Subject: [PATCH] gdb: remove spurious spaces after frame_info_ptr Fix some whitespace issues introduced with the frame_info_ptr patch. Change-Id: I158d30d8108c97564276c647fc98283ff7b12163 --- gdb/alpha-tdep.h | 2 +- gdb/arc-tdep.h | 4 ++-- gdb/arm-tdep.h | 2 +- gdb/cp-abi.h | 2 +- gdb/dwarf2/frame.c | 4 ++-- gdb/dwarf2/frame.h | 4 ++-- gdb/frame.c | 32 ++++++++++++++-------------- gdb/frame.h | 48 +++++++++++++++++++++--------------------- gdb/hppa-netbsd-tdep.c | 2 +- gdb/hppa-tdep.h | 2 +- gdb/i386-darwin-tdep.h | 2 +- gdb/i386-netbsd-tdep.c | 2 +- gdb/i386-tdep.h | 4 ++-- gdb/ia64-tdep.c | 2 +- gdb/infrun.c | 6 +++--- gdb/language.h | 2 +- gdb/mi/mi-main.c | 2 +- gdb/mips-tdep.c | 2 +- gdb/symtab.h | 4 ++-- gdb/trad-frame.h | 4 ++-- gdb/tui/tui-stack.h | 2 +- gdb/user-regs.c | 2 +- 22 files changed, 68 insertions(+), 68 deletions(-) diff --git a/gdb/alpha-tdep.h b/gdb/alpha-tdep.h index c12d7ec92ae..be71b313a0a 100644 --- a/gdb/alpha-tdep.h +++ b/gdb/alpha-tdep.h @@ -81,7 +81,7 @@ struct alpha_gdbarch_tdep : gdbarch_tdep_base /* Translate a signal handler stack base address into the address of the sigcontext structure for that signal handler. */ - CORE_ADDR (*sigcontext_addr) (frame_info_ptr ) = nullptr; + CORE_ADDR (*sigcontext_addr) (frame_info_ptr) = nullptr; /* Does the PC fall in a signal trampoline. */ /* NOTE: cagney/2004-04-30: Do not copy/clone this code. Instead diff --git a/gdb/arc-tdep.h b/gdb/arc-tdep.h index 56e0c49ae71..0a762835295 100644 --- a/gdb/arc-tdep.h +++ b/gdb/arc-tdep.h @@ -131,10 +131,10 @@ struct arc_gdbarch_tdep : gdbarch_tdep_base bool has_hw_loops = false; /* Detect sigtramp. */ - bool (*is_sigtramp) (frame_info_ptr ) = nullptr; + bool (*is_sigtramp) (frame_info_ptr) = nullptr; /* Get address of sigcontext for sigtramp. */ - CORE_ADDR (*sigcontext_addr) (frame_info_ptr ) = nullptr; + CORE_ADDR (*sigcontext_addr) (frame_info_ptr) = nullptr; /* Offset of registers in `struct sigcontext'. */ const int *sc_reg_offset = nullptr; diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h index 47b0270c5c2..bcd7e08b7ce 100644 --- a/gdb/arm-tdep.h +++ b/gdb/arm-tdep.h @@ -279,7 +279,7 @@ extern void arm_displaced_step_copy_insn_closure *dsc, int regno, ULONGEST val, enum pc_write_style write_pc); -CORE_ADDR arm_skip_stub (frame_info_ptr , CORE_ADDR); +CORE_ADDR arm_skip_stub (frame_info_ptr, CORE_ADDR); ULONGEST arm_get_next_pcs_read_memory_unsigned_integer (CORE_ADDR memaddr, int len, diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h index bc85f6dc187..06d658911a8 100644 --- a/gdb/cp-abi.h +++ b/gdb/cp-abi.h @@ -247,7 +247,7 @@ struct cp_abi_ops struct type *(*get_typeid_type) (struct gdbarch *gdbarch); struct type *(*get_type_from_type_info) (struct value *value); std::string (*get_typename_from_type_info) (struct value *value); - CORE_ADDR (*skip_trampoline) (frame_info_ptr , CORE_ADDR); + CORE_ADDR (*skip_trampoline) (frame_info_ptr, CORE_ADDR); struct language_pass_by_ref_info (*pass_by_reference) (struct type *type); }; diff --git a/gdb/dwarf2/frame.c b/gdb/dwarf2/frame.c index d4bc53e5dd8..3f884abe1d5 100644 --- a/gdb/dwarf2/frame.c +++ b/gdb/dwarf2/frame.c @@ -659,7 +659,7 @@ void dwarf2_frame_set_init_reg (struct gdbarch *gdbarch, void (*init_reg) (struct gdbarch *, int, struct dwarf2_frame_state_reg *, - frame_info_ptr )) + frame_info_ptr)) { struct dwarf2_frame_ops *ops = get_frame_ops (gdbarch); @@ -684,7 +684,7 @@ dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum, void dwarf2_frame_set_signal_frame_p (struct gdbarch *gdbarch, int (*signal_frame_p) (struct gdbarch *, - frame_info_ptr )) + frame_info_ptr)) { struct dwarf2_frame_ops *ops = get_frame_ops (gdbarch); diff --git a/gdb/dwarf2/frame.h b/gdb/dwarf2/frame.h index 653156fa509..06c8a10c178 100644 --- a/gdb/dwarf2/frame.h +++ b/gdb/dwarf2/frame.h @@ -208,7 +208,7 @@ extern bool dwarf2_frame_unwinders_enabled_p; extern void dwarf2_frame_set_init_reg (struct gdbarch *gdbarch, void (*init_reg) (struct gdbarch *, int, struct dwarf2_frame_state_reg *, - frame_info_ptr )); + frame_info_ptr)); /* Set the architecture-specific signal trampoline recognition function for GDBARCH to SIGNAL_FRAME_P. */ @@ -216,7 +216,7 @@ extern void dwarf2_frame_set_init_reg (struct gdbarch *gdbarch, extern void dwarf2_frame_set_signal_frame_p (struct gdbarch *gdbarch, int (*signal_frame_p) (struct gdbarch *, - frame_info_ptr )); + frame_info_ptr)); /* Set the architecture-specific adjustment of .eh_frame and .debug_frame register numbers. */ diff --git a/gdb/frame.c b/gdb/frame.c index 3ddc0d06996..858fe64e832 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -298,7 +298,7 @@ frame_stash_add (frame_info *frame) given frame ID. If found, return that frame. Otherwise return NULL. */ -static frame_info_ptr +static frame_info_ptr frame_stash_find (struct frame_id id) { struct frame_info dummy; @@ -505,7 +505,7 @@ frame_info::to_string () const Return FRAME if FRAME is a non-artificial frame. Return NULL if FRAME is the start of an artificial-only chain. */ -static frame_info_ptr +static frame_info_ptr skip_artificial_frames (frame_info_ptr frame) { /* Note we use get_prev_frame_always, and not get_prev_frame. The @@ -526,7 +526,7 @@ skip_artificial_frames (frame_info_ptr frame) return frame; } -frame_info_ptr +frame_info_ptr skip_unwritable_frames (frame_info_ptr frame) { while (gdbarch_code_of_frame_writable (get_frame_arch (frame), frame) == 0) @@ -541,7 +541,7 @@ skip_unwritable_frames (frame_info_ptr frame) /* See frame.h. */ -frame_info_ptr +frame_info_ptr skip_tailcall_frames (frame_info_ptr frame) { while (get_frame_type (frame) == TAILCALL_FRAME) @@ -866,7 +866,7 @@ frame_id_inner (struct gdbarch *gdbarch, struct frame_id l, struct frame_id r) return inner; } -frame_info_ptr +frame_info_ptr frame_find_by_id (struct frame_id id) { frame_info_ptr frame, prev_frame; @@ -1608,7 +1608,7 @@ frame_obstack_zalloc (unsigned long size) static frame_info_ptr get_prev_frame_always_1 (frame_info_ptr this_frame); -frame_info_ptr +frame_info_ptr get_current_frame (void) { frame_info_ptr current_frame; @@ -1802,7 +1802,7 @@ has_stack_frames () /* See frame.h. */ -frame_info_ptr +frame_info_ptr get_selected_frame (const char *message) { if (selected_frame == NULL) @@ -1821,7 +1821,7 @@ get_selected_frame (const char *message) the inferior does not have a frame; in that case it will return NULL instead of calling error(). */ -frame_info_ptr +frame_info_ptr deprecated_safe_get_selected_frame (void) { if (!has_stack_frames ()) @@ -1906,7 +1906,7 @@ select_frame (frame_info_ptr fi) /* Create an arbitrary (i.e. address specified by user) or innermost frame. Always returns a non-NULL value. */ -frame_info_ptr +frame_info_ptr create_new_frame (CORE_ADDR addr, CORE_ADDR pc) { frame_info *fi; @@ -1945,7 +1945,7 @@ create_new_frame (CORE_ADDR addr, CORE_ADDR pc) innermost frame). Be careful to not fall off the bottom of the frame chain and onto the sentinel frame. */ -frame_info_ptr +frame_info_ptr get_next_frame (frame_info_ptr this_frame) { if (this_frame->level > 0) @@ -1958,7 +1958,7 @@ get_next_frame (frame_info_ptr this_frame) innermost (i.e. current) frame, return the sentinel frame. Thus, unlike get_next_frame(), NULL will never be returned. */ -frame_info_ptr +frame_info_ptr get_next_frame_sentinel_okay (frame_info_ptr this_frame) { gdb_assert (this_frame != NULL); @@ -2062,7 +2062,7 @@ frame_register_unwind_location (frame_info_ptr this_frame, int regnum, then the frame_id of the inline frame, calculated based off the frame_id of the previous frame, should also be a duplicate. */ -static frame_info_ptr +static frame_info_ptr get_prev_frame_maybe_check_cycle (frame_info_ptr this_frame) { frame_info_ptr prev_frame = get_prev_frame_raw (this_frame); @@ -2150,7 +2150,7 @@ get_prev_frame_maybe_check_cycle (frame_info_ptr this_frame) TRY_CATCH block. Return the frame that called THIS_FRAME or NULL if there is no such frame. This may throw an exception. */ -static frame_info_ptr +static frame_info_ptr get_prev_frame_always_1 (frame_info_ptr this_frame) { FRAME_SCOPED_DEBUG_ENTER_EXIT; @@ -2306,7 +2306,7 @@ get_prev_frame_always_1 (frame_info_ptr this_frame) Unlike get_prev_frame, this function always tries to unwind the frame. */ -frame_info_ptr +frame_info_ptr get_prev_frame_always (frame_info_ptr this_frame) { frame_info_ptr prev_frame = NULL; @@ -2346,7 +2346,7 @@ get_prev_frame_always (frame_info_ptr this_frame) /* Construct a new "struct frame_info" and link it previous to this_frame. */ -static frame_info_ptr +static frame_info_ptr get_prev_frame_raw (frame_info_ptr this_frame) { frame_info *prev_frame; @@ -2471,7 +2471,7 @@ inside_entry_func (frame_info_ptr this_frame) This function should not contain target-dependent tests, such as checking whether the program-counter is zero. */ -frame_info_ptr +frame_info_ptr get_prev_frame (frame_info_ptr this_frame) { FRAME_SCOPED_DEBUG_ENTER_EXIT; diff --git a/gdb/frame.h b/gdb/frame.h index 5ee96cee46c..f61ea63c290 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -241,7 +241,7 @@ extern frame_info_ptr get_selected_frame (const char *message = nullptr); /* Select a specific frame. NULL implies re-select the inner most frame. */ -extern void select_frame (frame_info_ptr ); +extern void select_frame (frame_info_ptr); /* Save the frame ID and frame level of the selected frame in FRAME_ID and FRAME_LEVEL, to be restored later with restore_selected_frame. @@ -273,19 +273,19 @@ extern void lookup_selected_frame (frame_id frame_id, int frame_level); /* Given a FRAME, return the next (more inner, younger) or previous (more outer, older) frame. */ -extern frame_info_ptr get_prev_frame (frame_info_ptr ); -extern frame_info_ptr get_next_frame (frame_info_ptr ); +extern frame_info_ptr get_prev_frame (frame_info_ptr); +extern frame_info_ptr get_next_frame (frame_info_ptr); /* Like get_next_frame(), but allows return of the sentinel frame. NULL is never returned. */ -extern frame_info_ptr get_next_frame_sentinel_okay (frame_info_ptr ); +extern frame_info_ptr get_next_frame_sentinel_okay (frame_info_ptr); /* Return a "struct frame_info" corresponding to the frame that called THIS_FRAME. Returns NULL if there is no such frame. Unlike get_prev_frame, this function always tries to unwind the frame. */ -extern frame_info_ptr get_prev_frame_always (frame_info_ptr ); +extern frame_info_ptr get_prev_frame_always (frame_info_ptr); /* Base attributes of a frame: */ @@ -293,7 +293,7 @@ extern frame_info_ptr get_prev_frame_always (frame_info_ptr ); this frame. This replaced: frame->pc; */ -extern CORE_ADDR get_frame_pc (frame_info_ptr ); +extern CORE_ADDR get_frame_pc (frame_info_ptr); /* Same as get_frame_pc, but return a boolean indication of whether the PC is actually available, instead of throwing an error. */ @@ -326,7 +326,7 @@ extern bool get_frame_address_in_block_if_available (frame_info_ptr this_frame, /* The frame's inner-most bound. AKA the stack-pointer. Confusingly known as top-of-stack. */ -extern CORE_ADDR get_frame_sp (frame_info_ptr ); +extern CORE_ADDR get_frame_sp (frame_info_ptr); /* Following on from the `resume' address. Return the entry point address of the function containing that resume address, or zero if @@ -363,7 +363,7 @@ extern symtab_and_line find_frame_sal (frame_info_ptr frame); /* Set the current source and line to the location given by frame FRAME, if possible. */ -void set_current_sal_from_frame (frame_info_ptr ); +void set_current_sal_from_frame (frame_info_ptr); /* Return the frame base (what ever that is) (DEPRECATED). @@ -387,7 +387,7 @@ void set_current_sal_from_frame (frame_info_ptr ); This replaced: frame->frame; */ -extern CORE_ADDR get_frame_base (frame_info_ptr ); +extern CORE_ADDR get_frame_base (frame_info_ptr); /* Return the per-frame unique identifer. Can be used to relocate a frame after a frame cache flush (and other similar operations). If @@ -399,21 +399,21 @@ extern struct frame_id frame_unwind_caller_id (frame_info_ptr next_frame); /* Assuming that a frame is `normal', return its base-address, or 0 if the information isn't available. NOTE: This address is really only meaningful to the frame's high-level debug info. */ -extern CORE_ADDR get_frame_base_address (frame_info_ptr ); +extern CORE_ADDR get_frame_base_address (frame_info_ptr); /* Assuming that a frame is `normal', return the base-address of the local variables, or 0 if the information isn't available. NOTE: This address is really only meaningful to the frame's high-level debug info. Typically, the argument and locals share a single base-address. */ -extern CORE_ADDR get_frame_locals_address (frame_info_ptr ); +extern CORE_ADDR get_frame_locals_address (frame_info_ptr); /* Assuming that a frame is `normal', return the base-address of the parameter list, or 0 if that information isn't available. NOTE: This address is really only meaningful to the frame's high-level debug info. Typically, the argument and locals share a single base-address. */ -extern CORE_ADDR get_frame_args_address (frame_info_ptr ); +extern CORE_ADDR get_frame_args_address (frame_info_ptr); /* The frame's level: 0 for innermost, 1 for its caller, ...; or -1 for an invalid frame). */ @@ -421,18 +421,18 @@ extern int frame_relative_level (frame_info_ptr fi); /* Return the frame's type. */ -extern enum frame_type get_frame_type (frame_info_ptr ); +extern enum frame_type get_frame_type (frame_info_ptr); /* Return the frame's program space. */ -extern struct program_space *get_frame_program_space (frame_info_ptr ); +extern struct program_space *get_frame_program_space (frame_info_ptr); /* Unwind THIS frame's program space from the NEXT frame. */ -extern struct program_space *frame_unwind_program_space (frame_info_ptr ); +extern struct program_space *frame_unwind_program_space (frame_info_ptr); class address_space; /* Return the frame's address space. */ -extern const address_space *get_frame_address_space (frame_info_ptr ); +extern const address_space *get_frame_address_space (frame_info_ptr); /* For frames where we can not unwind further, describe why. */ @@ -452,7 +452,7 @@ enum unwind_stop_reason /* Return the reason why we can't unwind past this frame. */ -enum unwind_stop_reason get_frame_unwind_stop_reason (frame_info_ptr ); +enum unwind_stop_reason get_frame_unwind_stop_reason (frame_info_ptr); /* Translate a reason code to an informative string. This converts the generic stop reason codes into a generic string describing the code. @@ -469,7 +469,7 @@ const char *unwind_stop_reason_to_string (enum unwind_stop_reason); Should only be called for frames that don't have a previous frame. */ -const char *frame_stop_reason_string (frame_info_ptr ); +const char *frame_stop_reason_string (frame_info_ptr); /* Unwind the stack frame so that the value of REGNUM, in the previous (up, older) frame is returned. If VALUEP is NULL, don't @@ -630,7 +630,7 @@ class readonly_detached_regcache; std::unique_ptr frame_save_as_regcache (frame_info_ptr this_frame); -extern const struct block *get_frame_block (frame_info_ptr , +extern const struct block *get_frame_block (frame_info_ptr, CORE_ADDR *addr_in_block); /* Return the `struct block' that belongs to the selected thread's @@ -661,26 +661,26 @@ extern const struct block *get_frame_block (frame_info_ptr , extern const struct block *get_selected_block (CORE_ADDR *addr_in_block); -extern struct symbol *get_frame_function (frame_info_ptr ); +extern struct symbol *get_frame_function (frame_info_ptr); extern CORE_ADDR get_pc_function_start (CORE_ADDR); -extern frame_info_ptr find_relative_frame (frame_info_ptr , int *); +extern frame_info_ptr find_relative_frame (frame_info_ptr, int *); /* Wrapper over print_stack_frame modifying current_uiout with UIOUT for the function call. */ extern void print_stack_frame_to_uiout (struct ui_out *uiout, - frame_info_ptr , int print_level, + frame_info_ptr, int print_level, enum print_what print_what, int set_current_sal); -extern void print_stack_frame (frame_info_ptr , int print_level, +extern void print_stack_frame (frame_info_ptr, int print_level, enum print_what print_what, int set_current_sal); extern void print_frame_info (const frame_print_options &fp_opts, - frame_info_ptr , int print_level, + frame_info_ptr, int print_level, enum print_what print_what, int args, int set_current_sal); diff --git a/gdb/hppa-netbsd-tdep.c b/gdb/hppa-netbsd-tdep.c index 3c5364cb370..7be06a4d1a6 100644 --- a/gdb/hppa-netbsd-tdep.c +++ b/gdb/hppa-netbsd-tdep.c @@ -64,7 +64,7 @@ static int hppanbsd_mc_reg_offset[] = }; static void hppanbsd_sigtramp_cache_init (const struct tramp_frame *, - frame_info_ptr , + frame_info_ptr, struct trad_frame_cache *, CORE_ADDR); diff --git a/gdb/hppa-tdep.h b/gdb/hppa-tdep.h index 6ebcdc5e90a..516d2ef8a8c 100644 --- a/gdb/hppa-tdep.h +++ b/gdb/hppa-tdep.h @@ -212,6 +212,6 @@ extern CORE_ADDR hppa_unwind_pc (struct gdbarch *gdbarch, extern int hppa_in_solib_call_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc); -extern CORE_ADDR hppa_skip_trampoline_code (frame_info_ptr , CORE_ADDR pc); +extern CORE_ADDR hppa_skip_trampoline_code (frame_info_ptr, CORE_ADDR pc); #endif /* hppa-tdep.h */ diff --git a/gdb/i386-darwin-tdep.h b/gdb/i386-darwin-tdep.h index 2628ef49bc4..284a9b1b07a 100644 --- a/gdb/i386-darwin-tdep.h +++ b/gdb/i386-darwin-tdep.h @@ -27,6 +27,6 @@ extern int i386_darwin_thread_state_reg_offset[]; extern const int i386_darwin_thread_state_num_regs; -int darwin_dwarf_signal_frame_p (struct gdbarch *, frame_info_ptr ); +int darwin_dwarf_signal_frame_p (struct gdbarch *, frame_info_ptr); #endif /* I386_DARWIN_TDEP_H */ diff --git a/gdb/i386-netbsd-tdep.c b/gdb/i386-netbsd-tdep.c index e0fc00e8b94..daeddb7a8f4 100644 --- a/gdb/i386-netbsd-tdep.c +++ b/gdb/i386-netbsd-tdep.c @@ -97,7 +97,7 @@ static int i386nbsd_mc_reg_offset[] = }; static void i386nbsd_sigtramp_cache_init (const struct tramp_frame *, - frame_info_ptr , + frame_info_ptr, struct trad_frame_cache *, CORE_ADDR); diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 72e10457b2a..0ae1ef62da7 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -223,10 +223,10 @@ struct i386_gdbarch_tdep : gdbarch_tdep_base CORE_ADDR sigtramp_end = 0; /* Detect sigtramp. */ - int (*sigtramp_p) (frame_info_ptr ) = nullptr; + int (*sigtramp_p) (frame_info_ptr) = nullptr; /* Get address of sigcontext for sigtramp. */ - CORE_ADDR (*sigcontext_addr) (frame_info_ptr ) = nullptr; + CORE_ADDR (*sigcontext_addr) (frame_info_ptr) = nullptr; /* Offset of registers in `struct sigcontext'. */ int *sc_reg_offset = 0; diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index d7b456b11df..519c956e169 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -2537,7 +2537,7 @@ ia64_access_fpreg (unw_addr_space_t as, unw_regnum_t uw_regnum, unw_fpreg_t *val, int write, void *arg) { int regnum = ia64_uw2gdb_regnum (uw_regnum); - frame_info_ptr this_frame = (frame_info_ptr ) arg; + frame_info_ptr this_frame = (frame_info_ptr) arg; /* We never call any libunwind routines that need to write registers. */ gdb_assert (!write); diff --git a/gdb/infrun.c b/gdb/infrun.c index fcc4d80fc73..8507796cc31 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -84,9 +84,9 @@ static void follow_inferior_reset_breakpoints (void); static bool currently_stepping (struct thread_info *tp); -static void insert_hp_step_resume_breakpoint_at_frame (frame_info_ptr ); +static void insert_hp_step_resume_breakpoint_at_frame (frame_info_ptr); -static void insert_step_resume_breakpoint_at_caller (frame_info_ptr ); +static void insert_step_resume_breakpoint_at_caller (frame_info_ptr); static void insert_longjmp_resume_breakpoint (struct gdbarch *, CORE_ADDR); @@ -3473,7 +3473,7 @@ static void handle_step_into_function_backward (struct gdbarch *gdbarch, struct execution_control_state *ecs); static void handle_signal_stop (struct execution_control_state *ecs); static void check_exception_resume (struct execution_control_state *, - frame_info_ptr ); + frame_info_ptr); static void end_stepping_range (struct execution_control_state *ecs); static void stop_waiting (struct execution_control_state *ecs); diff --git a/gdb/language.h b/gdb/language.h index 6482f371e22..871b00b3c94 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -782,7 +782,7 @@ extern const char *language_str (enum language); /* Check for a language-specific trampoline. */ -extern CORE_ADDR skip_language_trampoline (frame_info_ptr , CORE_ADDR pc); +extern CORE_ADDR skip_language_trampoline (frame_info_ptr, CORE_ADDR pc); /* Return demangled language symbol, or NULL. */ extern gdb::unique_xmalloc_ptr language_demangle diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 3db7a50648d..e5b003ec99b 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -95,7 +95,7 @@ static void mi_execute_async_cli_command (const char *cli_command, char **argv, int argc); static bool register_changed_p (int regnum, readonly_detached_regcache *, readonly_detached_regcache *); -static void output_register (frame_info_ptr , int regnum, int format, +static void output_register (frame_info_ptr, int regnum, int format, int skip_unavailable); /* Controls whether the frontend wants MI in async mode. */ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 72bf8fd660d..8c1643585f4 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -74,7 +74,7 @@ static int mips16_insn_at_pc_has_delay_slot (struct gdbarch *gdbarch, CORE_ADDR addr, int mustbe32); static void mips_print_float_info (struct gdbarch *, struct ui_file *, - frame_info_ptr , const char *); + frame_info_ptr, const char *); /* A useful bit in the CP0 status register (MIPS_PS_REGNUM). */ /* This bit is set if we are emulating 32-bit FPRs on a 64-bit chip. */ diff --git a/gdb/symtab.h b/gdb/symtab.h index 90f5b45738b..dac3266290c 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1069,7 +1069,7 @@ struct symbol_computed_ops FRAME may be zero. */ struct value *(*read_variable) (struct symbol * symbol, - frame_info_ptr frame); + frame_info_ptr frame); /* Read variable SYMBOL like read_variable at (callee) FRAME's function entry. SYMBOL should be a function parameter, otherwise @@ -2254,7 +2254,7 @@ struct gnu_ifunc_fns extern const struct gnu_ifunc_fns *gnu_ifunc_fns_p; -extern CORE_ADDR find_solib_trampoline_target (frame_info_ptr , CORE_ADDR); +extern CORE_ADDR find_solib_trampoline_target (frame_info_ptr, CORE_ADDR); struct symtab_and_line { diff --git a/gdb/trad-frame.h b/gdb/trad-frame.h index 190f4098b5d..e193eb594e2 100644 --- a/gdb/trad-frame.h +++ b/gdb/trad-frame.h @@ -31,7 +31,7 @@ struct trad_frame_cache; The entire cache is populated in a single pass and then generic routines are used to extract the various cache values. */ -struct trad_frame_cache *trad_frame_cache_zalloc (frame_info_ptr ); +struct trad_frame_cache *trad_frame_cache_zalloc (frame_info_ptr); /* This frame's ID. */ void trad_frame_set_id (struct trad_frame_cache *this_trad_cache, @@ -194,7 +194,7 @@ void trad_frame_reset_saved_regs (struct gdbarch *gdbarch, trad_frame_saved_reg *regs); /* Return a freshly allocated (and initialized) trad_frame array. */ -trad_frame_saved_reg *trad_frame_alloc_saved_regs (frame_info_ptr ); +trad_frame_saved_reg *trad_frame_alloc_saved_regs (frame_info_ptr); trad_frame_saved_reg *trad_frame_alloc_saved_regs (struct gdbarch *); /* Given the trad_frame info, return the location of the specified diff --git a/gdb/tui/tui-stack.h b/gdb/tui/tui-stack.h index 5cb570f779e..218df6859f2 100644 --- a/gdb/tui/tui-stack.h +++ b/gdb/tui/tui-stack.h @@ -79,6 +79,6 @@ private: }; extern void tui_show_locator_content (void); -extern bool tui_show_frame_info (frame_info_ptr ); +extern bool tui_show_frame_info (frame_info_ptr); #endif /* TUI_TUI_STACK_H */ diff --git a/gdb/user-regs.c b/gdb/user-regs.c index 6b8dffff6b8..e699045e1a0 100644 --- a/gdb/user-regs.c +++ b/gdb/user-regs.c @@ -44,7 +44,7 @@ struct user_reg /* Avoid the "read" symbol name as it conflicts with a preprocessor symbol in the NetBSD header for Stack Smashing Protection, that wraps the read(2) syscall. */ - struct value *(*xread) (frame_info_ptr frame, const void *baton); + struct value *(*xread) (frame_info_ptr frame, const void *baton); const void *baton; struct user_reg *next; }; -- 2.30.2