gdb: remove spurious spaces after frame_info_ptr

Fix some whitespace issues introduced with the frame_info_ptr patch.

Change-Id: I158d30d8108c97564276c647fc98283ff7b12163
This commit is contained in:
Simon Marchi
2022-10-24 22:05:15 -04:00
parent a2267dbfc9
commit 9efe17a3a0
22 changed files with 68 additions and 68 deletions

View File

@ -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

View File

@ -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;

View File

@ -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,

View File

@ -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);
};

View File

@ -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);

View File

@ -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. */

View File

@ -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<readonly_detached_regcache> 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);

View File

@ -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);

View File

@ -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 */

View File

@ -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 */

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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<char> language_demangle

View File

@ -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. */

View File

@ -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. */

View File

@ -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
{

View File

@ -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

View File

@ -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 */