Fix some whitespace issues introduced with the frame_info_ptr patch.
Change-Id: I158d30d8108c97564276c647fc98283ff7b12163
/* 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
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;
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,
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);
};
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);
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);
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. */
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. */
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;
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
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)
/* See frame.h. */
-frame_info_ptr
+frame_info_ptr
skip_tailcall_frames (frame_info_ptr frame)
{
while (get_frame_type (frame) == TAILCALL_FRAME)
return inner;
}
-frame_info_ptr
+frame_info_ptr
frame_find_by_id (struct frame_id id)
{
frame_info_ptr frame, prev_frame;
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;
/* See frame.h. */
-frame_info_ptr
+frame_info_ptr
get_selected_frame (const char *message)
{
if (selected_frame == NULL)
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 ())
/* 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;
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)
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);
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);
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;
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;
/* 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;
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;
/* 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.
/* 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: */
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. */
/* 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
/* 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).
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
/* 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). */
/* 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. */
/* 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.
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
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
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);
};
static void hppanbsd_sigtramp_cache_init (const struct tramp_frame *,
- frame_info_ptr ,
+ frame_info_ptr,
struct trad_frame_cache *,
CORE_ADDR);
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 */
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 */
};
static void i386nbsd_sigtramp_cache_init (const struct tramp_frame *,
- frame_info_ptr ,
+ frame_info_ptr,
struct trad_frame_cache *,
CORE_ADDR);
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;
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);
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);
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);
/* 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
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. */
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. */
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
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
{
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,
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
};
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 */
/* 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;
};