PARAMS removal.
This commit is contained in:
parent
3c07fb76e6
commit
a14ed312fd
@ -1,3 +1,101 @@
|
||||
2000-05-27 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* abug-rom.c, alpha-nat.c, alpha-tdep.c, annotate.c,
|
||||
annotate.h, arc-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
|
||||
ax.h, breakpoint.c, breakpoint.h, c-exp.y, c-lang.c, c-lang.h,
|
||||
call-cmds.h, ch-exp.c, ch-lang.c, ch-lang.h, cli-out.c,
|
||||
coff-solib.h, coffread.c, command.c, command.h, complaints.c,
|
||||
complaints.h, config/a29k/tm-a29k.h, config/a29k/tm-vx29k.h,
|
||||
config/alpha/nm-linux.h, config/alpha/nm-osf.h,
|
||||
config/alpha/nm-osf2.h, config/alpha/tm-alpha.h,
|
||||
config/alpha/tm-alphalinux.h, config/arc/tm-arc.h,
|
||||
config/arm/tm-embed.h, config/d30v/tm-d30v.h,
|
||||
config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
|
||||
config/h8500/tm-h8500.h, config/i386/nm-i386bsd.h,
|
||||
config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
|
||||
config/i386/nm-i386v.h, config/i386/nm-linux.h,
|
||||
config/i386/nm-nbsd.h, config/i386/nm-ptx4.h,
|
||||
config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
|
||||
config/i386/tm-i386.h, config/i386/tm-i386nw.h,
|
||||
config/i386/tm-i386sol2.h, config/i386/tm-i386v.h,
|
||||
config/i386/tm-i386v4.h, config/i386/tm-nbsd.h,
|
||||
config/i386/tm-ptx.h, config/i386/tm-sun386.h,
|
||||
config/i960/tm-mon960.h, config/i960/tm-nindy960.h,
|
||||
config/m32r/tm-m32r.h, config/m68k/nm-dpx2.h,
|
||||
config/m68k/nm-linux.h, config/m68k/tm-cisco.h,
|
||||
config/m68k/tm-delta68.h, config/m68k/tm-es1800.h,
|
||||
config/m68k/tm-isi.h, config/m68k/tm-linux.h,
|
||||
config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
|
||||
config/m68k/tm-news.h, config/m68k/tm-sun3.h,
|
||||
config/m68k/tm-vx68.h, config/m68k/xm-hp300bsd.h,
|
||||
config/m88k/tm-m88k.h, config/mcore/tm-mcore.h,
|
||||
config/mips/nm-irix3.h, config/mips/nm-irix4.h,
|
||||
config/mips/nm-irix5.h, config/mips/nm-mips.h,
|
||||
config/mips/tm-embed.h, config/mips/tm-mips.h,
|
||||
config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
|
||||
config/nm-linux.h, config/nm-lynx.h, config/ns32k/nm-nbsd.h,
|
||||
config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
|
||||
config/pa/nm-hppah.h, config/pa/tm-hppa.h,
|
||||
config/pa/tm-hppa64.h, config/pa/xm-hppah.h,
|
||||
config/powerpc/nm-linux.h, config/powerpc/tm-linux.h,
|
||||
config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-solaris.h,
|
||||
config/powerpc/xm-aix.h, config/rs6000/nm-rs6000.h,
|
||||
config/rs6000/tm-rs6000.h, config/rs6000/xm-rs6000.h,
|
||||
config/sh/tm-sh.h, config/sparc/nm-linux.h,
|
||||
config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
|
||||
config/sparc/tm-sp64.h, config/sparc/tm-sp64sim.h,
|
||||
config/sparc/tm-sparc.h, config/sparc/tm-sparclet.h,
|
||||
config/sparc/tm-spc-em.h, config/sparc/tm-sun4os4.h,
|
||||
config/sparc/tm-sun4sol2.h, config/tic80/tm-tic80.h,
|
||||
config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
|
||||
config/w65/tm-w65.h, config/xm-aix4.h, config/z8k/tm-z8k.h,
|
||||
copying.c, core-aout.c, core-regset.c, core-sol2.c,
|
||||
corefile.c, corelow.c, cp-valprint.c, cpu32bug-rom.c,
|
||||
d10v-tdep.c, d30v-tdep.c, dbug-rom.c, dbxread.c, dcache.c,
|
||||
dcache.h, demangle.c, dink32-rom.c, dsrec.c, dstread.c,
|
||||
dve3900-rom.c, dwarf2read.c, dwarfread.c, elfread.c,
|
||||
environ.h, eval.c, exec.c, expprint.c, expression.h, f-exp.y,
|
||||
f-lang.c, f-lang.h, f-valprint.c, findvar.c, fr30-tdep.c,
|
||||
frame.h, gdb_string.h, gdbcmd.h, gdbcore.h,
|
||||
gdbserver/server.h, gdbtypes.c, gdbtypes.h, gnu-regex.c,
|
||||
h8300-tdep.c, hp-psymtab-read.c, hp-symtab-read.c,
|
||||
hp300ux-nat.c, hppa-tdep.c, hppah-nat.c, hpread.c, hpread.h,
|
||||
hpux-thread.c, i386-tdep.c, i386aix-nat.c, i386mach-nat.c,
|
||||
i386v-nat.c, i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c,
|
||||
inferior.h, inflow.c, infptrace.c, inftarg.c, irix4-nat.c,
|
||||
irix5-nat.c, jv-exp.y, jv-lang.c, jv-lang.h, language.c,
|
||||
language.h, lynx-nat.c, m2-exp.y, m2-lang.c, m2-lang.h,
|
||||
m32r-rom.c, mac-nat.c, main.c, maint.c, mdebugread.c,
|
||||
mi/mi-out.c, minsyms.c, mips-nat.c, mips-tdep.c, mipsread.c,
|
||||
mn10300-tdep.c, mon960-rom.c, monitor.c, monitor.h, nlmread.c,
|
||||
objfiles.c, objfiles.h, ocd.c, ocd.h, op50-rom.c, os9kread.c,
|
||||
osfsolib.c, pa64solib.c, pa64solib.h, parse.c, parser-defs.h,
|
||||
ppc-bdm.c, printcmd.c, procfs.c, remote-array.c, remote-bug.c,
|
||||
remote-e7000.c, remote-es.c, remote-est.c, remote-hms.c,
|
||||
remote-mips.c, remote-nindy.c, remote-nrom.c, remote-rdi.c,
|
||||
remote-rdp.c, remote-sds.c, remote-sim.c, remote-udi.c,
|
||||
remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
|
||||
rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, scm-exp.c,
|
||||
scm-lang.c, scm-lang.h, ser-e7kpc.c, ser-mac.c, sh3-rom.c,
|
||||
sol-thread.c, solib.c, solib.h, somread.c, somsolib.c,
|
||||
somsolib.h, source.c, sparc-nat.c, sparcl-tdep.c,
|
||||
sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
|
||||
sun3-nat.c, symfile.c, symfile.h, symmisc.c, symtab.c,
|
||||
symtab.h, target.c, target.h, terminal.h, thread.c, top.c,
|
||||
top.h, tracepoint.c, tracepoint.h, tui/tui-file.c, tui/tui.c,
|
||||
tui/tui.h, tui/tuiCommand.h, tui/tuiData.c, tui/tuiData.h,
|
||||
tui/tuiDataWin.h, tui/tuiDisassem.c, tui/tuiDisassem.h,
|
||||
tui/tuiGeneralWin.c, tui/tuiGeneralWin.h, tui/tuiIO.c,
|
||||
tui/tuiIO.h, tui/tuiLayout.c, tui/tuiLayout.h, tui/tuiRegs.c,
|
||||
tui/tuiRegs.h, tui/tuiSource.c, tui/tuiSource.h,
|
||||
tui/tuiSourceWin.h, tui/tuiStack.c, tui/tuiStack.h,
|
||||
tui/tuiWin.c, tui/tuiWin.h, typeprint.c, ui-file.c, ui-out.h,
|
||||
ultra3-nat.c, utils.c, v850-tdep.c, v850ice.c, valarith.c,
|
||||
valops.c, valprint.c, value.h, values.c, varobj.c, w89k-rom.c,
|
||||
win32-nat.c, wince.c, wrapper.c, wrapper.h, xcoffread.c,
|
||||
xcoffsolib.c, xmodem.h, z8k-tdep.c: Remove PARAMS from function
|
||||
declarations.
|
||||
|
||||
Thu May 25 16:56:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* configure.in (AC_CHECK_HEADERS): Check for ncurses.h.
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
/* Prototypes for local functions. */
|
||||
|
||||
static void abug_open PARAMS ((char *args, int from_tty));
|
||||
static void abug_open (char *args, int from_tty);
|
||||
|
||||
static void
|
||||
abug_supply_register (regname, regnamelen, val, vallen)
|
||||
|
@ -33,10 +33,8 @@
|
||||
|
||||
/* Prototypes for local functions. */
|
||||
|
||||
static void fetch_osf_core_registers PARAMS ((char *,
|
||||
unsigned, int, CORE_ADDR));
|
||||
static void fetch_elf_core_registers PARAMS ((char *,
|
||||
unsigned, int, CORE_ADDR));
|
||||
static void fetch_osf_core_registers (char *, unsigned, int, CORE_ADDR);
|
||||
static void fetch_elf_core_registers (char *, unsigned, int, CORE_ADDR);
|
||||
|
||||
/* Size of elements in jmpbuf */
|
||||
|
||||
|
@ -34,35 +34,34 @@
|
||||
|
||||
/* Prototypes for local functions. */
|
||||
|
||||
static alpha_extra_func_info_t push_sigtramp_desc PARAMS ((CORE_ADDR low_addr));
|
||||
static alpha_extra_func_info_t push_sigtramp_desc (CORE_ADDR low_addr);
|
||||
|
||||
static CORE_ADDR read_next_frame_reg PARAMS ((struct frame_info *, int));
|
||||
static CORE_ADDR read_next_frame_reg (struct frame_info *, int);
|
||||
|
||||
static CORE_ADDR heuristic_proc_start PARAMS ((CORE_ADDR));
|
||||
static CORE_ADDR heuristic_proc_start (CORE_ADDR);
|
||||
|
||||
static alpha_extra_func_info_t heuristic_proc_desc PARAMS ((CORE_ADDR,
|
||||
CORE_ADDR,
|
||||
struct frame_info *));
|
||||
static alpha_extra_func_info_t heuristic_proc_desc (CORE_ADDR,
|
||||
CORE_ADDR,
|
||||
struct frame_info *);
|
||||
|
||||
static alpha_extra_func_info_t find_proc_desc PARAMS ((CORE_ADDR,
|
||||
struct frame_info *));
|
||||
static alpha_extra_func_info_t find_proc_desc (CORE_ADDR,
|
||||
struct frame_info *);
|
||||
|
||||
#if 0
|
||||
static int alpha_in_lenient_prologue PARAMS ((CORE_ADDR, CORE_ADDR));
|
||||
static int alpha_in_lenient_prologue (CORE_ADDR, CORE_ADDR);
|
||||
#endif
|
||||
|
||||
static void reinit_frame_cache_sfunc PARAMS ((char *, int,
|
||||
struct cmd_list_element *));
|
||||
static void reinit_frame_cache_sfunc (char *, int, struct cmd_list_element *);
|
||||
|
||||
static CORE_ADDR after_prologue PARAMS ((CORE_ADDR pc,
|
||||
alpha_extra_func_info_t proc_desc));
|
||||
static CORE_ADDR after_prologue (CORE_ADDR pc,
|
||||
alpha_extra_func_info_t proc_desc);
|
||||
|
||||
static int alpha_in_prologue PARAMS ((CORE_ADDR pc,
|
||||
alpha_extra_func_info_t proc_desc));
|
||||
static int alpha_in_prologue (CORE_ADDR pc,
|
||||
alpha_extra_func_info_t proc_desc);
|
||||
|
||||
static int alpha_about_to_return PARAMS ((CORE_ADDR pc));
|
||||
static int alpha_about_to_return (CORE_ADDR pc);
|
||||
|
||||
void _initialize_alpha_tdep PARAMS ((void));
|
||||
void _initialize_alpha_tdep (void);
|
||||
|
||||
/* Heuristic_proc_start may hunt through the text section for a long
|
||||
time across a 2400 baud serial line. Allows the user to limit this
|
||||
@ -169,7 +168,7 @@ struct linked_proc_info
|
||||
#ifndef TM_LINUXALPHA_H
|
||||
/* HACK: Provide a prototype when compiling this file for non
|
||||
linuxalpha targets. */
|
||||
long alpha_linux_sigtramp_offset PARAMS ((CORE_ADDR pc));
|
||||
long alpha_linux_sigtramp_offset (CORE_ADDR pc);
|
||||
#endif
|
||||
long
|
||||
alpha_linux_sigtramp_offset (pc)
|
||||
|
@ -28,11 +28,11 @@
|
||||
|
||||
/* Prototypes for local functions. */
|
||||
|
||||
extern void _initialize_annotate PARAMS ((void));
|
||||
extern void _initialize_annotate (void);
|
||||
|
||||
static void print_value_flags PARAMS ((struct type *));
|
||||
static void print_value_flags (struct type *);
|
||||
|
||||
static void breakpoint_changed PARAMS ((struct breakpoint *));
|
||||
static void breakpoint_changed (struct breakpoint *);
|
||||
|
||||
void (*annotate_starting_hook) PARAMS ((void));
|
||||
void (*annotate_stopped_hook) PARAMS ((void));
|
||||
|
124
gdb/annotate.h
124
gdb/annotate.h
@ -21,82 +21,82 @@
|
||||
#include "symtab.h"
|
||||
#include "gdbtypes.h"
|
||||
|
||||
extern void breakpoints_changed PARAMS ((void));
|
||||
extern void breakpoints_changed (void);
|
||||
|
||||
extern void annotate_ignore_count_change (void);
|
||||
extern void annotate_breakpoint PARAMS ((int));
|
||||
extern void annotate_catchpoint PARAMS ((int));
|
||||
extern void annotate_watchpoint PARAMS ((int));
|
||||
extern void annotate_starting PARAMS ((void));
|
||||
extern void annotate_stopped PARAMS ((void));
|
||||
extern void annotate_exited PARAMS ((int));
|
||||
extern void annotate_signalled PARAMS ((void));
|
||||
extern void annotate_signal_name PARAMS ((void));
|
||||
extern void annotate_signal_name_end PARAMS ((void));
|
||||
extern void annotate_signal_string PARAMS ((void));
|
||||
extern void annotate_signal_string_end PARAMS ((void));
|
||||
extern void annotate_signal PARAMS ((void));
|
||||
extern void annotate_breakpoint (int);
|
||||
extern void annotate_catchpoint (int);
|
||||
extern void annotate_watchpoint (int);
|
||||
extern void annotate_starting (void);
|
||||
extern void annotate_stopped (void);
|
||||
extern void annotate_exited (int);
|
||||
extern void annotate_signalled (void);
|
||||
extern void annotate_signal_name (void);
|
||||
extern void annotate_signal_name_end (void);
|
||||
extern void annotate_signal_string (void);
|
||||
extern void annotate_signal_string_end (void);
|
||||
extern void annotate_signal (void);
|
||||
|
||||
extern void annotate_breakpoints_headers PARAMS ((void));
|
||||
extern void annotate_field PARAMS ((int));
|
||||
extern void annotate_breakpoints_table PARAMS ((void));
|
||||
extern void annotate_record PARAMS ((void));
|
||||
extern void annotate_breakpoints_table_end PARAMS ((void));
|
||||
extern void annotate_breakpoints_headers (void);
|
||||
extern void annotate_field (int);
|
||||
extern void annotate_breakpoints_table (void);
|
||||
extern void annotate_record (void);
|
||||
extern void annotate_breakpoints_table_end (void);
|
||||
|
||||
extern void annotate_frames_invalid PARAMS ((void));
|
||||
extern void annotate_frames_invalid (void);
|
||||
|
||||
struct type;
|
||||
|
||||
extern void annotate_field_begin PARAMS ((struct type *));
|
||||
extern void annotate_field_name_end PARAMS ((void));
|
||||
extern void annotate_field_value PARAMS ((void));
|
||||
extern void annotate_field_end PARAMS ((void));
|
||||
extern void annotate_field_begin (struct type *);
|
||||
extern void annotate_field_name_end (void);
|
||||
extern void annotate_field_value (void);
|
||||
extern void annotate_field_end (void);
|
||||
|
||||
extern void annotate_quit PARAMS ((void));
|
||||
extern void annotate_error PARAMS ((void));
|
||||
extern void annotate_error_begin PARAMS ((void));
|
||||
extern void annotate_quit (void);
|
||||
extern void annotate_error (void);
|
||||
extern void annotate_error_begin (void);
|
||||
|
||||
extern void annotate_value_history_begin PARAMS ((int, struct type *));
|
||||
extern void annotate_value_begin PARAMS ((struct type *));
|
||||
extern void annotate_value_history_value PARAMS ((void));
|
||||
extern void annotate_value_history_end PARAMS ((void));
|
||||
extern void annotate_value_end PARAMS ((void));
|
||||
extern void annotate_value_history_begin (int, struct type *);
|
||||
extern void annotate_value_begin (struct type *);
|
||||
extern void annotate_value_history_value (void);
|
||||
extern void annotate_value_history_end (void);
|
||||
extern void annotate_value_end (void);
|
||||
|
||||
extern void annotate_display_begin PARAMS ((void));
|
||||
extern void annotate_display_number_end PARAMS ((void));
|
||||
extern void annotate_display_format PARAMS ((void));
|
||||
extern void annotate_display_expression PARAMS ((void));
|
||||
extern void annotate_display_expression_end PARAMS ((void));
|
||||
extern void annotate_display_value PARAMS ((void));
|
||||
extern void annotate_display_end PARAMS ((void));
|
||||
extern void annotate_display_begin (void);
|
||||
extern void annotate_display_number_end (void);
|
||||
extern void annotate_display_format (void);
|
||||
extern void annotate_display_expression (void);
|
||||
extern void annotate_display_expression_end (void);
|
||||
extern void annotate_display_value (void);
|
||||
extern void annotate_display_end (void);
|
||||
|
||||
extern void annotate_arg_begin PARAMS ((void));
|
||||
extern void annotate_arg_name_end PARAMS ((void));
|
||||
extern void annotate_arg_value PARAMS ((struct type *));
|
||||
extern void annotate_arg_end PARAMS ((void));
|
||||
extern void annotate_arg_begin (void);
|
||||
extern void annotate_arg_name_end (void);
|
||||
extern void annotate_arg_value (struct type *);
|
||||
extern void annotate_arg_end (void);
|
||||
|
||||
extern void annotate_source PARAMS ((char *, int, int, int, CORE_ADDR));
|
||||
extern void annotate_source (char *, int, int, int, CORE_ADDR);
|
||||
|
||||
extern void annotate_frame_begin PARAMS ((int, CORE_ADDR));
|
||||
extern void annotate_function_call PARAMS ((void));
|
||||
extern void annotate_signal_handler_caller PARAMS ((void));
|
||||
extern void annotate_frame_address PARAMS ((void));
|
||||
extern void annotate_frame_address_end PARAMS ((void));
|
||||
extern void annotate_frame_function_name PARAMS ((void));
|
||||
extern void annotate_frame_args PARAMS ((void));
|
||||
extern void annotate_frame_source_begin PARAMS ((void));
|
||||
extern void annotate_frame_source_file PARAMS ((void));
|
||||
extern void annotate_frame_source_file_end PARAMS ((void));
|
||||
extern void annotate_frame_source_line PARAMS ((void));
|
||||
extern void annotate_frame_source_end PARAMS ((void));
|
||||
extern void annotate_frame_where PARAMS ((void));
|
||||
extern void annotate_frame_end PARAMS ((void));
|
||||
extern void annotate_frame_begin (int, CORE_ADDR);
|
||||
extern void annotate_function_call (void);
|
||||
extern void annotate_signal_handler_caller (void);
|
||||
extern void annotate_frame_address (void);
|
||||
extern void annotate_frame_address_end (void);
|
||||
extern void annotate_frame_function_name (void);
|
||||
extern void annotate_frame_args (void);
|
||||
extern void annotate_frame_source_begin (void);
|
||||
extern void annotate_frame_source_file (void);
|
||||
extern void annotate_frame_source_file_end (void);
|
||||
extern void annotate_frame_source_line (void);
|
||||
extern void annotate_frame_source_end (void);
|
||||
extern void annotate_frame_where (void);
|
||||
extern void annotate_frame_end (void);
|
||||
|
||||
extern void annotate_array_section_begin PARAMS ((int, struct type *));
|
||||
extern void annotate_elt_rep PARAMS ((unsigned int));
|
||||
extern void annotate_elt_rep_end PARAMS ((void));
|
||||
extern void annotate_elt PARAMS ((void));
|
||||
extern void annotate_array_section_end PARAMS ((void));
|
||||
extern void annotate_array_section_begin (int, struct type *);
|
||||
extern void annotate_elt_rep (unsigned int);
|
||||
extern void annotate_elt_rep_end (void);
|
||||
extern void annotate_elt (void);
|
||||
extern void annotate_array_section_end (void);
|
||||
|
||||
extern void (*annotate_starting_hook) PARAMS ((void));
|
||||
extern void (*annotate_stopped_hook) PARAMS ((void));
|
||||
|
@ -90,9 +90,9 @@ int debug_pipeline_p;
|
||||
| ((d) & 511))
|
||||
|
||||
/* Codestream stuff. */
|
||||
static void codestream_read PARAMS ((unsigned int *, int));
|
||||
static void codestream_seek PARAMS ((CORE_ADDR));
|
||||
static unsigned int codestream_fill PARAMS ((int));
|
||||
static void codestream_read (unsigned int *, int);
|
||||
static void codestream_seek (CORE_ADDR);
|
||||
static unsigned int codestream_fill (int);
|
||||
|
||||
#define CODESTREAM_BUFSIZ 16
|
||||
static CORE_ADDR codestream_next_addr;
|
||||
|
152
gdb/ax-gdb.c
152
gdb/ax-gdb.c
@ -56,101 +56,81 @@
|
||||
struct agent_expr * --- agent expression buffer to generate code into
|
||||
struct axs_value * --- describes value left on top of stack */
|
||||
|
||||
static struct value *const_var_ref PARAMS ((struct symbol * var));
|
||||
static struct value *const_expr PARAMS ((union exp_element ** pc));
|
||||
static struct value *maybe_const_expr PARAMS ((union exp_element ** pc));
|
||||
static struct value *const_var_ref (struct symbol *var);
|
||||
static struct value *const_expr (union exp_element **pc);
|
||||
static struct value *maybe_const_expr (union exp_element **pc);
|
||||
|
||||
static void gen_traced_pop PARAMS ((struct agent_expr *, struct axs_value *));
|
||||
static void gen_traced_pop (struct agent_expr *, struct axs_value *);
|
||||
|
||||
static void gen_sign_extend PARAMS ((struct agent_expr *, struct type *));
|
||||
static void gen_extend PARAMS ((struct agent_expr *, struct type *));
|
||||
static void gen_fetch PARAMS ((struct agent_expr *, struct type *));
|
||||
static void gen_left_shift PARAMS ((struct agent_expr *, int));
|
||||
static void gen_sign_extend (struct agent_expr *, struct type *);
|
||||
static void gen_extend (struct agent_expr *, struct type *);
|
||||
static void gen_fetch (struct agent_expr *, struct type *);
|
||||
static void gen_left_shift (struct agent_expr *, int);
|
||||
|
||||
|
||||
static void gen_frame_args_address PARAMS ((struct agent_expr *));
|
||||
static void gen_frame_locals_address PARAMS ((struct agent_expr *));
|
||||
static void gen_offset PARAMS ((struct agent_expr * ax, int offset));
|
||||
static void gen_sym_offset PARAMS ((struct agent_expr *, struct symbol *));
|
||||
static void gen_var_ref PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
struct symbol * var));
|
||||
static void gen_frame_args_address (struct agent_expr *);
|
||||
static void gen_frame_locals_address (struct agent_expr *);
|
||||
static void gen_offset (struct agent_expr *ax, int offset);
|
||||
static void gen_sym_offset (struct agent_expr *, struct symbol *);
|
||||
static void gen_var_ref (struct agent_expr *ax,
|
||||
struct axs_value *value, struct symbol *var);
|
||||
|
||||
|
||||
static void gen_int_literal PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
LONGEST k, struct type * type));
|
||||
static void gen_int_literal (struct agent_expr *ax,
|
||||
struct axs_value *value,
|
||||
LONGEST k, struct type *type);
|
||||
|
||||
|
||||
static void require_rvalue PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static void gen_usual_unary PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static int type_wider_than PARAMS ((struct type * type1,
|
||||
struct type * type2));
|
||||
static struct type *max_type PARAMS ((struct type * type1,
|
||||
struct type * type2));
|
||||
static void gen_conversion PARAMS ((struct agent_expr * ax,
|
||||
struct type * from,
|
||||
struct type * to));
|
||||
static int is_nontrivial_conversion PARAMS ((struct type * from,
|
||||
struct type * to));
|
||||
static void gen_usual_arithmetic PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value1,
|
||||
struct axs_value * value2));
|
||||
static void gen_integral_promotions PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static void gen_cast PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
struct type * type));
|
||||
static void gen_scale PARAMS ((struct agent_expr * ax,
|
||||
enum agent_op op,
|
||||
struct type * type));
|
||||
static void gen_add PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
struct axs_value * value1,
|
||||
struct axs_value * value2,
|
||||
char *name));
|
||||
static void gen_sub PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
struct axs_value * value1,
|
||||
struct axs_value * value2));
|
||||
static void gen_binop PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
struct axs_value * value1,
|
||||
struct axs_value * value2,
|
||||
enum agent_op op,
|
||||
enum agent_op op_unsigned,
|
||||
int may_carry,
|
||||
char *name));
|
||||
static void gen_logical_not PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static void gen_complement PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static void gen_deref PARAMS ((struct agent_expr *, struct axs_value *));
|
||||
static void gen_address_of PARAMS ((struct agent_expr *, struct axs_value *));
|
||||
static int find_field PARAMS ((struct type * type, char *name));
|
||||
static void gen_bitfield_ref PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
struct type * type,
|
||||
int start, int end));
|
||||
static void gen_struct_ref PARAMS ((struct agent_expr * ax,
|
||||
struct axs_value * value,
|
||||
char *field,
|
||||
char *operator_name,
|
||||
char *operand_name));
|
||||
static void gen_repeat PARAMS ((union exp_element ** pc,
|
||||
struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static void gen_sizeof PARAMS ((union exp_element ** pc,
|
||||
struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static void gen_expr PARAMS ((union exp_element ** pc,
|
||||
struct agent_expr * ax,
|
||||
struct axs_value * value));
|
||||
static void require_rvalue (struct agent_expr *ax, struct axs_value *value);
|
||||
static void gen_usual_unary (struct agent_expr *ax, struct axs_value *value);
|
||||
static int type_wider_than (struct type *type1, struct type *type2);
|
||||
static struct type *max_type (struct type *type1, struct type *type2);
|
||||
static void gen_conversion (struct agent_expr *ax,
|
||||
struct type *from, struct type *to);
|
||||
static int is_nontrivial_conversion (struct type *from, struct type *to);
|
||||
static void gen_usual_arithmetic (struct agent_expr *ax,
|
||||
struct axs_value *value1,
|
||||
struct axs_value *value2);
|
||||
static void gen_integral_promotions (struct agent_expr *ax,
|
||||
struct axs_value *value);
|
||||
static void gen_cast (struct agent_expr *ax,
|
||||
struct axs_value *value, struct type *type);
|
||||
static void gen_scale (struct agent_expr *ax,
|
||||
enum agent_op op, struct type *type);
|
||||
static void gen_add (struct agent_expr *ax,
|
||||
struct axs_value *value,
|
||||
struct axs_value *value1,
|
||||
struct axs_value *value2, char *name);
|
||||
static void gen_sub (struct agent_expr *ax,
|
||||
struct axs_value *value,
|
||||
struct axs_value *value1, struct axs_value *value2);
|
||||
static void gen_binop (struct agent_expr *ax,
|
||||
struct axs_value *value,
|
||||
struct axs_value *value1,
|
||||
struct axs_value *value2,
|
||||
enum agent_op op,
|
||||
enum agent_op op_unsigned, int may_carry, char *name);
|
||||
static void gen_logical_not (struct agent_expr *ax, struct axs_value *value);
|
||||
static void gen_complement (struct agent_expr *ax, struct axs_value *value);
|
||||
static void gen_deref (struct agent_expr *, struct axs_value *);
|
||||
static void gen_address_of (struct agent_expr *, struct axs_value *);
|
||||
static int find_field (struct type *type, char *name);
|
||||
static void gen_bitfield_ref (struct agent_expr *ax,
|
||||
struct axs_value *value,
|
||||
struct type *type, int start, int end);
|
||||
static void gen_struct_ref (struct agent_expr *ax,
|
||||
struct axs_value *value,
|
||||
char *field,
|
||||
char *operator_name, char *operand_name);
|
||||
static void gen_repeat (union exp_element **pc,
|
||||
struct agent_expr *ax, struct axs_value *value);
|
||||
static void gen_sizeof (union exp_element **pc,
|
||||
struct agent_expr *ax, struct axs_value *value);
|
||||
static void gen_expr (union exp_element **pc,
|
||||
struct agent_expr *ax, struct axs_value *value);
|
||||
|
||||
static void print_axs_value (struct ui_file *f, struct axs_value * value);
|
||||
static void agent_command PARAMS ((char *exp, int from_tty));
|
||||
static void agent_command (char *exp, int from_tty);
|
||||
|
||||
|
||||
/* Detecting constant expressions. */
|
||||
@ -1938,7 +1918,7 @@ agent_command (exp, from_tty)
|
||||
|
||||
/* Initialization code. */
|
||||
|
||||
void _initialize_ax_gdb PARAMS ((void));
|
||||
void _initialize_ax_gdb (void);
|
||||
void
|
||||
_initialize_ax_gdb ()
|
||||
{
|
||||
|
10
gdb/ax-gdb.h
10
gdb/ax-gdb.h
@ -94,21 +94,19 @@ struct axs_value
|
||||
|
||||
/* Given a GDB expression EXPR, translate it into the agent bytecode,
|
||||
and return it. FLAGS are from enum expr_to_agent_flags. */
|
||||
extern struct agent_expr *expr_to_agent PARAMS ((struct expression * EXPR,
|
||||
struct axs_value * VALUE));
|
||||
extern struct agent_expr *expr_to_agent (struct expression *EXPR,
|
||||
struct axs_value *VALUE);
|
||||
|
||||
/* Given a GDB expression EXPR denoting an lvalue in memory, produce a
|
||||
string of agent bytecode which will leave its address and size on
|
||||
the top of stack. Return the agent expression. */
|
||||
extern struct agent_expr *expr_to_address_and_size
|
||||
PARAMS ((struct expression * EXPR));
|
||||
extern struct agent_expr *expr_to_address_and_size (struct expression *EXPR);
|
||||
|
||||
/* Given a GDB expression EXPR, return bytecode to trace its value.
|
||||
The result will use the `trace' and `trace_quick' bytecodes to
|
||||
record the value of all memory touched by the expression, and leave
|
||||
no values on the stack. The caller can then use the ax_reqs
|
||||
function to discover which registers the expression uses. */
|
||||
extern struct agent_expr *gen_trace_for_expr PARAMS ((CORE_ADDR,
|
||||
struct expression *));
|
||||
extern struct agent_expr *gen_trace_for_expr (CORE_ADDR, struct expression *);
|
||||
|
||||
#endif /* AX_GDB_H */
|
||||
|
@ -28,13 +28,13 @@
|
||||
|
||||
#include "value.h"
|
||||
|
||||
static void grow_expr PARAMS ((struct agent_expr * x, int n));
|
||||
static void grow_expr (struct agent_expr *x, int n);
|
||||
|
||||
static void append_const PARAMS ((struct agent_expr * x, LONGEST val, int n));
|
||||
static void append_const (struct agent_expr *x, LONGEST val, int n);
|
||||
|
||||
static LONGEST read_const PARAMS ((struct agent_expr * x, int o, int n));
|
||||
static LONGEST read_const (struct agent_expr *x, int o, int n);
|
||||
|
||||
static void generic_ext PARAMS ((struct agent_expr * x, enum agent_op op, int n));
|
||||
static void generic_ext (struct agent_expr *x, enum agent_op op, int n);
|
||||
|
||||
/* Functions for building expressions. */
|
||||
|
||||
|
25
gdb/ax.h
25
gdb/ax.h
@ -139,26 +139,26 @@ enum agent_op
|
||||
/* Functions for building expressions. */
|
||||
|
||||
/* Allocate a new, empty agent expression. */
|
||||
extern struct agent_expr *new_agent_expr PARAMS ((CORE_ADDR));
|
||||
extern struct agent_expr *new_agent_expr (CORE_ADDR);
|
||||
|
||||
/* Free a agent expression. */
|
||||
extern void free_agent_expr PARAMS ((struct agent_expr *));
|
||||
extern void free_agent_expr (struct agent_expr *);
|
||||
extern struct cleanup *make_cleanup_free_agent_expr (struct agent_expr *);
|
||||
|
||||
/* Append a simple operator OP to EXPR. */
|
||||
extern void ax_simple PARAMS ((struct agent_expr * EXPR, enum agent_op OP));
|
||||
extern void ax_simple (struct agent_expr *EXPR, enum agent_op OP);
|
||||
|
||||
/* Append the floating-point prefix, for the next bytecode. */
|
||||
#define ax_float(EXPR) (ax_simple ((EXPR), aop_float))
|
||||
|
||||
/* Append a sign-extension instruction to EXPR, to extend an N-bit value. */
|
||||
extern void ax_ext PARAMS ((struct agent_expr * EXPR, int N));
|
||||
extern void ax_ext (struct agent_expr *EXPR, int N);
|
||||
|
||||
/* Append a zero-extension instruction to EXPR, to extend an N-bit value. */
|
||||
extern void ax_zero_ext PARAMS ((struct agent_expr * EXPR, int N));
|
||||
extern void ax_zero_ext (struct agent_expr *EXPR, int N);
|
||||
|
||||
/* Append a trace_quick instruction to EXPR, to record N bytes. */
|
||||
extern void ax_trace_quick PARAMS ((struct agent_expr * EXPR, int N));
|
||||
extern void ax_trace_quick (struct agent_expr *EXPR, int N);
|
||||
|
||||
/* Append a goto op to EXPR. OP is the actual op (must be aop_goto or
|
||||
aop_if_goto). We assume we don't know the target offset yet,
|
||||
@ -166,21 +166,21 @@ extern void ax_trace_quick PARAMS ((struct agent_expr * EXPR, int N));
|
||||
for the target, and return the offset in EXPR of that space, so we
|
||||
can backpatch it once we do know the target offset. Use ax_label
|
||||
to do the backpatching. */
|
||||
extern int ax_goto PARAMS ((struct agent_expr * EXPR, enum agent_op OP));
|
||||
extern int ax_goto (struct agent_expr *EXPR, enum agent_op OP);
|
||||
|
||||
/* Suppose a given call to ax_goto returns some value PATCH. When you
|
||||
know the offset TARGET that goto should jump to, call
|
||||
ax_label (EXPR, PATCH, TARGET)
|
||||
to patch TARGET into the ax_goto instruction. */
|
||||
extern void ax_label PARAMS ((struct agent_expr * EXPR, int patch, int target));
|
||||
extern void ax_label (struct agent_expr *EXPR, int patch, int target);
|
||||
|
||||
/* Assemble code to push a constant on the stack. */
|
||||
extern void ax_const_l PARAMS ((struct agent_expr * EXPR, LONGEST l));
|
||||
extern void ax_const_d PARAMS ((struct agent_expr * EXPR, LONGEST d));
|
||||
extern void ax_const_l (struct agent_expr *EXPR, LONGEST l);
|
||||
extern void ax_const_d (struct agent_expr *EXPR, LONGEST d);
|
||||
|
||||
/* Assemble code to push the value of register number REG on the
|
||||
stack. */
|
||||
extern void ax_reg PARAMS ((struct agent_expr * EXPR, int REG));
|
||||
extern void ax_reg (struct agent_expr *EXPR, int REG);
|
||||
|
||||
|
||||
/* Functions for printing out expressions, and otherwise debugging
|
||||
@ -285,7 +285,6 @@ struct agent_reqs
|
||||
|
||||
/* Given an agent expression AX, fill in an agent_reqs structure REQS
|
||||
describing it. */
|
||||
extern void ax_reqs PARAMS ((struct agent_expr * ax,
|
||||
struct agent_reqs * reqs));
|
||||
extern void ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs);
|
||||
|
||||
#endif /* AGENTEXPR_H */
|
||||
|
200
gdb/breakpoint.c
200
gdb/breakpoint.c
@ -49,105 +49,75 @@
|
||||
|
||||
static void until_break_command_continuation (struct continuation_arg *arg);
|
||||
|
||||
static void
|
||||
catch_command_1 PARAMS ((char *, int, int));
|
||||
static void catch_command_1 (char *, int, int);
|
||||
|
||||
static void
|
||||
enable_delete_command PARAMS ((char *, int));
|
||||
static void enable_delete_command (char *, int);
|
||||
|
||||
static void
|
||||
enable_delete_breakpoint PARAMS ((struct breakpoint *));
|
||||
static void enable_delete_breakpoint (struct breakpoint *);
|
||||
|
||||
static void
|
||||
enable_once_command PARAMS ((char *, int));
|
||||
static void enable_once_command (char *, int);
|
||||
|
||||
static void
|
||||
enable_once_breakpoint PARAMS ((struct breakpoint *));
|
||||
static void enable_once_breakpoint (struct breakpoint *);
|
||||
|
||||
static void
|
||||
disable_command PARAMS ((char *, int));
|
||||
static void disable_command (char *, int);
|
||||
|
||||
static void
|
||||
enable_command PARAMS ((char *, int));
|
||||
static void enable_command (char *, int);
|
||||
|
||||
static void
|
||||
map_breakpoint_numbers PARAMS ((char *, void (*)(struct breakpoint *)));
|
||||
static void map_breakpoint_numbers (char *, void (*)(struct breakpoint *));
|
||||
|
||||
static void
|
||||
ignore_command PARAMS ((char *, int));
|
||||
static void ignore_command (char *, int);
|
||||
|
||||
static int breakpoint_re_set_one PARAMS ((PTR));
|
||||
static int breakpoint_re_set_one (PTR);
|
||||
|
||||
static void
|
||||
clear_command PARAMS ((char *, int));
|
||||
static void clear_command (char *, int);
|
||||
|
||||
static void
|
||||
catch_command PARAMS ((char *, int));
|
||||
static void catch_command (char *, int);
|
||||
|
||||
static void
|
||||
handle_gnu_4_16_catch_command PARAMS ((char *, int, int));
|
||||
static void handle_gnu_4_16_catch_command (char *, int, int);
|
||||
|
||||
static struct symtabs_and_lines
|
||||
get_catch_sals PARAMS ((int));
|
||||
static struct symtabs_and_lines get_catch_sals (int);
|
||||
|
||||
static void
|
||||
watch_command PARAMS ((char *, int));
|
||||
static void watch_command (char *, int);
|
||||
|
||||
static int
|
||||
can_use_hardware_watchpoint PARAMS ((struct value *));
|
||||
static int can_use_hardware_watchpoint (struct value *);
|
||||
|
||||
static void break_at_finish_command PARAMS ((char *, int));
|
||||
static void break_at_finish_at_depth_command PARAMS ((char *, int));
|
||||
static void break_at_finish_command (char *, int);
|
||||
static void break_at_finish_at_depth_command (char *, int);
|
||||
|
||||
void
|
||||
tbreak_command PARAMS ((char *, int));
|
||||
void tbreak_command (char *, int);
|
||||
|
||||
static void tbreak_at_finish_command PARAMS ((char *, int));
|
||||
static void tbreak_at_finish_command (char *, int);
|
||||
|
||||
static void
|
||||
break_command_1 PARAMS ((char *, int, int));
|
||||
static void break_command_1 (char *, int, int);
|
||||
|
||||
static void
|
||||
mention PARAMS ((struct breakpoint *));
|
||||
static void mention (struct breakpoint *);
|
||||
|
||||
struct breakpoint *
|
||||
set_raw_breakpoint PARAMS ((struct symtab_and_line));
|
||||
struct breakpoint *set_raw_breakpoint (struct symtab_and_line);
|
||||
|
||||
static void
|
||||
check_duplicates PARAMS ((CORE_ADDR, asection *));
|
||||
static void check_duplicates (CORE_ADDR, asection *);
|
||||
|
||||
static void
|
||||
describe_other_breakpoints PARAMS ((CORE_ADDR, asection *));
|
||||
static void describe_other_breakpoints (CORE_ADDR, asection *);
|
||||
|
||||
static void
|
||||
breakpoints_info PARAMS ((char *, int));
|
||||
static void breakpoints_info (char *, int);
|
||||
|
||||
static void
|
||||
breakpoint_1 PARAMS ((int, int));
|
||||
static void breakpoint_1 (int, int);
|
||||
|
||||
static bpstat
|
||||
bpstat_alloc PARAMS ((struct breakpoint *, bpstat));
|
||||
static bpstat bpstat_alloc (struct breakpoint *, bpstat);
|
||||
|
||||
static int breakpoint_cond_eval PARAMS ((PTR));
|
||||
static int breakpoint_cond_eval (PTR);
|
||||
|
||||
static void
|
||||
cleanup_executing_breakpoints PARAMS ((PTR));
|
||||
static void cleanup_executing_breakpoints (PTR);
|
||||
|
||||
static void
|
||||
commands_command PARAMS ((char *, int));
|
||||
static void commands_command (char *, int);
|
||||
|
||||
static void
|
||||
condition_command PARAMS ((char *, int));
|
||||
static void condition_command (char *, int);
|
||||
|
||||
static int
|
||||
get_number_trailer PARAMS ((char **, int));
|
||||
static int get_number_trailer (char **, int);
|
||||
|
||||
void
|
||||
set_breakpoint_count PARAMS ((int));
|
||||
void set_breakpoint_count (int);
|
||||
|
||||
#if 0
|
||||
static struct breakpoint *
|
||||
create_temp_exception_breakpoint PARAMS ((CORE_ADDR));
|
||||
static struct breakpoint *create_temp_exception_breakpoint (CORE_ADDR);
|
||||
#endif
|
||||
|
||||
typedef enum
|
||||
@ -157,10 +127,9 @@ typedef enum
|
||||
}
|
||||
insertion_state_t;
|
||||
|
||||
static int
|
||||
remove_breakpoint PARAMS ((struct breakpoint *, insertion_state_t));
|
||||
static int remove_breakpoint (struct breakpoint *, insertion_state_t);
|
||||
|
||||
static enum print_stop_action print_it_typical PARAMS ((bpstat));
|
||||
static enum print_stop_action print_it_typical (bpstat);
|
||||
|
||||
static enum print_stop_action print_bp_stop_message (bpstat bs);
|
||||
|
||||
@ -171,95 +140,86 @@ typedef struct
|
||||
}
|
||||
args_for_catchpoint_enable;
|
||||
|
||||
static int watchpoint_check PARAMS ((PTR));
|
||||
static int watchpoint_check (PTR);
|
||||
|
||||
static int cover_target_enable_exception_callback PARAMS ((PTR));
|
||||
static int cover_target_enable_exception_callback (PTR);
|
||||
|
||||
static void maintenance_info_breakpoints PARAMS ((char *, int));
|
||||
static void maintenance_info_breakpoints (char *, int);
|
||||
|
||||
#ifdef GET_LONGJMP_TARGET
|
||||
static void create_longjmp_breakpoint PARAMS ((char *));
|
||||
static void create_longjmp_breakpoint (char *);
|
||||
#endif
|
||||
|
||||
static int hw_breakpoint_used_count PARAMS ((void));
|
||||
static int hw_breakpoint_used_count (void);
|
||||
|
||||
static int hw_watchpoint_used_count PARAMS ((enum bptype, int *));
|
||||
static int hw_watchpoint_used_count (enum bptype, int *);
|
||||
|
||||
static void hbreak_command PARAMS ((char *, int));
|
||||
static void hbreak_command (char *, int);
|
||||
|
||||
static void thbreak_command PARAMS ((char *, int));
|
||||
static void thbreak_command (char *, int);
|
||||
|
||||
static void watch_command_1 PARAMS ((char *, int, int));
|
||||
static void watch_command_1 (char *, int, int);
|
||||
|
||||
static void rwatch_command PARAMS ((char *, int));
|
||||
static void rwatch_command (char *, int);
|
||||
|
||||
static void awatch_command PARAMS ((char *, int));
|
||||
static void awatch_command (char *, int);
|
||||
|
||||
static void do_enable_breakpoint PARAMS ((struct breakpoint *, enum bpdisp));
|
||||
static void do_enable_breakpoint (struct breakpoint *, enum bpdisp);
|
||||
|
||||
static void solib_load_unload_1 PARAMS ((char *hookname,
|
||||
int tempflag,
|
||||
char *dll_pathname,
|
||||
char *cond_string,
|
||||
enum bptype bp_kind));
|
||||
static void solib_load_unload_1 (char *hookname,
|
||||
int tempflag,
|
||||
char *dll_pathname,
|
||||
char *cond_string, enum bptype bp_kind);
|
||||
|
||||
static void create_fork_vfork_event_catchpoint PARAMS ((int tempflag,
|
||||
char *cond_string,
|
||||
enum bptype bp_kind));
|
||||
static void create_fork_vfork_event_catchpoint (int tempflag,
|
||||
char *cond_string,
|
||||
enum bptype bp_kind);
|
||||
|
||||
static void break_at_finish_at_depth_command_1 PARAMS ((char *arg,
|
||||
int flag,
|
||||
int from_tty));
|
||||
static void break_at_finish_at_depth_command_1 (char *arg,
|
||||
int flag, int from_tty);
|
||||
|
||||
static void break_at_finish_command_1 PARAMS ((char *arg,
|
||||
int flag,
|
||||
int from_tty));
|
||||
static void break_at_finish_command_1 (char *arg, int flag, int from_tty);
|
||||
|
||||
static void stop_command PARAMS ((char *arg, int from_tty));
|
||||
static void stop_command (char *arg, int from_tty);
|
||||
|
||||
static void stopin_command PARAMS ((char *arg, int from_tty));
|
||||
static void stopin_command (char *arg, int from_tty);
|
||||
|
||||
static void stopat_command PARAMS ((char *arg, int from_tty));
|
||||
static void stopat_command (char *arg, int from_tty);
|
||||
|
||||
static char *ep_find_event_name_end PARAMS ((char *arg));
|
||||
static char *ep_find_event_name_end (char *arg);
|
||||
|
||||
static char *ep_parse_optional_if_clause PARAMS ((char **arg));
|
||||
static char *ep_parse_optional_if_clause (char **arg);
|
||||
|
||||
static char *ep_parse_optional_filename PARAMS ((char **arg));
|
||||
static char *ep_parse_optional_filename (char **arg);
|
||||
|
||||
#if defined(CHILD_INSERT_EXEC_CATCHPOINT)
|
||||
static void catch_exec_command_1 PARAMS ((char *arg, int tempflag,
|
||||
int from_tty));
|
||||
static void catch_exec_command_1 (char *arg, int tempflag, int from_tty);
|
||||
#endif
|
||||
|
||||
static void create_exception_catchpoint
|
||||
PARAMS ((int tempflag, char *cond_string,
|
||||
enum exception_event_kind ex_event,
|
||||
struct symtab_and_line * sal));
|
||||
static void create_exception_catchpoint
|
||||
(int tempflag, char *cond_string,
|
||||
enum exception_event_kind ex_event, struct symtab_and_line *sal);
|
||||
|
||||
static void catch_exception_command_1
|
||||
PARAMS ((enum exception_event_kind ex_event,
|
||||
char *arg, int tempflag, int from_tty));
|
||||
static void catch_exception_command_1
|
||||
(enum exception_event_kind ex_event, char *arg, int tempflag, int from_tty);
|
||||
|
||||
static void tcatch_command PARAMS ((char *arg, int from_tty));
|
||||
static void tcatch_command (char *arg, int from_tty);
|
||||
|
||||
static void ep_skip_leading_whitespace PARAMS ((char **s));
|
||||
static void ep_skip_leading_whitespace (char **s);
|
||||
|
||||
/* Prototypes for exported functions. */
|
||||
|
||||
static void
|
||||
awatch_command PARAMS ((char *, int));
|
||||
static void awatch_command (char *, int);
|
||||
|
||||
static void
|
||||
do_enable_breakpoint PARAMS ((struct breakpoint *, enum bpdisp));
|
||||
static void do_enable_breakpoint (struct breakpoint *, enum bpdisp);
|
||||
|
||||
/* If FALSE, gdb will not use hardware support for watchpoints, even
|
||||
if such is available. */
|
||||
static int can_use_hw_watchpoints;
|
||||
|
||||
void _initialize_breakpoint PARAMS ((void));
|
||||
void _initialize_breakpoint (void);
|
||||
|
||||
void set_breakpoint_count PARAMS ((int));
|
||||
void set_breakpoint_count (int);
|
||||
|
||||
extern int addressprint; /* Print machine addresses? */
|
||||
|
||||
@ -6129,10 +6089,8 @@ typedef enum
|
||||
catch_fork_kind;
|
||||
|
||||
#if defined(CHILD_INSERT_FORK_CATCHPOINT) || defined(CHILD_INSERT_VFORK_CATCHPOINT)
|
||||
static void catch_fork_command_1 PARAMS ((catch_fork_kind fork_kind,
|
||||
char *arg,
|
||||
int tempflag,
|
||||
int from_tty));
|
||||
static void catch_fork_command_1 (catch_fork_kind fork_kind,
|
||||
char *arg, int tempflag, int from_tty);
|
||||
|
||||
static void
|
||||
catch_fork_command_1 (fork_kind, arg, tempflag, from_tty)
|
||||
|
150
gdb/breakpoint.h
150
gdb/breakpoint.h
@ -306,13 +306,13 @@ typedef struct bpstats *bpstat;
|
||||
/* Interface: */
|
||||
/* Clear a bpstat so that it says we are not at any breakpoint.
|
||||
Also free any storage that is part of a bpstat. */
|
||||
extern void bpstat_clear PARAMS ((bpstat *));
|
||||
extern void bpstat_clear (bpstat *);
|
||||
|
||||
/* Return a copy of a bpstat. Like "bs1 = bs2" but all storage that
|
||||
is part of the bpstat is copied as well. */
|
||||
extern bpstat bpstat_copy PARAMS ((bpstat));
|
||||
extern bpstat bpstat_copy (bpstat);
|
||||
|
||||
extern bpstat bpstat_stop_status PARAMS ((CORE_ADDR *, int));
|
||||
extern bpstat bpstat_stop_status (CORE_ADDR *, int);
|
||||
|
||||
/* This bpstat_what stuff tells wait_for_inferior what to do with a
|
||||
breakpoint (a challenging task). */
|
||||
@ -396,10 +396,10 @@ enum print_stop_action
|
||||
};
|
||||
|
||||
/* Tell what to do about this bpstat. */
|
||||
struct bpstat_what bpstat_what PARAMS ((bpstat));
|
||||
struct bpstat_what bpstat_what (bpstat);
|
||||
|
||||
/* Find the bpstat associated with a breakpoint. NULL otherwise. */
|
||||
bpstat bpstat_find_breakpoint PARAMS ((bpstat, struct breakpoint *));
|
||||
bpstat bpstat_find_breakpoint (bpstat, struct breakpoint *);
|
||||
|
||||
/* Find a step_resume breakpoint associated with this bpstat.
|
||||
(If there are multiple step_resume bp's on the list, this function
|
||||
@ -410,8 +410,7 @@ bpstat bpstat_find_breakpoint PARAMS ((bpstat, struct breakpoint *));
|
||||
|
||||
See wait_for_inferior's use of this function.
|
||||
*/
|
||||
extern struct breakpoint *
|
||||
bpstat_find_step_resume_breakpoint PARAMS ((bpstat));
|
||||
extern struct breakpoint *bpstat_find_step_resume_breakpoint (bpstat);
|
||||
|
||||
/* Nonzero if a signal that we got in wait() was due to circumstances
|
||||
explained by the BS. */
|
||||
@ -422,36 +421,36 @@ extern struct breakpoint *
|
||||
/* Nonzero if we should step constantly (e.g. watchpoints on machines
|
||||
without hardware support). This isn't related to a specific bpstat,
|
||||
just to things like whether watchpoints are set. */
|
||||
extern int bpstat_should_step PARAMS ((void));
|
||||
extern int bpstat_should_step (void);
|
||||
|
||||
/* Nonzero if there are enabled hardware watchpoints. */
|
||||
extern int bpstat_have_active_hw_watchpoints PARAMS ((void));
|
||||
extern int bpstat_have_active_hw_watchpoints (void);
|
||||
|
||||
/* Print a message indicating what happened. Returns nonzero to
|
||||
say that only the source line should be printed after this (zero
|
||||
return means print the frame as well as the source line). */
|
||||
extern enum print_stop_action bpstat_print PARAMS ((bpstat));
|
||||
extern enum print_stop_action bpstat_print (bpstat);
|
||||
|
||||
/* Return the breakpoint number of the first breakpoint we are stopped
|
||||
at. *BSP upon return is a bpstat which points to the remaining
|
||||
breakpoints stopped at (but which is not guaranteed to be good for
|
||||
anything but further calls to bpstat_num).
|
||||
Return 0 if passed a bpstat which does not indicate any breakpoints. */
|
||||
extern int bpstat_num PARAMS ((bpstat *));
|
||||
extern int bpstat_num (bpstat *);
|
||||
|
||||
/* Perform actions associated with having stopped at *BSP. Actually, we just
|
||||
use this for breakpoint commands. Perhaps other actions will go here
|
||||
later, but this is executed at a late time (from the command loop). */
|
||||
extern void bpstat_do_actions PARAMS ((bpstat *));
|
||||
extern void bpstat_do_actions (bpstat *);
|
||||
|
||||
/* Modify BS so that the actions will not be performed. */
|
||||
extern void bpstat_clear_actions PARAMS ((bpstat));
|
||||
extern void bpstat_clear_actions (bpstat);
|
||||
|
||||
/* Given a bpstat that records zero or more triggered eventpoints, this
|
||||
function returns another bpstat which contains only the catchpoints
|
||||
on that first list, if any.
|
||||
*/
|
||||
extern void bpstat_get_triggered_catchpoints PARAMS ((bpstat, bpstat *));
|
||||
extern void bpstat_get_triggered_catchpoints (bpstat, bpstat *);
|
||||
|
||||
/* Implementation: */
|
||||
|
||||
@ -515,64 +514,63 @@ enum breakpoint_here
|
||||
/* Forward declarations for prototypes */
|
||||
struct frame_info;
|
||||
|
||||
extern enum breakpoint_here breakpoint_here_p PARAMS ((CORE_ADDR));
|
||||
extern enum breakpoint_here breakpoint_here_p (CORE_ADDR);
|
||||
|
||||
extern int breakpoint_inserted_here_p PARAMS ((CORE_ADDR));
|
||||
extern int breakpoint_inserted_here_p (CORE_ADDR);
|
||||
|
||||
extern int frame_in_dummy PARAMS ((struct frame_info *));
|
||||
extern int frame_in_dummy (struct frame_info *);
|
||||
|
||||
extern int breakpoint_thread_match PARAMS ((CORE_ADDR, int));
|
||||
extern int breakpoint_thread_match (CORE_ADDR, int);
|
||||
|
||||
extern void until_break_command PARAMS ((char *, int));
|
||||
extern void until_break_command (char *, int);
|
||||
|
||||
extern void breakpoint_re_set PARAMS ((void));
|
||||
extern void breakpoint_re_set (void);
|
||||
|
||||
extern void breakpoint_re_set_thread PARAMS ((struct breakpoint *));
|
||||
extern void breakpoint_re_set_thread (struct breakpoint *);
|
||||
|
||||
extern int ep_is_exception_catchpoint PARAMS ((struct breakpoint *));
|
||||
extern int ep_is_exception_catchpoint (struct breakpoint *);
|
||||
|
||||
extern struct breakpoint *set_momentary_breakpoint
|
||||
PARAMS ((struct symtab_and_line, struct frame_info *, enum bptype));
|
||||
(struct symtab_and_line, struct frame_info *, enum bptype);
|
||||
|
||||
extern void set_ignore_count PARAMS ((int, int, int));
|
||||
extern void set_ignore_count (int, int, int);
|
||||
|
||||
extern void set_default_breakpoint PARAMS ((int, CORE_ADDR,
|
||||
struct symtab *, int));
|
||||
extern void set_default_breakpoint (int, CORE_ADDR, struct symtab *, int);
|
||||
|
||||
extern void mark_breakpoints_out PARAMS ((void));
|
||||
extern void mark_breakpoints_out (void);
|
||||
|
||||
extern void breakpoint_init_inferior PARAMS ((enum inf_context));
|
||||
extern void breakpoint_init_inferior (enum inf_context);
|
||||
|
||||
extern struct cleanup *make_cleanup_delete_breakpoint (struct breakpoint *);
|
||||
|
||||
extern struct cleanup *make_exec_cleanup_delete_breakpoint (struct breakpoint *);
|
||||
|
||||
extern void delete_breakpoint PARAMS ((struct breakpoint *));
|
||||
extern void delete_breakpoint (struct breakpoint *);
|
||||
|
||||
extern void breakpoint_auto_delete PARAMS ((bpstat));
|
||||
extern void breakpoint_auto_delete (bpstat);
|
||||
|
||||
extern void breakpoint_clear_ignore_counts PARAMS ((void));
|
||||
extern void breakpoint_clear_ignore_counts (void);
|
||||
|
||||
extern void break_command PARAMS ((char *, int));
|
||||
extern void break_command (char *, int);
|
||||
|
||||
extern void hbreak_command_wrapper PARAMS ((char *, int));
|
||||
extern void thbreak_command_wrapper PARAMS ((char *, int));
|
||||
extern void rbreak_command_wrapper PARAMS ((char *, int));
|
||||
extern void watch_command_wrapper PARAMS ((char *, int));
|
||||
extern void awatch_command_wrapper PARAMS ((char *, int));
|
||||
extern void rwatch_command_wrapper PARAMS ((char *, int));
|
||||
extern void tbreak_command PARAMS ((char *, int));
|
||||
extern void hbreak_command_wrapper (char *, int);
|
||||
extern void thbreak_command_wrapper (char *, int);
|
||||
extern void rbreak_command_wrapper (char *, int);
|
||||
extern void watch_command_wrapper (char *, int);
|
||||
extern void awatch_command_wrapper (char *, int);
|
||||
extern void rwatch_command_wrapper (char *, int);
|
||||
extern void tbreak_command (char *, int);
|
||||
|
||||
extern int insert_breakpoints PARAMS ((void));
|
||||
extern int insert_breakpoints (void);
|
||||
|
||||
extern int remove_breakpoints PARAMS ((void));
|
||||
extern int remove_breakpoints (void);
|
||||
|
||||
/* This function can be used to physically insert eventpoints from the
|
||||
specified traced inferior process, without modifying the breakpoint
|
||||
package's state. This can be useful for those targets which support
|
||||
following the processes of a fork() or vfork() system call, when both
|
||||
of the resulting two processes are to be followed. */
|
||||
extern int reattach_breakpoints PARAMS ((int));
|
||||
extern int reattach_breakpoints (int);
|
||||
|
||||
/* This function can be used to update the breakpoint package's state
|
||||
after an exec() system call has been executed.
|
||||
@ -589,7 +587,7 @@ extern int reattach_breakpoints PARAMS ((int));
|
||||
breakpoint list.
|
||||
- All eventpoints without a symbolic address are removed from the
|
||||
breakpoint list. */
|
||||
extern void update_breakpoints_after_exec PARAMS ((void));
|
||||
extern void update_breakpoints_after_exec (void);
|
||||
|
||||
/* This function can be used to physically remove hardware breakpoints
|
||||
and watchpoints from the specified traced inferior process, without
|
||||
@ -600,14 +598,13 @@ extern void update_breakpoints_after_exec PARAMS ((void));
|
||||
|
||||
It is an error to use this function on the process whose id is
|
||||
inferior_pid. */
|
||||
extern int detach_breakpoints PARAMS ((int));
|
||||
extern int detach_breakpoints (int);
|
||||
|
||||
extern void enable_longjmp_breakpoint PARAMS ((void));
|
||||
extern void enable_longjmp_breakpoint (void);
|
||||
|
||||
extern void disable_longjmp_breakpoint PARAMS ((void));
|
||||
extern void disable_longjmp_breakpoint (void);
|
||||
|
||||
extern void set_longjmp_resume_breakpoint PARAMS ((CORE_ADDR,
|
||||
struct frame_info *));
|
||||
extern void set_longjmp_resume_breakpoint (CORE_ADDR, struct frame_info *);
|
||||
/* These functions respectively disable or reenable all currently
|
||||
enabled watchpoints. When disabled, the watchpoints are marked
|
||||
call_disabled. When reenabled, they are marked enabled.
|
||||
@ -629,69 +626,66 @@ extern void set_longjmp_resume_breakpoint PARAMS ((CORE_ADDR,
|
||||
that are unable to unwind through the call dummy frame, watches
|
||||
of stack-based storage may then be deleted, because gdb will
|
||||
believe that their watched storage is out of scope. (Sigh.) */
|
||||
extern void
|
||||
disable_watchpoints_before_interactive_call_start PARAMS ((void));
|
||||
extern void disable_watchpoints_before_interactive_call_start (void);
|
||||
|
||||
extern void
|
||||
enable_watchpoints_after_interactive_call_stop PARAMS ((void));
|
||||
extern void enable_watchpoints_after_interactive_call_stop (void);
|
||||
|
||||
|
||||
extern void clear_breakpoint_hit_counts PARAMS ((void));
|
||||
extern void clear_breakpoint_hit_counts (void);
|
||||
|
||||
extern int get_number PARAMS ((char **));
|
||||
extern int get_number (char **);
|
||||
|
||||
extern int get_number_or_range PARAMS ((char **));
|
||||
extern int get_number_or_range (char **);
|
||||
|
||||
/* The following are for displays, which aren't really breakpoints, but
|
||||
here is as good a place as any for them. */
|
||||
|
||||
extern void disable_current_display PARAMS ((void));
|
||||
extern void disable_current_display (void);
|
||||
|
||||
extern void do_displays PARAMS ((void));
|
||||
extern void do_displays (void);
|
||||
|
||||
extern void disable_display PARAMS ((int));
|
||||
extern void disable_display (int);
|
||||
|
||||
extern void clear_displays PARAMS ((void));
|
||||
extern void clear_displays (void);
|
||||
|
||||
extern void disable_breakpoint PARAMS ((struct breakpoint *));
|
||||
extern void disable_breakpoint (struct breakpoint *);
|
||||
|
||||
extern void enable_breakpoint PARAMS ((struct breakpoint *));
|
||||
extern void enable_breakpoint (struct breakpoint *);
|
||||
|
||||
extern void make_breakpoint_permanent PARAMS ((struct breakpoint *));
|
||||
extern void make_breakpoint_permanent (struct breakpoint *);
|
||||
|
||||
extern struct breakpoint *create_solib_event_breakpoint PARAMS ((CORE_ADDR));
|
||||
extern struct breakpoint *create_solib_event_breakpoint (CORE_ADDR);
|
||||
|
||||
extern struct breakpoint *create_thread_event_breakpoint PARAMS ((CORE_ADDR));
|
||||
extern struct breakpoint *create_thread_event_breakpoint (CORE_ADDR);
|
||||
|
||||
extern void remove_solib_event_breakpoints PARAMS ((void));
|
||||
extern void remove_solib_event_breakpoints (void);
|
||||
|
||||
extern void remove_thread_event_breakpoints PARAMS ((void));
|
||||
extern void remove_thread_event_breakpoints (void);
|
||||
|
||||
extern void disable_breakpoints_in_shlibs PARAMS ((int silent));
|
||||
extern void disable_breakpoints_in_shlibs (int silent);
|
||||
|
||||
extern void re_enable_breakpoints_in_shlibs PARAMS ((void));
|
||||
extern void re_enable_breakpoints_in_shlibs (void);
|
||||
|
||||
extern void create_solib_load_event_breakpoint PARAMS ((char *, int,
|
||||
char *, char *));
|
||||
extern void create_solib_load_event_breakpoint (char *, int, char *, char *);
|
||||
|
||||
extern void create_solib_unload_event_breakpoint PARAMS ((char *, int,
|
||||
char *, char *));
|
||||
extern void create_solib_unload_event_breakpoint (char *, int,
|
||||
char *, char *);
|
||||
|
||||
extern void create_fork_event_catchpoint PARAMS ((int, char *));
|
||||
extern void create_fork_event_catchpoint (int, char *);
|
||||
|
||||
extern void create_vfork_event_catchpoint PARAMS ((int, char *));
|
||||
extern void create_vfork_event_catchpoint (int, char *);
|
||||
|
||||
extern void create_exec_event_catchpoint PARAMS ((int, char *));
|
||||
extern void create_exec_event_catchpoint (int, char *);
|
||||
|
||||
/* This function returns TRUE if ep is a catchpoint. */
|
||||
extern int ep_is_catchpoint PARAMS ((struct breakpoint *));
|
||||
extern int ep_is_catchpoint (struct breakpoint *);
|
||||
|
||||
/* This function returns TRUE if ep is a catchpoint of a
|
||||
shared library (aka dynamically-linked library) event,
|
||||
such as a library load or unload. */
|
||||
extern int ep_is_shlib_catchpoint PARAMS ((struct breakpoint *));
|
||||
extern int ep_is_shlib_catchpoint (struct breakpoint *);
|
||||
|
||||
extern struct breakpoint *set_breakpoint_sal PARAMS ((struct symtab_and_line));
|
||||
extern struct breakpoint *set_breakpoint_sal (struct symtab_and_line);
|
||||
|
||||
/* Enable breakpoints and delete when hit. Called with ARG == NULL
|
||||
deletes all breakpoints. */
|
||||
|
12
gdb/c-exp.y
12
gdb/c-exp.y
@ -102,14 +102,11 @@ extern int hp_som_som_object_present;
|
||||
#define YYDEBUG 0 /* Default to no yydebug support */
|
||||
#endif
|
||||
|
||||
int
|
||||
yyparse PARAMS ((void));
|
||||
int yyparse (void);
|
||||
|
||||
static int
|
||||
yylex PARAMS ((void));
|
||||
static int yylex (void);
|
||||
|
||||
void
|
||||
yyerror PARAMS ((char *));
|
||||
void yyerror (char *);
|
||||
|
||||
%}
|
||||
|
||||
@ -144,8 +141,7 @@ yyerror PARAMS ((char *));
|
||||
|
||||
%{
|
||||
/* YYSTYPE gets defined by %union */
|
||||
static int
|
||||
parse_number PARAMS ((char *, int, int, YYSTYPE *));
|
||||
static int parse_number (char *, int, int, YYSTYPE *);
|
||||
%}
|
||||
|
||||
%type <voidval> exp exp1 type_exp start variable qualified_name lcurly
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "c-lang.h"
|
||||
#include "valprint.h"
|
||||
|
||||
extern void _initialize_c_language PARAMS ((void));
|
||||
extern void _initialize_c_language (void);
|
||||
static void c_emit_char (int c, struct ui_file * stream, int quoter);
|
||||
|
||||
/* Print the character C on STREAM as part of the contents of a literal
|
||||
|
14
gdb/c-lang.h
14
gdb/c-lang.h
@ -25,11 +25,9 @@
|
||||
#include "value.h"
|
||||
|
||||
|
||||
extern int
|
||||
c_parse PARAMS ((void)); /* Defined in c-exp.y */
|
||||
extern int c_parse (void); /* Defined in c-exp.y */
|
||||
|
||||
extern void
|
||||
c_error PARAMS ((char *)); /* Defined in c-exp.y */
|
||||
extern void c_error (char *); /* Defined in c-exp.y */
|
||||
|
||||
/* Defined in c-typeprint.c */
|
||||
extern void c_print_type (struct type *, char *, struct ui_file *, int,
|
||||
@ -50,7 +48,7 @@ extern void c_printstr (struct ui_file * stream, char *string,
|
||||
unsigned int length, int width,
|
||||
int force_ellipses);
|
||||
|
||||
extern struct type *c_create_fundamental_type PARAMS ((struct objfile *, int));
|
||||
extern struct type *c_create_fundamental_type (struct objfile *, int);
|
||||
|
||||
extern struct type **CONST_PTR (c_builtin_types[]);
|
||||
|
||||
@ -77,11 +75,9 @@ extern void cp_print_value_fields (struct type *, struct type *, char *,
|
||||
int, enum val_prettyprint,
|
||||
struct type **, int);
|
||||
|
||||
extern int
|
||||
cp_is_vtbl_ptr_type PARAMS ((struct type *));
|
||||
extern int cp_is_vtbl_ptr_type (struct type *);
|
||||
|
||||
extern int
|
||||
cp_is_vtbl_member PARAMS ((struct type *));
|
||||
extern int cp_is_vtbl_member (struct type *);
|
||||
|
||||
|
||||
#endif /* !defined (C_LANG_H) */
|
||||
|
@ -16,14 +16,10 @@
|
||||
Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
extern void
|
||||
initialize_all_files PARAMS ((void));
|
||||
extern void initialize_all_files (void);
|
||||
|
||||
extern void
|
||||
exec_file_command PARAMS ((char *, int));
|
||||
extern void exec_file_command (char *, int);
|
||||
|
||||
extern void
|
||||
core_file_command PARAMS ((char *, int));
|
||||
extern void core_file_command (char *, int);
|
||||
|
||||
extern void
|
||||
break_command PARAMS ((char *, int));
|
||||
extern void break_command (char *, int);
|
||||
|
92
gdb/ch-exp.c
92
gdb/ch-exp.c
@ -141,54 +141,54 @@ enum ch_terminal
|
||||
|
||||
/* Forward declarations. */
|
||||
|
||||
static void write_lower_upper_value PARAMS ((enum exp_opcode, struct type *));
|
||||
static enum ch_terminal match_bitstring_literal PARAMS ((void));
|
||||
static enum ch_terminal match_integer_literal PARAMS ((void));
|
||||
static enum ch_terminal match_character_literal PARAMS ((void));
|
||||
static enum ch_terminal match_string_literal PARAMS ((void));
|
||||
static enum ch_terminal match_float_literal PARAMS ((void));
|
||||
static enum ch_terminal match_float_literal PARAMS ((void));
|
||||
static int decode_integer_literal PARAMS ((LONGEST *, char **));
|
||||
static int decode_integer_value PARAMS ((int, char **, LONGEST *));
|
||||
static char *match_simple_name_string PARAMS ((void));
|
||||
static void growbuf_by_size PARAMS ((int));
|
||||
static void parse_untyped_expr PARAMS ((void));
|
||||
static void parse_if_expression PARAMS ((void));
|
||||
static void parse_else_alternative PARAMS ((void));
|
||||
static void parse_then_alternative PARAMS ((void));
|
||||
static void parse_expr PARAMS ((void));
|
||||
static void parse_operand0 PARAMS ((void));
|
||||
static void parse_operand1 PARAMS ((void));
|
||||
static void parse_operand2 PARAMS ((void));
|
||||
static void parse_operand3 PARAMS ((void));
|
||||
static void parse_operand4 PARAMS ((void));
|
||||
static void parse_operand5 PARAMS ((void));
|
||||
static void parse_operand6 PARAMS ((void));
|
||||
static void parse_primval PARAMS ((void));
|
||||
static void parse_tuple PARAMS ((struct type *));
|
||||
static void parse_opt_element_list PARAMS ((struct type *));
|
||||
static void parse_tuple_element PARAMS ((struct type *));
|
||||
static void parse_named_record_element PARAMS ((void));
|
||||
static void parse_call PARAMS ((void));
|
||||
static struct type *parse_mode_or_normal_call PARAMS ((void));
|
||||
static void write_lower_upper_value (enum exp_opcode, struct type *);
|
||||
static enum ch_terminal match_bitstring_literal (void);
|
||||
static enum ch_terminal match_integer_literal (void);
|
||||
static enum ch_terminal match_character_literal (void);
|
||||
static enum ch_terminal match_string_literal (void);
|
||||
static enum ch_terminal match_float_literal (void);
|
||||
static enum ch_terminal match_float_literal (void);
|
||||
static int decode_integer_literal (LONGEST *, char **);
|
||||
static int decode_integer_value (int, char **, LONGEST *);
|
||||
static char *match_simple_name_string (void);
|
||||
static void growbuf_by_size (int);
|
||||
static void parse_untyped_expr (void);
|
||||
static void parse_if_expression (void);
|
||||
static void parse_else_alternative (void);
|
||||
static void parse_then_alternative (void);
|
||||
static void parse_expr (void);
|
||||
static void parse_operand0 (void);
|
||||
static void parse_operand1 (void);
|
||||
static void parse_operand2 (void);
|
||||
static void parse_operand3 (void);
|
||||
static void parse_operand4 (void);
|
||||
static void parse_operand5 (void);
|
||||
static void parse_operand6 (void);
|
||||
static void parse_primval (void);
|
||||
static void parse_tuple (struct type *);
|
||||
static void parse_opt_element_list (struct type *);
|
||||
static void parse_tuple_element (struct type *);
|
||||
static void parse_named_record_element (void);
|
||||
static void parse_call (void);
|
||||
static struct type *parse_mode_or_normal_call (void);
|
||||
#if 0
|
||||
static struct type *parse_mode_call PARAMS ((void));
|
||||
static struct type *parse_mode_call (void);
|
||||
#endif
|
||||
static void parse_unary_call PARAMS ((void));
|
||||
static int parse_opt_untyped_expr PARAMS ((void));
|
||||
static void parse_case_label PARAMS ((void));
|
||||
static int expect PARAMS ((enum ch_terminal, char *));
|
||||
static void parse_expr PARAMS ((void));
|
||||
static void parse_primval PARAMS ((void));
|
||||
static void parse_untyped_expr PARAMS ((void));
|
||||
static int parse_opt_untyped_expr PARAMS ((void));
|
||||
static void parse_if_expression_body PARAMS ((void));
|
||||
static enum ch_terminal ch_lex PARAMS ((void));
|
||||
INLINE static enum ch_terminal PEEK_TOKEN PARAMS ((void));
|
||||
static enum ch_terminal peek_token_ PARAMS ((int));
|
||||
static void forward_token_ PARAMS ((void));
|
||||
static void require PARAMS ((enum ch_terminal));
|
||||
static int check_token PARAMS ((enum ch_terminal));
|
||||
static void parse_unary_call (void);
|
||||
static int parse_opt_untyped_expr (void);
|
||||
static void parse_case_label (void);
|
||||
static int expect (enum ch_terminal, char *);
|
||||
static void parse_expr (void);
|
||||
static void parse_primval (void);
|
||||
static void parse_untyped_expr (void);
|
||||
static int parse_opt_untyped_expr (void);
|
||||
static void parse_if_expression_body (void);
|
||||
static enum ch_terminal ch_lex (void);
|
||||
INLINE static enum ch_terminal PEEK_TOKEN (void);
|
||||
static enum ch_terminal peek_token_ (int);
|
||||
static void forward_token_ (void);
|
||||
static void require (enum ch_terminal);
|
||||
static int check_token (enum ch_terminal);
|
||||
|
||||
#define MAX_LOOK_AHEAD 2
|
||||
static enum ch_terminal terminal_buffer[MAX_LOOK_AHEAD + 1] =
|
||||
|
@ -28,22 +28,19 @@
|
||||
#include "ch-lang.h"
|
||||
#include "valprint.h"
|
||||
|
||||
extern void _initialize_chill_language PARAMS ((void));
|
||||
extern void _initialize_chill_language (void);
|
||||
|
||||
static value_ptr
|
||||
evaluate_subexp_chill PARAMS ((struct type *, struct expression *, int *, enum noside));
|
||||
evaluate_subexp_chill (struct type *, struct expression *, int *,
|
||||
enum noside);
|
||||
|
||||
static value_ptr
|
||||
value_chill_max_min PARAMS ((enum exp_opcode, value_ptr));
|
||||
static value_ptr value_chill_max_min (enum exp_opcode, value_ptr);
|
||||
|
||||
static value_ptr
|
||||
value_chill_card PARAMS ((value_ptr));
|
||||
static value_ptr value_chill_card (value_ptr);
|
||||
|
||||
static value_ptr
|
||||
value_chill_length PARAMS ((value_ptr));
|
||||
static value_ptr value_chill_length (value_ptr);
|
||||
|
||||
static struct type *
|
||||
chill_create_fundamental_type PARAMS ((struct objfile *, int));
|
||||
static struct type *chill_create_fundamental_type (struct objfile *, int);
|
||||
|
||||
static void chill_printstr (struct ui_file * stream, char *string,
|
||||
unsigned int length, int width,
|
||||
|
@ -21,11 +21,9 @@
|
||||
/* Forward decls for prototypes */
|
||||
struct value;
|
||||
|
||||
extern int
|
||||
chill_parse PARAMS ((void)); /* Defined in ch-exp.y */
|
||||
extern int chill_parse (void); /* Defined in ch-exp.y */
|
||||
|
||||
extern void
|
||||
chill_error PARAMS ((char *)); /* Defined in ch-exp.y */
|
||||
extern void chill_error (char *); /* Defined in ch-exp.y */
|
||||
|
||||
/* Defined in ch-typeprint.c */
|
||||
extern void chill_print_type (struct type *, char *, struct ui_file *, int,
|
||||
@ -39,4 +37,4 @@ extern int chill_value_print (struct value *, struct ui_file *,
|
||||
int, enum val_prettyprint);
|
||||
|
||||
extern LONGEST
|
||||
type_lower_upper PARAMS ((enum exp_opcode, struct type *, struct type **));
|
||||
type_lower_upper (enum exp_opcode, struct type *, struct type **);
|
||||
|
@ -88,7 +88,7 @@ static struct ui_out_impl cli_ui_out_impl =
|
||||
|
||||
/* Prototypes for local functions */
|
||||
|
||||
extern void _initialize_cli_out PARAMS ((void));
|
||||
extern void _initialize_cli_out (void);
|
||||
|
||||
static void field_separator (void);
|
||||
|
||||
|
@ -27,8 +27,7 @@ struct target_ops;
|
||||
#if 0
|
||||
#define CLEAR_SOLIB coff_clear_solib
|
||||
|
||||
extern void
|
||||
coff_clear_solib PARAMS ((void));
|
||||
extern void coff_clear_solib (void);
|
||||
#endif
|
||||
|
||||
/* Called to add symbols from a shared library to gdb's symbol table. */
|
||||
@ -36,8 +35,7 @@ coff_clear_solib PARAMS ((void));
|
||||
#define SOLIB_ADD(filename, from_tty, targ) \
|
||||
coff_solib_add (filename, from_tty, targ)
|
||||
|
||||
extern void
|
||||
coff_solib_add PARAMS ((char *, int, struct target_ops *));
|
||||
extern void coff_solib_add (char *, int, struct target_ops *);
|
||||
|
||||
/* Function to be called when the inferior starts up, to discover the names
|
||||
of shared libraries that are dynamically linked, the base addresses to
|
||||
@ -46,8 +44,7 @@ coff_solib_add PARAMS ((char *, int, struct target_ops *));
|
||||
|
||||
#define SOLIB_CREATE_INFERIOR_HOOK(PID) coff_solib_create_inferior_hook()
|
||||
|
||||
extern void
|
||||
coff_solib_create_inferior_hook PARAMS ((void)); /* solib.c */
|
||||
extern void coff_solib_create_inferior_hook (void); /* solib.c */
|
||||
|
||||
/* Function to be called to remove the connection between debugger and
|
||||
dynamic linker that was established by SOLIB_CREATE_INFERIOR_HOOK.
|
||||
@ -185,6 +182,5 @@ coff_solib_create_inferior_hook PARAMS ((void)); /* solib.c */
|
||||
#if 0
|
||||
#define DISABLE_UNSETTABLE_BREAK(addr) coff_solib_address(addr)
|
||||
|
||||
extern int
|
||||
solib_address PARAMS ((CORE_ADDR)); /* solib.c */
|
||||
extern int solib_address (CORE_ADDR); /* solib.c */
|
||||
#endif
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include "complaints.h"
|
||||
#include "target.h"
|
||||
|
||||
extern void _initialize_coffread PARAMS ((void));
|
||||
extern void _initialize_coffread (void);
|
||||
|
||||
struct coff_symfile_info
|
||||
{
|
||||
@ -176,80 +176,78 @@ struct coff_symbol
|
||||
unsigned int c_type;
|
||||
};
|
||||
|
||||
extern void stabsread_clear_cache PARAMS ((void));
|
||||
extern void stabsread_clear_cache (void);
|
||||
|
||||
static struct type *coff_read_struct_type PARAMS ((int, int, int));
|
||||
static struct type *coff_read_struct_type (int, int, int);
|
||||
|
||||
static struct type *decode_base_type PARAMS ((struct coff_symbol *,
|
||||
unsigned int,
|
||||
union internal_auxent *));
|
||||
static struct type *decode_base_type (struct coff_symbol *,
|
||||
unsigned int, union internal_auxent *);
|
||||
|
||||
static struct type *decode_type PARAMS ((struct coff_symbol *, unsigned int,
|
||||
union internal_auxent *));
|
||||
static struct type *decode_type (struct coff_symbol *, unsigned int,
|
||||
union internal_auxent *);
|
||||
|
||||
static struct type *decode_function_type PARAMS ((struct coff_symbol *,
|
||||
unsigned int,
|
||||
union internal_auxent *));
|
||||
static struct type *decode_function_type (struct coff_symbol *,
|
||||
unsigned int,
|
||||
union internal_auxent *);
|
||||
|
||||
static struct type *coff_read_enum_type PARAMS ((int, int, int));
|
||||
static struct type *coff_read_enum_type (int, int, int);
|
||||
|
||||
static struct symbol *process_coff_symbol PARAMS ((struct coff_symbol *,
|
||||
union internal_auxent *,
|
||||
struct objfile *));
|
||||
static struct symbol *process_coff_symbol (struct coff_symbol *,
|
||||
union internal_auxent *,
|
||||
struct objfile *);
|
||||
|
||||
static void patch_opaque_types PARAMS ((struct symtab *));
|
||||
static void patch_opaque_types (struct symtab *);
|
||||
|
||||
static void patch_type PARAMS ((struct type *, struct type *));
|
||||
static void patch_type (struct type *, struct type *);
|
||||
|
||||
static void enter_linenos PARAMS ((long, int, int, struct objfile *));
|
||||
static void enter_linenos (long, int, int, struct objfile *);
|
||||
|
||||
static void free_linetab PARAMS ((void));
|
||||
static void free_linetab (void);
|
||||
|
||||
static void free_linetab_cleanup (void *ignore);
|
||||
|
||||
static int init_lineno PARAMS ((bfd *, long, int));
|
||||
static int init_lineno (bfd *, long, int);
|
||||
|
||||
static char *getsymname PARAMS ((struct internal_syment *));
|
||||
static char *getsymname (struct internal_syment *);
|
||||
|
||||
static char *coff_getfilename PARAMS ((union internal_auxent *));
|
||||
static char *coff_getfilename (union internal_auxent *);
|
||||
|
||||
static void free_stringtab PARAMS ((void));
|
||||
static void free_stringtab (void);
|
||||
|
||||
static void free_stringtab_cleanup (void *ignore);
|
||||
|
||||
static int init_stringtab PARAMS ((bfd *, long));
|
||||
static int init_stringtab (bfd *, long);
|
||||
|
||||
static void read_one_sym PARAMS ((struct coff_symbol *,
|
||||
struct internal_syment *,
|
||||
union internal_auxent *));
|
||||
static void read_one_sym (struct coff_symbol *,
|
||||
struct internal_syment *, union internal_auxent *);
|
||||
|
||||
static void coff_symtab_read PARAMS ((long, unsigned int, struct objfile *));
|
||||
static void coff_symtab_read (long, unsigned int, struct objfile *);
|
||||
|
||||
static void find_linenos PARAMS ((bfd *, sec_ptr, PTR));
|
||||
static void find_linenos (bfd *, sec_ptr, PTR);
|
||||
|
||||
static void coff_symfile_init PARAMS ((struct objfile *));
|
||||
static void coff_symfile_init (struct objfile *);
|
||||
|
||||
static void coff_new_init PARAMS ((struct objfile *));
|
||||
static void coff_new_init (struct objfile *);
|
||||
|
||||
static void coff_symfile_read PARAMS ((struct objfile *, int));
|
||||
static void coff_symfile_read (struct objfile *, int);
|
||||
|
||||
static void coff_symfile_finish PARAMS ((struct objfile *));
|
||||
static void coff_symfile_finish (struct objfile *);
|
||||
|
||||
static void record_minimal_symbol PARAMS ((char *, CORE_ADDR,
|
||||
enum minimal_symbol_type,
|
||||
struct objfile *));
|
||||
static void record_minimal_symbol (char *, CORE_ADDR,
|
||||
enum minimal_symbol_type,
|
||||
struct objfile *);
|
||||
|
||||
static void coff_end_symtab PARAMS ((struct objfile *));
|
||||
static void coff_end_symtab (struct objfile *);
|
||||
|
||||
static void complete_symtab PARAMS ((char *, CORE_ADDR, unsigned int));
|
||||
static void complete_symtab (char *, CORE_ADDR, unsigned int);
|
||||
|
||||
static void coff_start_symtab PARAMS ((char *));
|
||||
static void coff_start_symtab (char *);
|
||||
|
||||
static struct type *coff_alloc_type PARAMS ((int));
|
||||
static struct type *coff_alloc_type (int);
|
||||
|
||||
static struct type **coff_lookup_type PARAMS ((int));
|
||||
static struct type **coff_lookup_type (int);
|
||||
|
||||
static void coff_locate_sections PARAMS ((bfd *, asection *, PTR));
|
||||
static void coff_locate_sections (bfd *, asection *, PTR);
|
||||
|
||||
/* We are called once per section from coff_symfile_read. We
|
||||
need to examine each section we are passed, check to see
|
||||
@ -315,7 +313,7 @@ coff_locate_sections (abfd, sectp, csip)
|
||||
}
|
||||
|
||||
/* Return the section_offsets* that CS points to. */
|
||||
static int cs_to_section PARAMS ((struct coff_symbol *, struct objfile *));
|
||||
static int cs_to_section (struct coff_symbol *, struct objfile *);
|
||||
|
||||
struct find_targ_sec_arg
|
||||
{
|
||||
@ -323,7 +321,7 @@ struct find_targ_sec_arg
|
||||
asection **resultp;
|
||||
};
|
||||
|
||||
static void find_targ_sec PARAMS ((bfd *, asection *, void *));
|
||||
static void find_targ_sec (bfd *, asection *, void *);
|
||||
|
||||
static void
|
||||
find_targ_sec (abfd, sect, obj)
|
||||
@ -364,7 +362,7 @@ cs_to_section (cs, objfile)
|
||||
|
||||
/* Return the address of the section of a COFF symbol. */
|
||||
|
||||
static CORE_ADDR cs_section_address PARAMS ((struct coff_symbol *, bfd *));
|
||||
static CORE_ADDR cs_section_address (struct coff_symbol *, bfd *);
|
||||
|
||||
static CORE_ADDR
|
||||
cs_section_address (cs, abfd)
|
||||
|
@ -35,25 +35,25 @@
|
||||
|
||||
/* Prototypes for local functions */
|
||||
|
||||
static void undef_cmd_error PARAMS ((char *, char *));
|
||||
static void undef_cmd_error (char *, char *);
|
||||
|
||||
static void show_user PARAMS ((char *, int));
|
||||
static void show_user (char *, int);
|
||||
|
||||
static void show_user_1 (struct cmd_list_element *, struct ui_file *);
|
||||
|
||||
static void make_command PARAMS ((char *, int));
|
||||
static void make_command (char *, int);
|
||||
|
||||
static void shell_escape PARAMS ((char *, int));
|
||||
static void shell_escape (char *, int);
|
||||
|
||||
static int parse_binary_operation PARAMS ((char *));
|
||||
static int parse_binary_operation (char *);
|
||||
|
||||
static void print_doc_line (struct ui_file *, char *);
|
||||
|
||||
static struct cmd_list_element *find_cmd PARAMS ((char *command,
|
||||
int len,
|
||||
struct cmd_list_element * clist,
|
||||
int ignore_help_classes,
|
||||
int *nfound));
|
||||
static struct cmd_list_element *find_cmd (char *command,
|
||||
int len,
|
||||
struct cmd_list_element *clist,
|
||||
int ignore_help_classes,
|
||||
int *nfound);
|
||||
static void apropos_cmd_helper (struct ui_file *, struct cmd_list_element *,
|
||||
struct re_pattern_buffer *, char *);
|
||||
|
||||
@ -61,7 +61,7 @@ static void help_all (struct ui_file *stream);
|
||||
|
||||
void apropos_command (char *, int);
|
||||
|
||||
void _initialize_command PARAMS ((void));
|
||||
void _initialize_command (void);
|
||||
|
||||
/* Add element named NAME.
|
||||
CLASS is the top level category into which commands are broken down
|
||||
@ -267,7 +267,7 @@ not_just_help_class_command (args, from_tty)
|
||||
}
|
||||
|
||||
/* This is an empty "sfunc". */
|
||||
static void empty_sfunc PARAMS ((char *, int, struct cmd_list_element *));
|
||||
static void empty_sfunc (char *, int, struct cmd_list_element *);
|
||||
|
||||
static void
|
||||
empty_sfunc (args, from_tty, c)
|
||||
|
@ -216,31 +216,39 @@ struct cmd_list_element
|
||||
|
||||
/* Forward-declarations of the entry-points of command.c. */
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_cmd PARAMS ((char *, enum command_class, void (*fun) (char *, int),
|
||||
char *, struct cmd_list_element **));
|
||||
extern struct cmd_list_element *add_cmd (char *, enum command_class,
|
||||
void (*fun) (char *, int), char *,
|
||||
struct cmd_list_element **);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_alias_cmd PARAMS ((char *, char *, enum command_class, int,
|
||||
struct cmd_list_element **));
|
||||
extern struct cmd_list_element *add_alias_cmd (char *, char *,
|
||||
enum command_class, int,
|
||||
struct cmd_list_element **);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_prefix_cmd PARAMS ((char *, enum command_class, void (*fun) (char *, int),
|
||||
char *, struct cmd_list_element **, char *, int,
|
||||
struct cmd_list_element **));
|
||||
extern struct cmd_list_element *add_prefix_cmd (char *, enum command_class,
|
||||
void (*fun) (char *, int),
|
||||
char *,
|
||||
struct cmd_list_element **,
|
||||
char *, int,
|
||||
struct cmd_list_element **);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_abbrev_prefix_cmd PARAMS ((char *, enum command_class,
|
||||
void (*fun) (char *, int), char *,
|
||||
struct cmd_list_element **, char *, int,
|
||||
struct cmd_list_element **));
|
||||
extern struct cmd_list_element *add_abbrev_prefix_cmd (char *,
|
||||
enum command_class,
|
||||
void (*fun) (char *,
|
||||
int),
|
||||
char *,
|
||||
struct cmd_list_element
|
||||
**, char *, int,
|
||||
struct cmd_list_element
|
||||
**);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
lookup_cmd PARAMS ((char **, struct cmd_list_element *, char *, int, int));
|
||||
extern struct cmd_list_element *lookup_cmd (char **,
|
||||
struct cmd_list_element *, char *,
|
||||
int, int);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
lookup_cmd_1 PARAMS ((char **, struct cmd_list_element *,
|
||||
struct cmd_list_element **, int));
|
||||
extern struct cmd_list_element *lookup_cmd_1 (char **,
|
||||
struct cmd_list_element *,
|
||||
struct cmd_list_element **,
|
||||
int);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
deprecate_cmd (struct cmd_list_element *, char * );
|
||||
@ -254,27 +262,22 @@ extern int
|
||||
struct cmd_list_element **prefix_cmd,
|
||||
struct cmd_list_element **cmd);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_com PARAMS ((char *, enum command_class, void (*fun) (char *, int),
|
||||
char *));
|
||||
extern struct cmd_list_element *add_com (char *, enum command_class,
|
||||
void (*fun) (char *, int), char *);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_com_alias PARAMS ((char *, char *, enum command_class, int));
|
||||
extern struct cmd_list_element *add_com_alias (char *, char *,
|
||||
enum command_class, int);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_info PARAMS ((char *, void (*fun) (char *, int), char *));
|
||||
extern struct cmd_list_element *add_info (char *, void (*fun) (char *, int),
|
||||
char *);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_info_alias PARAMS ((char *, char *, int));
|
||||
extern struct cmd_list_element *add_info_alias (char *, char *, int);
|
||||
|
||||
extern char **
|
||||
complete_on_cmdlist PARAMS ((struct cmd_list_element *, char *, char *));
|
||||
extern char **complete_on_cmdlist (struct cmd_list_element *, char *, char *);
|
||||
|
||||
extern char **
|
||||
complete_on_enum PARAMS ((char **enumlist, char *, char *));
|
||||
extern char **complete_on_enum (char **enumlist, char *, char *);
|
||||
|
||||
extern void
|
||||
delete_cmd PARAMS ((char *, struct cmd_list_element **));
|
||||
extern void delete_cmd (char *, struct cmd_list_element **);
|
||||
|
||||
extern void help_cmd (char *, struct ui_file *);
|
||||
|
||||
@ -297,34 +300,29 @@ extern struct cmd_list_element *add_set_enum_cmd (char *name,
|
||||
char *doc,
|
||||
struct cmd_list_element **list);
|
||||
|
||||
extern struct cmd_list_element *
|
||||
add_show_from_set PARAMS ((struct cmd_list_element *,
|
||||
struct cmd_list_element **));
|
||||
extern struct cmd_list_element *add_show_from_set (struct cmd_list_element *,
|
||||
struct cmd_list_element
|
||||
**);
|
||||
|
||||
/* Do a "set" or "show" command. ARG is NULL if no argument, or the text
|
||||
of the argument, and FROM_TTY is nonzero if this command is being entered
|
||||
directly by the user (i.e. these are just like any other
|
||||
command). C is the command list element for the command. */
|
||||
|
||||
extern void
|
||||
do_setshow_command PARAMS ((char *, int, struct cmd_list_element *));
|
||||
extern void do_setshow_command (char *, int, struct cmd_list_element *);
|
||||
|
||||
/* Do a "show" command for each thing on a command list. */
|
||||
|
||||
extern void
|
||||
cmd_show_list PARAMS ((struct cmd_list_element *, int, char *));
|
||||
extern void cmd_show_list (struct cmd_list_element *, int, char *);
|
||||
|
||||
extern void
|
||||
error_no_arg PARAMS ((char *));
|
||||
extern void error_no_arg (char *);
|
||||
|
||||
extern void
|
||||
dont_repeat PARAMS ((void));
|
||||
extern void dont_repeat (void);
|
||||
|
||||
/* Used to mark commands that don't do anything. If we just leave the
|
||||
function field NULL, the command is interpreted as a help topic, or
|
||||
as a class of commands. */
|
||||
|
||||
extern void
|
||||
not_just_help_class_command PARAMS ((char *, int));
|
||||
extern void not_just_help_class_command (char *, int);
|
||||
|
||||
#endif /* !defined (COMMAND_H) */
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "complaints.h"
|
||||
#include "gdbcmd.h"
|
||||
|
||||
extern void _initialize_complaints PARAMS ((void));
|
||||
extern void _initialize_complaints (void);
|
||||
|
||||
/* Structure to manage complaints about symbol file contents. */
|
||||
|
||||
|
@ -44,11 +44,9 @@ extern struct complaint complaint_root[1];
|
||||
|
||||
/* Functions that handle complaints. (in complaints.c) */
|
||||
|
||||
extern void
|
||||
complain PARAMS ((struct complaint *,...));
|
||||
extern void complain (struct complaint *, ...);
|
||||
|
||||
extern void
|
||||
clear_complaints PARAMS ((int, int));
|
||||
extern void clear_complaints (int, int);
|
||||
|
||||
|
||||
#endif /* !defined (COMPLAINTS_H) */
|
||||
|
@ -508,7 +508,9 @@ extern CORE_ADDR frame_locals_address ();
|
||||
because registers get renumbered on the a29k without getting saved. */
|
||||
|
||||
struct frame_info;
|
||||
void a29k_get_saved_register PARAMS ((char *raw_buffer, int *optimized, CORE_ADDR * addrp, struct frame_info * frame, int regnum, enum lval_type * lvalp));
|
||||
void a29k_get_saved_register (char *raw_buffer, int *optimized,
|
||||
CORE_ADDR * addrp, struct frame_info *frame,
|
||||
int regnum, enum lval_type *lvalp);
|
||||
#define GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) \
|
||||
a29k_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
|
||||
|
||||
@ -713,4 +715,4 @@ processor_type;
|
||||
"frame" or "info frame" command. */
|
||||
|
||||
#define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv)
|
||||
extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
|
||||
extern struct frame_info *setup_arbitrary_frame (int, CORE_ADDR *);
|
||||
|
@ -177,7 +177,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* VxWorks adjusts the PC after a breakpoint has been hit. */
|
||||
|
||||
@ -207,7 +207,7 @@ extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
val = value_cast (builtin_type_int, val); \
|
||||
} while (0)
|
||||
|
||||
extern int vx29k_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
|
||||
extern int vx29k_frame_chain_valid (CORE_ADDR, struct frame_info *);
|
||||
#define FRAME_CHAIN_VALID(chain, thisframe) vx29k_frame_chain_valid (chain, thisframe)
|
||||
|
||||
extern CORE_ADDR frame_saved_call_site ();
|
||||
|
@ -30,8 +30,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* ptrace register ``addresses'' are absolute. */
|
||||
|
||||
|
@ -25,8 +25,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* ptrace register ``addresses'' are absolute. */
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
/* Return sizeof user struct to callers in less machine dependent routines */
|
||||
|
||||
#define KERNEL_U_SIZE kernel_u_size()
|
||||
extern int kernel_u_size PARAMS ((void));
|
||||
extern int kernel_u_size (void);
|
||||
|
||||
/* poll() doesn't seem to work properly for /proc in this version of the OS.
|
||||
If we only specify POLLPRI, things hang. It seems to get better when we set
|
||||
|
@ -59,7 +59,7 @@ struct symbol;
|
||||
to reach some "real" code. */
|
||||
|
||||
#define SKIP_PROLOGUE(pc) (alpha_skip_prologue(pc, 0))
|
||||
extern CORE_ADDR alpha_skip_prologue PARAMS ((CORE_ADDR addr, int lenient));
|
||||
extern CORE_ADDR alpha_skip_prologue (CORE_ADDR addr, int lenient);
|
||||
|
||||
/* Immediately after a function call, return the saved pc.
|
||||
Can't always go through the frames for this because on some machines
|
||||
@ -67,8 +67,7 @@ extern CORE_ADDR alpha_skip_prologue PARAMS ((CORE_ADDR addr, int lenient));
|
||||
some instructions. */
|
||||
|
||||
#define SAVED_PC_AFTER_CALL(frame) alpha_saved_pc_after_call(frame)
|
||||
extern CORE_ADDR
|
||||
alpha_saved_pc_after_call PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR alpha_saved_pc_after_call (struct frame_info *);
|
||||
|
||||
/* Are we currently handling a signal ? */
|
||||
|
||||
@ -184,7 +183,7 @@ extern CORE_ADDR
|
||||
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM, TYPE, FROM, TO) \
|
||||
alpha_register_convert_to_virtual (REGNUM, TYPE, FROM, TO)
|
||||
extern void
|
||||
alpha_register_convert_to_virtual PARAMS ((int, struct type *, char *, char *));
|
||||
alpha_register_convert_to_virtual (int, struct type *, char *, char *);
|
||||
|
||||
/* Convert data from virtual format with type TYPE in buffer FROM
|
||||
to raw format for register REGNUM in buffer TO. */
|
||||
@ -192,7 +191,7 @@ alpha_register_convert_to_virtual PARAMS ((int, struct type *, char *, char *));
|
||||
#define REGISTER_CONVERT_TO_RAW(TYPE, REGNUM, FROM, TO) \
|
||||
alpha_register_convert_to_raw (TYPE, REGNUM, FROM, TO)
|
||||
extern void
|
||||
alpha_register_convert_to_raw PARAMS ((struct type *, int, char *, char *));
|
||||
alpha_register_convert_to_raw (struct type *, int, char *, char *);
|
||||
|
||||
/* Return the GDB type object for the "standard" data type
|
||||
of data in register N. */
|
||||
@ -213,16 +212,14 @@ alpha_register_convert_to_raw PARAMS ((struct type *, int, char *, char *));
|
||||
|
||||
#define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
|
||||
alpha_extract_return_value(TYPE, REGBUF, VALBUF)
|
||||
extern void
|
||||
alpha_extract_return_value PARAMS ((struct type *, char *, char *));
|
||||
extern void alpha_extract_return_value (struct type *, char *, char *);
|
||||
|
||||
/* Write into appropriate registers a function return value
|
||||
of type TYPE, given in virtual format. */
|
||||
|
||||
#define STORE_RETURN_VALUE(TYPE,VALBUF) \
|
||||
alpha_store_return_value(TYPE, VALBUF)
|
||||
extern void
|
||||
alpha_store_return_value PARAMS ((struct type *, char *));
|
||||
extern void alpha_store_return_value (struct type *, char *);
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state
|
||||
the address in which a function should return its structure value,
|
||||
@ -247,7 +244,7 @@ alpha_store_return_value PARAMS ((struct type *, char *));
|
||||
and produces the frame's chain-pointer. */
|
||||
|
||||
#define FRAME_CHAIN(thisframe) (CORE_ADDR) alpha_frame_chain (thisframe)
|
||||
extern CORE_ADDR alpha_frame_chain PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR alpha_frame_chain (struct frame_info *);
|
||||
|
||||
/* Define other aspects of the stack frame. */
|
||||
|
||||
@ -261,8 +258,7 @@ extern CORE_ADDR alpha_frame_chain PARAMS ((struct frame_info *));
|
||||
/* Saved Pc. */
|
||||
|
||||
#define FRAME_SAVED_PC(FRAME) (alpha_frame_saved_pc(FRAME))
|
||||
extern CORE_ADDR
|
||||
alpha_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR alpha_frame_saved_pc (struct frame_info *);
|
||||
|
||||
/* The alpha has two different virtual pointers for arguments and locals.
|
||||
|
||||
@ -298,7 +294,7 @@ extern CORE_ADDR
|
||||
ways in the stack frame. sp is even more special:
|
||||
the address we return for it IS the sp for the next frame. */
|
||||
|
||||
extern void alpha_find_saved_regs PARAMS ((struct frame_info *));
|
||||
extern void alpha_find_saved_regs (struct frame_info *);
|
||||
|
||||
#define FRAME_INIT_SAVED_REGS(frame_info) \
|
||||
do { \
|
||||
@ -313,19 +309,17 @@ extern void alpha_find_saved_regs PARAMS ((struct frame_info *));
|
||||
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
|
||||
(alpha_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)))
|
||||
extern CORE_ADDR
|
||||
alpha_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR));
|
||||
alpha_push_arguments (int, struct value **, CORE_ADDR, int, CORE_ADDR);
|
||||
|
||||
/* Push an empty stack frame, to record the current PC, etc. */
|
||||
|
||||
#define PUSH_DUMMY_FRAME alpha_push_dummy_frame()
|
||||
extern void
|
||||
alpha_push_dummy_frame PARAMS ((void));
|
||||
extern void alpha_push_dummy_frame (void);
|
||||
|
||||
/* Discard from the stack the innermost frame, restoring all registers. */
|
||||
|
||||
#define POP_FRAME alpha_pop_frame()
|
||||
extern void
|
||||
alpha_pop_frame PARAMS ((void));
|
||||
extern void alpha_pop_frame (void);
|
||||
|
||||
/* Alpha OSF/1 inhibits execution of code on the stack.
|
||||
But there is no need for a dummy on the alpha. PUSH_ARGUMENTS
|
||||
@ -346,7 +340,7 @@ alpha_pop_frame PARAMS ((void));
|
||||
|
||||
#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
|
||||
|
||||
extern CORE_ADDR alpha_call_dummy_address PARAMS ((void));
|
||||
extern CORE_ADDR alpha_call_dummy_address (void);
|
||||
#define CALL_DUMMY_ADDRESS() alpha_call_dummy_address()
|
||||
|
||||
/* Insert the specified number of args and function address
|
||||
@ -376,7 +370,7 @@ extern CORE_ADDR alpha_call_dummy_address PARAMS ((void));
|
||||
alpha_extra_func_info_t's off of this. */
|
||||
|
||||
#define MIPS_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
|
||||
extern void ecoff_relocate_efi PARAMS ((struct symbol *, CORE_ADDR));
|
||||
extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
|
||||
|
||||
/* Specific information about a procedure.
|
||||
This overlays the ALPHA's PDR records,
|
||||
@ -402,8 +396,7 @@ typedef struct alpha_extra_func_info
|
||||
alpha_extra_func_info_t proc_desc;
|
||||
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, fci) init_extra_frame_info(fci)
|
||||
extern void
|
||||
init_extra_frame_info PARAMS ((struct frame_info *));
|
||||
extern void init_extra_frame_info (struct frame_info *);
|
||||
|
||||
#define PRINT_EXTRA_FRAME_INFO(fi) \
|
||||
{ \
|
||||
@ -424,7 +417,7 @@ init_extra_frame_info PARAMS ((struct frame_info *));
|
||||
multiple functions with the same SP that are at different stack levels. */
|
||||
|
||||
#define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv)
|
||||
extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
|
||||
extern struct frame_info *setup_arbitrary_frame (int, CORE_ADDR *);
|
||||
|
||||
/* This is used by heuristic_proc_start. It should be shot it the head. */
|
||||
#ifndef VM_MIN_ADDRESS
|
||||
@ -476,6 +469,7 @@ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
|
||||
|
||||
#define FRAME_PAST_SIGTRAMP_FRAME(frame, pc) \
|
||||
(alpha_osf_skip_sigtramp_frame (frame, pc))
|
||||
extern CORE_ADDR alpha_osf_skip_sigtramp_frame PARAMS ((struct frame_info *, CORE_ADDR));
|
||||
extern CORE_ADDR alpha_osf_skip_sigtramp_frame (struct frame_info *,
|
||||
CORE_ADDR);
|
||||
|
||||
#endif /* TM_ALPHA_H */
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
/* Are we currently handling a signal ? */
|
||||
|
||||
extern long alpha_linux_sigtramp_offset PARAMS ((CORE_ADDR));
|
||||
extern long alpha_linux_sigtramp_offset (CORE_ADDR);
|
||||
#undef IN_SIGTRAMP
|
||||
#define IN_SIGTRAMP(pc, name) (alpha_linux_sigtramp_offset (pc) >= 0)
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
#define SKIP_PROLOGUE(pc) (arc_skip_prologue (pc, 0))
|
||||
#define SKIP_PROLOGUE_FRAMELESS_P(pc) (arc_skip_prologue (pc, 1))
|
||||
extern CORE_ADDR arc_skip_prologue PARAMS ((CORE_ADDR, int));
|
||||
extern CORE_ADDR arc_skip_prologue (CORE_ADDR, int);
|
||||
|
||||
/* Sequence of bytes for breakpoint instruction.
|
||||
??? The current value is "sr -1,[-1]" and is for the simulator only.
|
||||
@ -62,7 +62,7 @@ extern CORE_ADDR arc_skip_prologue PARAMS ((CORE_ADDR, int));
|
||||
/* We don't have a reliable single step facility.
|
||||
??? We do have a cycle single step facility, but that won't work. */
|
||||
#define SOFTWARE_SINGLE_STEP_P 1
|
||||
extern void arc_software_single_step PARAMS ((unsigned int, int));
|
||||
extern void arc_software_single_step (unsigned int, int);
|
||||
#define SOFTWARE_SINGLE_STEP(sig,bp_p) arc_software_single_step (sig, bp_p)
|
||||
|
||||
/* FIXME: Need to set STEP_SKIPS_DELAY. */
|
||||
@ -277,7 +277,7 @@ extern void arc_software_single_step PARAMS ((unsigned int, int));
|
||||
|
||||
#define FRAME_SAVED_PC(frame) (arc_frame_saved_pc (frame))
|
||||
struct frame_info; /* in case frame.h not included yet */
|
||||
CORE_ADDR arc_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
CORE_ADDR arc_frame_saved_pc (struct frame_info *);
|
||||
|
||||
/* If the argument is on the stack, it will be here.
|
||||
We cache this value in the frame info if we've already looked it up. */
|
||||
|
@ -50,15 +50,15 @@
|
||||
/* Functions for dealing with Thumb call thunks. */
|
||||
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) arm_in_call_stub (pc, name)
|
||||
#define SKIP_TRAMPOLINE_CODE(pc) arm_skip_stub (pc)
|
||||
extern int arm_in_call_stub PARAMS ((CORE_ADDR pc, char *name));
|
||||
extern CORE_ADDR arm_skip_stub PARAMS ((CORE_ADDR pc));
|
||||
extern int arm_in_call_stub (CORE_ADDR pc, char *name);
|
||||
extern CORE_ADDR arm_skip_stub (CORE_ADDR pc);
|
||||
|
||||
/* Function to determine whether MEMADDR is in a Thumb function. */
|
||||
extern int arm_pc_is_thumb PARAMS ((bfd_vma memaddr));
|
||||
extern int arm_pc_is_thumb (bfd_vma memaddr);
|
||||
|
||||
/* Function to determine whether MEMADDR is in a call dummy called from
|
||||
a Thumb function. */
|
||||
extern int arm_pc_is_thumb_dummy PARAMS ((bfd_vma memaddr));
|
||||
extern int arm_pc_is_thumb_dummy (bfd_vma memaddr);
|
||||
|
||||
|
||||
#undef IN_SIGTRAMP
|
||||
|
Binary file not shown.
@ -46,7 +46,7 @@ struct value;
|
||||
/* Advance PC across any function entry prologue instructions
|
||||
to reach some "real" code. */
|
||||
|
||||
extern CORE_ADDR d30v_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR d30v_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(ip) (d30v_skip_prologue (ip))
|
||||
|
||||
|
||||
@ -165,7 +165,7 @@ extern CORE_ADDR d30v_skip_prologue PARAMS ((CORE_ADDR));
|
||||
|
||||
#define CANNOT_STORE_REGISTER(regno) ((regno) == R0_REGNUM)
|
||||
|
||||
void d30v_do_registers_info PARAMS ((int regnum, int fpregs));
|
||||
void d30v_do_registers_info (int regnum, int fpregs);
|
||||
|
||||
#define DO_REGISTERS_INFO d30v_do_registers_info
|
||||
|
||||
@ -206,7 +206,7 @@ void d30v_do_registers_info PARAMS ((int regnum, int fpregs));
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \
|
||||
d30v_init_extra_frame_info(fromleaf, fi)
|
||||
|
||||
extern void d30v_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info * fi));
|
||||
extern void d30v_init_extra_frame_info (int fromleaf, struct frame_info *fi);
|
||||
|
||||
/* A macro that tells us whether the function invocation represented
|
||||
by FI does not have a frame on the stack associated with it. If it
|
||||
@ -217,7 +217,7 @@ extern void d30v_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info
|
||||
|
||||
CORE_ADDR d30v_frame_chain (struct frame_info *frame);
|
||||
#define FRAME_CHAIN(FRAME) d30v_frame_chain(FRAME)
|
||||
extern int d30v_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
|
||||
extern int d30v_frame_chain_valid (CORE_ADDR, struct frame_info *);
|
||||
#define FRAME_CHAIN_VALID(chain, thisframe) d30v_frame_chain_valid (chain, thisframe)
|
||||
#define FRAME_SAVED_PC(FRAME) ((FRAME)->return_pc)
|
||||
#define FRAME_ARGS_ADDRESS(fi) (fi)->frame
|
||||
@ -253,7 +253,8 @@ void d30v_init_frame_pc (int fromleaf, struct frame_info *prev);
|
||||
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
|
||||
d30v_frame_find_saved_regs(frame_info, &(frame_saved_regs))
|
||||
|
||||
extern void d30v_frame_find_saved_regs PARAMS ((struct frame_info *, struct frame_saved_regs *));
|
||||
extern void d30v_frame_find_saved_regs (struct frame_info *,
|
||||
struct frame_saved_regs *);
|
||||
|
||||
/* DUMMY FRAMES. Need these to support inferior function calls.
|
||||
They work like this on D30V:
|
||||
@ -271,7 +272,7 @@ extern void d30v_frame_find_saved_regs PARAMS ((struct frame_info *, struct fram
|
||||
#define CALL_DUMMY_LOCATION AT_ENTRY_POINT
|
||||
#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
|
||||
|
||||
extern CORE_ADDR d30v_call_dummy_address PARAMS ((void));
|
||||
extern CORE_ADDR d30v_call_dummy_address (void);
|
||||
#define CALL_DUMMY_ADDRESS() d30v_call_dummy_address()
|
||||
|
||||
#define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \
|
||||
@ -279,12 +280,13 @@ sp = d30v_fix_call_dummy (dummyname, pc, fun, nargs, args, type, gcc_p)
|
||||
|
||||
#define PC_IN_CALL_DUMMY(pc, sp, frame_address) ( pc == IMEM_START + 4 )
|
||||
|
||||
extern CORE_ADDR d30v_fix_call_dummy PARAMS ((char *, CORE_ADDR, CORE_ADDR,
|
||||
int, struct value **,
|
||||
struct type *, int));
|
||||
extern CORE_ADDR d30v_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR,
|
||||
int, struct value **,
|
||||
struct type *, int);
|
||||
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
|
||||
(d30v_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)))
|
||||
extern CORE_ADDR d30v_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR));
|
||||
extern CORE_ADDR d30v_push_arguments (int, struct value **, CORE_ADDR, int,
|
||||
CORE_ADDR);
|
||||
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state
|
||||
@ -293,14 +295,13 @@ extern CORE_ADDR d30v_push_arguments PARAMS ((int, struct value **, CORE_ADDR, i
|
||||
|
||||
#define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
|
||||
d30v_extract_return_value(TYPE, REGBUF, VALBUF)
|
||||
extern void
|
||||
d30v_extract_return_value PARAMS ((struct type *, char *, char *));
|
||||
extern void d30v_extract_return_value (struct type *, char *, char *);
|
||||
|
||||
|
||||
/* Discard from the stack the innermost frame,
|
||||
restoring all saved registers. */
|
||||
#define POP_FRAME d30v_pop_frame();
|
||||
extern void d30v_pop_frame PARAMS ((void));
|
||||
extern void d30v_pop_frame (void);
|
||||
|
||||
#define REGISTER_SIZE 4
|
||||
|
||||
|
@ -94,7 +94,7 @@
|
||||
/* Largest value REGISTER_VIRTUAL_SIZE can have. */
|
||||
#define MAX_REGISTER_VIRTUAL_SIZE FR30_REGSIZE
|
||||
|
||||
extern void fr30_pop_frame PARAMS ((void));
|
||||
extern void fr30_pop_frame (void);
|
||||
#define POP_FRAME fr30_pop_frame()
|
||||
|
||||
#define USE_GENERIC_DUMMY_FRAMES 1
|
||||
@ -150,22 +150,22 @@ struct value;
|
||||
int frameoffset; \
|
||||
int framereg;
|
||||
|
||||
extern CORE_ADDR fr30_frame_chain PARAMS ((struct frame_info * fi));
|
||||
extern CORE_ADDR fr30_frame_chain (struct frame_info *fi);
|
||||
#define FRAME_CHAIN(fi) fr30_frame_chain (fi)
|
||||
|
||||
extern CORE_ADDR fr30_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR fr30_frame_saved_pc (struct frame_info *);
|
||||
#define FRAME_SAVED_PC(fi) (fr30_frame_saved_pc (fi))
|
||||
|
||||
#define SAVED_PC_AFTER_CALL(fi) read_register (RP_REGNUM)
|
||||
|
||||
extern CORE_ADDR fr30_skip_prologue PARAMS ((CORE_ADDR pc));
|
||||
extern CORE_ADDR fr30_skip_prologue (CORE_ADDR pc);
|
||||
#define SKIP_PROLOGUE(pc) (fr30_skip_prologue (pc))
|
||||
|
||||
/* Write into appropriate registers a function return value of type
|
||||
TYPE, given in virtual format. VALBUF is in the target byte order;
|
||||
it's typically the VALUE_CONTENTS of some struct value, and those
|
||||
are in the target's byte order. */
|
||||
extern void fr30_store_return_value PARAMS ((struct type * type, char *valbuf));
|
||||
extern void fr30_store_return_value (struct type *type, char *valbuf);
|
||||
|
||||
#define STORE_RETURN_VALUE(TYPE,VALBUF) \
|
||||
(fr30_store_return_value ((TYPE), (VALBUF)))
|
||||
@ -192,18 +192,17 @@ extern void fr30_store_return_value PARAMS ((struct type * type, char *valbuf));
|
||||
|
||||
/* An expression that tells us whether the function invocation represented
|
||||
by FI does not have a frame on the stack associated with it. */
|
||||
extern int fr30_frameless_function_invocation PARAMS ((struct frame_info * frame));
|
||||
extern int fr30_frameless_function_invocation (struct frame_info *frame);
|
||||
#define FRAMELESS_FUNCTION_INVOCATION(FI) (fr30_frameless_function_invocation (FI));
|
||||
|
||||
extern void fr30_init_extra_frame_info PARAMS ((struct frame_info * fi));
|
||||
extern void fr30_init_extra_frame_info (struct frame_info *fi);
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) fr30_init_extra_frame_info (fi)
|
||||
|
||||
#define FRAME_CHAIN_VALID(FP, FI) generic_file_frame_chain_valid (FP, FI)
|
||||
|
||||
extern CORE_ADDR
|
||||
fr30_push_arguments PARAMS ((int nargs, struct value ** args, CORE_ADDR sp,
|
||||
int struct_return,
|
||||
CORE_ADDR struct_addr));
|
||||
fr30_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
|
||||
int struct_return, CORE_ADDR struct_addr);
|
||||
#define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \
|
||||
(fr30_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR))
|
||||
|
||||
|
@ -159,7 +159,7 @@ extern char **h8300_register_names;
|
||||
|
||||
/* FIXME: Won't work with both h8/300's. */
|
||||
|
||||
extern void h8300_extract_return_value PARAMS ((struct type *, char *, char *));
|
||||
extern void h8300_extract_return_value (struct type *, char *, char *);
|
||||
#define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
|
||||
h8300_extract_return_value (TYPE, (char *)(REGBUF), (char *)(VALBUF))
|
||||
|
||||
@ -168,7 +168,7 @@ extern void h8300_extract_return_value PARAMS ((struct type *, char *, char *));
|
||||
in d0/d1. */
|
||||
/* FIXME: Won't work with both h8/300's. */
|
||||
|
||||
extern void h8300_store_return_value PARAMS ((struct type *, char *));
|
||||
extern void h8300_store_return_value (struct type *, char *);
|
||||
#define STORE_RETURN_VALUE(TYPE,VALBUF) \
|
||||
h8300_store_return_value(TYPE, (char *) (VALBUF))
|
||||
|
||||
@ -196,7 +196,7 @@ extern void h8300_store_return_value PARAMS ((struct type *, char *));
|
||||
it means the given frame is the outermost one and has no caller. */
|
||||
|
||||
#define FRAME_CHAIN(FRAME) h8300_frame_chain(FRAME)
|
||||
CORE_ADDR h8300_frame_chain PARAMS ((struct frame_info *));
|
||||
CORE_ADDR h8300_frame_chain (struct frame_info *);
|
||||
|
||||
/* In the case of the H8/300, the frame's nominal address
|
||||
is the address of a 2-byte word containing the calling frame's address. */
|
||||
@ -278,12 +278,12 @@ typedef unsigned short INSN_WORD;
|
||||
#define CALL_DUMMY_START_OFFSET (0)
|
||||
#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
|
||||
|
||||
extern CORE_ADDR h8300_push_arguments PARAMS ((int nargs,
|
||||
struct value ** args,
|
||||
CORE_ADDR sp,
|
||||
unsigned char struct_return,
|
||||
CORE_ADDR struct_addr));
|
||||
extern CORE_ADDR h8300_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
|
||||
extern CORE_ADDR h8300_push_arguments (int nargs,
|
||||
struct value **args,
|
||||
CORE_ADDR sp,
|
||||
unsigned char struct_return,
|
||||
CORE_ADDR struct_addr);
|
||||
extern CORE_ADDR h8300_push_return_address (CORE_ADDR, CORE_ADDR);
|
||||
|
||||
#define PC_IN_CALL_DUMMY(PC, SP, FP) generic_pc_in_call_dummy (PC, SP, FP)
|
||||
#define FIX_CALL_DUMMY(DUMMY, START_SP, FUNADDR, NARGS, ARGS, TYPE, GCCP)
|
||||
|
@ -45,7 +45,7 @@
|
||||
to reach some "real" code. */
|
||||
|
||||
#define SKIP_PROLOGUE(ip) (h8500_skip_prologue (ip))
|
||||
extern CORE_ADDR h8500_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR h8500_skip_prologue (CORE_ADDR);
|
||||
|
||||
/* Immediately after a function call, return the saved pc.
|
||||
Can't always go through the frames for this because on some machines
|
||||
@ -53,7 +53,7 @@ extern CORE_ADDR h8500_skip_prologue PARAMS ((CORE_ADDR));
|
||||
some instructions. */
|
||||
|
||||
#define SAVED_PC_AFTER_CALL(frame) saved_pc_after_call()
|
||||
extern CORE_ADDR saved_pc_after_call PARAMS ((void));
|
||||
extern CORE_ADDR saved_pc_after_call (void);
|
||||
|
||||
/* Stack grows downward. */
|
||||
|
||||
@ -86,7 +86,7 @@ extern CORE_ADDR saved_pc_after_call PARAMS ((void));
|
||||
for register N. */
|
||||
|
||||
#define REGISTER_RAW_SIZE(N) h8500_register_size(N)
|
||||
extern int h8500_register_size PARAMS ((int regno));
|
||||
extern int h8500_register_size (int regno);
|
||||
|
||||
#define REGISTER_SIZE 4
|
||||
|
||||
@ -104,7 +104,7 @@ extern int h8500_register_size PARAMS ((int regno));
|
||||
of data in register N. */
|
||||
|
||||
#define REGISTER_VIRTUAL_TYPE(N) h8500_register_virtual_type(N)
|
||||
extern struct type *h8500_register_virtual_type PARAMS ((int regno));
|
||||
extern struct type *h8500_register_virtual_type (int regno);
|
||||
|
||||
/* Initializer for an array of names of registers.
|
||||
Entries beyond the first NUM_REGS are ignored. */
|
||||
@ -207,10 +207,10 @@ extern struct type *h8500_register_virtual_type PARAMS ((int regno));
|
||||
|
||||
#define FRAME_CHAIN(FRAME) h8500_frame_chain(FRAME)
|
||||
struct frame_info;
|
||||
extern CORE_ADDR h8500_frame_chain PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR h8500_frame_chain (struct frame_info *);
|
||||
|
||||
#define FRAME_SAVED_PC(FRAME) frame_saved_pc(FRAME)
|
||||
extern CORE_ADDR frame_saved_pc PARAMS ((struct frame_info * frame));
|
||||
extern CORE_ADDR frame_saved_pc (struct frame_info *frame);
|
||||
|
||||
#define FRAME_ARGS_ADDRESS(fi) ((fi)->frame)
|
||||
|
||||
@ -237,26 +237,27 @@ extern CORE_ADDR frame_saved_pc PARAMS ((struct frame_info * frame));
|
||||
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
|
||||
frame_find_saved_regs(frame_info, &(frame_saved_regs))
|
||||
struct frame_saved_regs;
|
||||
extern void frame_find_saved_regs PARAMS ((struct frame_info * frame_info, struct frame_saved_regs * frame_saved_regs));
|
||||
extern void frame_find_saved_regs (struct frame_info *frame_info,
|
||||
struct frame_saved_regs *frame_saved_regs);
|
||||
|
||||
|
||||
/* Discard from the stack the innermost frame, restoring all registers. */
|
||||
|
||||
#define POP_FRAME { h8500_pop_frame (); }
|
||||
extern void h8500_pop_frame PARAMS ((void));
|
||||
extern void h8500_pop_frame (void);
|
||||
|
||||
#define SHORT_INT_MAX 32767
|
||||
#define SHORT_INT_MIN -32768
|
||||
|
||||
typedef unsigned short INSN_WORD;
|
||||
|
||||
extern CORE_ADDR h8500_addr_bits_remove PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR h8500_addr_bits_remove (CORE_ADDR);
|
||||
#define ADDR_BITS_REMOVE(addr) h8500_addr_bits_remove (addr)
|
||||
|
||||
#define read_memory_short(x) (read_memory_integer(x,2) & 0xffff)
|
||||
|
||||
#define PRINT_REGISTER_HOOK(regno) print_register_hook(regno)
|
||||
extern void print_register_hook PARAMS ((int));
|
||||
extern void print_register_hook (int);
|
||||
|
||||
extern int minimum_mode;
|
||||
|
||||
@ -265,7 +266,7 @@ extern int minimum_mode;
|
||||
/* Fake variables to make it easy to use 24 bit register pointers */
|
||||
|
||||
#define IS_TRAPPED_INTERNALVAR h8500_is_trapped_internalvar
|
||||
extern int h8500_is_trapped_internalvar PARAMS ((char *name));
|
||||
extern int h8500_is_trapped_internalvar (char *name);
|
||||
|
||||
#define VALUE_OF_TRAPPED_INTERNALVAR h8500_value_of_trapped_internalvar
|
||||
extern struct value *h8500_value_of_trapped_internalvar ( /* struct internalvar *var */ );
|
||||
@ -273,14 +274,14 @@ extern struct value *h8500_value_of_trapped_internalvar ( /* struct internalvar
|
||||
#define SET_TRAPPED_INTERNALVAR h8500_set_trapped_internalvar
|
||||
extern void h8500_set_trapped_internalvar ( /* struct internalvar *var, value newval, int bitpos, int bitsize, int offset */ );
|
||||
|
||||
extern CORE_ADDR h8500_read_sp PARAMS ((void));
|
||||
extern void h8500_write_sp PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR h8500_read_sp (void);
|
||||
extern void h8500_write_sp (CORE_ADDR);
|
||||
|
||||
extern CORE_ADDR h8500_read_fp PARAMS ((void));
|
||||
extern void h8500_write_fp PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR h8500_read_fp (void);
|
||||
extern void h8500_write_fp (CORE_ADDR);
|
||||
|
||||
extern CORE_ADDR h8500_read_pc PARAMS ((int));
|
||||
extern void h8500_write_pc PARAMS ((CORE_ADDR, int));
|
||||
extern CORE_ADDR h8500_read_pc (int);
|
||||
extern void h8500_write_pc (CORE_ADDR, int);
|
||||
|
||||
#define TARGET_READ_SP() h8500_read_sp()
|
||||
#define TARGET_WRITE_SP(x) h8500_write_sp(x)
|
||||
|
@ -32,8 +32,7 @@
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
(addr) = i386_register_u_addr ((blockend),(regno));
|
||||
|
||||
extern int
|
||||
i386_register_u_addr PARAMS ((int, int));
|
||||
extern int i386_register_u_addr (int, int);
|
||||
|
||||
#define PTRACE_ARG3_TYPE char*
|
||||
|
||||
|
@ -33,8 +33,7 @@
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
(addr) = i386_register_u_addr ((blockend),(regno));
|
||||
|
||||
extern int
|
||||
i386_register_u_addr PARAMS ((int, int));
|
||||
extern int i386_register_u_addr (int, int);
|
||||
|
||||
/* When calling functions on SCO, sometimes we get an error writing some
|
||||
of the segment registers. This would appear to be a kernel
|
||||
|
@ -44,14 +44,14 @@
|
||||
step anyway. */
|
||||
#define CANNOT_STEP_HW_WATCHPOINTS
|
||||
|
||||
extern int procfs_stopped_by_watchpoint PARAMS ((int));
|
||||
extern int procfs_stopped_by_watchpoint (int);
|
||||
#define STOPPED_BY_WATCHPOINT(W) \
|
||||
procfs_stopped_by_watchpoint(inferior_pid)
|
||||
|
||||
/* Use these macros for watchpoint insertion/deletion. */
|
||||
/* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */
|
||||
|
||||
extern int procfs_set_watchpoint PARAMS ((int, CORE_ADDR, int, int, int));
|
||||
extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int);
|
||||
#define target_insert_watchpoint(ADDR, LEN, TYPE) \
|
||||
procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 1)
|
||||
#define target_remove_watchpoint(ADDR, LEN, TYPE) \
|
||||
|
@ -33,5 +33,4 @@
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
(addr) = i386_register_u_addr ((blockend),(regno));
|
||||
|
||||
extern int
|
||||
i386_register_u_addr PARAMS ((int, int));
|
||||
extern int i386_register_u_addr (int, int);
|
||||
|
@ -28,7 +28,7 @@
|
||||
/* Return sizeof user struct to callers in less machine dependent routines */
|
||||
|
||||
#define KERNEL_U_SIZE kernel_u_size()
|
||||
extern int kernel_u_size PARAMS ((void));
|
||||
extern int kernel_u_size (void);
|
||||
|
||||
#define U_REGS_OFFSET 0
|
||||
|
||||
@ -75,11 +75,8 @@ extern int kernel_u_size PARAMS ((void));
|
||||
/* Override child_resume in `infptrace.c'. */
|
||||
#define CHILD_RESUME
|
||||
|
||||
extern CORE_ADDR
|
||||
i386_stopped_by_watchpoint PARAMS ((int));
|
||||
extern int
|
||||
i386_insert_watchpoint PARAMS ((int pid, CORE_ADDR addr, int len, int rw));
|
||||
extern int
|
||||
i386_remove_watchpoint PARAMS ((int pid, CORE_ADDR addr, int len));
|
||||
extern CORE_ADDR i386_stopped_by_watchpoint (int);
|
||||
extern int i386_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw);
|
||||
extern int i386_remove_watchpoint (int pid, CORE_ADDR addr, int len);
|
||||
|
||||
#endif /* #ifndef NM_LINUX_H */
|
||||
|
@ -27,7 +27,6 @@
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
(addr) = i386_register_u_addr ((blockend),(regno));
|
||||
|
||||
extern int
|
||||
i386_register_u_addr PARAMS ((int, int));
|
||||
extern int i386_register_u_addr (int, int);
|
||||
|
||||
#endif /* NM_NBSD_H */
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
#define CHILD_WAIT
|
||||
struct target_waitstatus;
|
||||
extern int child_wait PARAMS ((int, struct target_waitstatus *));
|
||||
extern int child_wait (int, struct target_waitstatus *);
|
||||
|
||||
/*
|
||||
* ptx does attach as of ptx version 2.1. Prior to that, the interface
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
#ifdef _SEQUENT_
|
||||
#define CHILD_WAIT
|
||||
extern int child_wait PARAMS ((int, struct target_waitstatus *));
|
||||
extern int child_wait (int, struct target_waitstatus *);
|
||||
#endif
|
||||
|
||||
/* This is the amount to subtract from u.u_ar0
|
||||
|
@ -26,6 +26,6 @@
|
||||
|
||||
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) skip_trampoline_code (pc, name)
|
||||
#define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc, 0)
|
||||
extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR pc, char *name));
|
||||
extern CORE_ADDR skip_trampoline_code (CORE_ADDR pc, char *name);
|
||||
|
||||
extern char *cygwin_pid_to_str PARAMS ((int pid));
|
||||
extern char *cygwin_pid_to_str (int pid);
|
||||
|
@ -62,7 +62,7 @@ struct type;
|
||||
|
||||
#define SKIP_PROLOGUE(frompc) (i386_skip_prologue (frompc))
|
||||
|
||||
extern int i386_skip_prologue PARAMS ((int));
|
||||
extern int i386_skip_prologue (int);
|
||||
|
||||
/* Immediately after a function call, return the saved pc. Can't always go
|
||||
through the frames for this because on some machines the new frame is not
|
||||
@ -344,7 +344,7 @@ extern void i386_extract_return_value (struct type *type, char *regbuf,
|
||||
: read_memory_integer ((FRAME)->frame + 4, 4)) \
|
||||
)
|
||||
|
||||
extern CORE_ADDR sigtramp_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR sigtramp_saved_pc (struct frame_info *);
|
||||
|
||||
#define FRAME_ARGS_ADDRESS(fi) ((fi)->frame)
|
||||
|
||||
@ -355,7 +355,7 @@ extern CORE_ADDR sigtramp_saved_pc PARAMS ((struct frame_info *));
|
||||
|
||||
#define FRAME_NUM_ARGS(fi) (i386_frame_num_args(fi))
|
||||
|
||||
extern int i386_frame_num_args PARAMS ((struct frame_info *));
|
||||
extern int i386_frame_num_args (struct frame_info *);
|
||||
|
||||
/* Return number of bytes at start of arglist that are not really args. */
|
||||
|
||||
@ -367,7 +367,7 @@ extern int i386_frame_num_args PARAMS ((struct frame_info *));
|
||||
ways in the stack frame. sp is even more special:
|
||||
the address we return for it IS the sp for the next frame. */
|
||||
|
||||
extern void i386_frame_init_saved_regs PARAMS ((struct frame_info *));
|
||||
extern void i386_frame_init_saved_regs (struct frame_info *);
|
||||
#define FRAME_INIT_SAVED_REGS(FI) i386_frame_init_saved_regs (FI)
|
||||
|
||||
|
||||
@ -383,13 +383,13 @@ extern void i386_frame_init_saved_regs PARAMS ((struct frame_info *));
|
||||
|
||||
#define PUSH_DUMMY_FRAME { i386_push_dummy_frame (); }
|
||||
|
||||
extern void i386_push_dummy_frame PARAMS ((void));
|
||||
extern void i386_push_dummy_frame (void);
|
||||
|
||||
/* Discard from the stack the innermost frame, restoring all registers. */
|
||||
|
||||
#define POP_FRAME { i386_pop_frame (); }
|
||||
|
||||
extern void i386_pop_frame PARAMS ((void));
|
||||
extern void i386_pop_frame (void);
|
||||
|
||||
|
||||
/* this is
|
||||
@ -421,8 +421,8 @@ extern void i386_pop_frame PARAMS ((void));
|
||||
*((char *)(dummyname) + 4) = ((delta >> 24) & 0xff); \
|
||||
}
|
||||
|
||||
extern void print_387_control_word PARAMS ((unsigned int));
|
||||
extern void print_387_status_word PARAMS ((unsigned int));
|
||||
extern void print_387_control_word (unsigned int);
|
||||
extern void print_387_status_word (unsigned int);
|
||||
|
||||
/* Offset from SP to first arg on stack at first instruction of a function */
|
||||
|
||||
|
@ -41,8 +41,7 @@
|
||||
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
|
||||
This routine returns true on success */
|
||||
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
and for SunPRO 3.0, N_FUN symbols too. */
|
||||
#define SOFUN_ADDRESS_MAYBE_MISSING
|
||||
|
||||
extern char *sunpro_static_transform_name PARAMS ((char *));
|
||||
extern char *sunpro_static_transform_name (char *);
|
||||
#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
|
||||
#define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '.')
|
||||
|
||||
|
@ -90,7 +90,6 @@
|
||||
struct frame_info;
|
||||
struct frame_saved_regs;
|
||||
|
||||
extern int
|
||||
i386_frame_num_args PARAMS ((struct frame_info *));
|
||||
extern int i386_frame_num_args (struct frame_info *);
|
||||
|
||||
#endif /* ifndef TM_I386V_H */
|
||||
|
@ -55,8 +55,7 @@
|
||||
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
|
||||
This routine returns true on success */
|
||||
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
|
||||
@ -74,6 +73,6 @@ get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
/* Saved Pc. Get it from ucontext if within sigtramp. */
|
||||
|
||||
#define sigtramp_saved_pc i386v4_sigtramp_saved_pc
|
||||
extern CORE_ADDR i386v4_sigtramp_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR i386v4_sigtramp_saved_pc (struct frame_info *);
|
||||
|
||||
#endif /* ifndef TM_I386V4_H */
|
||||
|
@ -39,8 +39,7 @@ extern use_struct_convention_fn i386nbsd_use_struct_convention;
|
||||
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
|
||||
This routine returns true on success */
|
||||
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
|
||||
|
@ -139,8 +139,7 @@ since it uses host specific ptrace calls.
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
{ (addr) = ptx_register_u_addr((blockend), (regno)); }
|
||||
|
||||
extern int
|
||||
ptx_register_u_addr PARAMS ((int, int));
|
||||
extern int ptx_register_u_addr (int, int);
|
||||
|
||||
/* Total amount of space needed to store our copies of the machine's
|
||||
register state, the array `registers'. 10 i*86 registers, 8 i387
|
||||
|
@ -130,8 +130,7 @@
|
||||
i387_to_double ((FROM), (char *)&val); \
|
||||
store_floating ((TO), TYPE_LENGTH (TYPE), val); \
|
||||
}
|
||||
extern void
|
||||
i387_to_double PARAMS ((char *, char *));
|
||||
extern void i387_to_double (char *, char *);
|
||||
|
||||
/* Convert data from virtual format with type TYPE in buffer FROM
|
||||
to raw format for register REGNUM in buffer TO. */
|
||||
@ -142,8 +141,7 @@ i387_to_double PARAMS ((char *, char *));
|
||||
double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
|
||||
double_to_i387((char *)&val, (TO)); \
|
||||
}
|
||||
extern void
|
||||
double_to_i387 PARAMS ((char *, char *));
|
||||
extern void double_to_i387 (char *, char *);
|
||||
|
||||
/* Return the GDB type object for the "standard" data type
|
||||
of data in register N. */
|
||||
|
@ -55,7 +55,7 @@ struct frame_info;
|
||||
since it differs between Nindy, Mon960 and VxWorks, the currently supported
|
||||
target types. */
|
||||
|
||||
extern int mon960_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
|
||||
extern int mon960_frame_chain_valid (CORE_ADDR, struct frame_info *);
|
||||
#define FRAME_CHAIN_VALID(chain, thisframe) mon960_frame_chain_valid (chain, thisframe)
|
||||
|
||||
/* Sequence of bytes for breakpoint instruction */
|
||||
|
@ -89,7 +89,7 @@ extern void
|
||||
since it differs between NINDY and VxWorks, the two currently supported
|
||||
targets types. */
|
||||
|
||||
extern int nindy_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
|
||||
extern int nindy_frame_chain_valid (CORE_ADDR, struct frame_info *);
|
||||
#define FRAME_CHAIN_VALID(chain, thisframe) nindy_frame_chain_valid (chain, thisframe)
|
||||
|
||||
extern int
|
||||
|
@ -107,15 +107,15 @@ struct value;
|
||||
int using_frame_pointer;
|
||||
|
||||
|
||||
extern void m32r_init_extra_frame_info PARAMS ((struct frame_info * fi));
|
||||
extern void m32r_init_extra_frame_info (struct frame_info *fi);
|
||||
/* mvs_check INIT_EXTRA_FRAME_INFO */
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) m32r_init_extra_frame_info (fi)
|
||||
/* mvs_no_check INIT_FRAME_PC */
|
||||
#define INIT_FRAME_PC /* Not necessary */
|
||||
|
||||
extern void
|
||||
m32r_frame_find_saved_regs PARAMS ((struct frame_info * fi,
|
||||
struct frame_saved_regs * regaddr));
|
||||
m32r_frame_find_saved_regs (struct frame_info *fi,
|
||||
struct frame_saved_regs *regaddr);
|
||||
|
||||
/* Put here the code to store, into a struct frame_saved_regs,
|
||||
the addresses of the saved registers of frame described by FRAME_INFO.
|
||||
@ -127,15 +127,14 @@ m32r_frame_find_saved_regs PARAMS ((struct frame_info * fi,
|
||||
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
|
||||
m32r_frame_find_saved_regs(frame_info, &(frame_saved_regs))
|
||||
|
||||
extern CORE_ADDR m32r_frame_chain PARAMS ((struct frame_info * fi));
|
||||
extern CORE_ADDR m32r_frame_chain (struct frame_info *fi);
|
||||
/* mvs_check FRAME_CHAIN */
|
||||
#define FRAME_CHAIN(fi) m32r_frame_chain (fi)
|
||||
|
||||
#define FRAME_CHAIN_VALID(fp, frame) generic_file_frame_chain_valid (fp, frame)
|
||||
|
||||
extern CORE_ADDR m32r_find_callers_reg PARAMS ((struct frame_info * fi,
|
||||
int regnum));
|
||||
extern CORE_ADDR m32r_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR m32r_find_callers_reg (struct frame_info *fi, int regnum);
|
||||
extern CORE_ADDR m32r_frame_saved_pc (struct frame_info *);
|
||||
/* mvs_check FRAME_SAVED_PC */
|
||||
#define FRAME_SAVED_PC(fi) m32r_frame_saved_pc (fi)
|
||||
|
||||
@ -152,7 +151,7 @@ extern CORE_ADDR m32r_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
((TYPE_LENGTH (TYPE) > 4 ? 8:4) - TYPE_LENGTH (TYPE)),\
|
||||
(VALBUF), TYPE_LENGTH (TYPE));
|
||||
|
||||
extern CORE_ADDR m32r_skip_prologue PARAMS ((CORE_ADDR pc));
|
||||
extern CORE_ADDR m32r_skip_prologue (CORE_ADDR pc);
|
||||
/* mvs_check SKIP_PROLOGUE */
|
||||
#define SKIP_PROLOGUE(pc) (m32r_skip_prologue (pc))
|
||||
|
||||
@ -198,19 +197,19 @@ extern use_struct_convention_fn m32r_use_struct_convention;
|
||||
|
||||
/* target-specific dummy_frame stuff */
|
||||
|
||||
extern struct frame_info *m32r_pop_frame PARAMS ((struct frame_info * frame));
|
||||
extern struct frame_info *m32r_pop_frame (struct frame_info *frame);
|
||||
/* mvs_check POP_FRAME */
|
||||
#define POP_FRAME m32r_pop_frame (get_current_frame ())
|
||||
|
||||
/* mvs_no_check STACK_ALIGN */
|
||||
/* #define STACK_ALIGN(x) ((x + 3) & ~3) */
|
||||
|
||||
extern CORE_ADDR m32r_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
|
||||
extern CORE_ADDR m32r_push_arguments PARAMS ((int nargs,
|
||||
struct value ** args,
|
||||
CORE_ADDR sp,
|
||||
unsigned char struct_return,
|
||||
CORE_ADDR struct_addr));
|
||||
extern CORE_ADDR m32r_push_return_address (CORE_ADDR, CORE_ADDR);
|
||||
extern CORE_ADDR m32r_push_arguments (int nargs,
|
||||
struct value **args,
|
||||
CORE_ADDR sp,
|
||||
unsigned char struct_return,
|
||||
CORE_ADDR struct_addr);
|
||||
|
||||
|
||||
|
||||
|
@ -23,8 +23,7 @@
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
(addr) = dpx2_register_u_addr ((blockend),(regno));
|
||||
|
||||
extern int
|
||||
dpx2_register_u_addr PARAMS ((int, int));
|
||||
extern int dpx2_register_u_addr (int, int);
|
||||
|
||||
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
|
||||
#define ONE_PROCESS_WRITETEXT
|
||||
|
@ -26,14 +26,13 @@
|
||||
/* Return sizeof user struct to callers in less machine dependent routines */
|
||||
|
||||
#define KERNEL_U_SIZE kernel_u_size()
|
||||
extern int kernel_u_size PARAMS ((void));
|
||||
extern int kernel_u_size (void);
|
||||
|
||||
#define U_REGS_OFFSET 0
|
||||
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
(addr) = m68k_linux_register_u_addr ((blockend),(regno));
|
||||
|
||||
extern int
|
||||
m68k_linux_register_u_addr PARAMS ((int, int));
|
||||
extern int m68k_linux_register_u_addr (int, int);
|
||||
|
||||
#endif /* #ifndef NM_LINUX_H */
|
||||
|
Binary file not shown.
@ -48,7 +48,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* BFD handles finding the registers in the core file, so they are at
|
||||
the start of the BFD .reg section. */
|
||||
|
@ -76,7 +76,7 @@
|
||||
/* Return number of args passed to a frame.
|
||||
Can return -1, meaning no way to tell. */
|
||||
|
||||
extern int delta68_frame_num_args PARAMS ((struct frame_info * fi));
|
||||
extern int delta68_frame_num_args (struct frame_info *fi);
|
||||
#define FRAME_NUM_ARGS(fi) (delta68_frame_num_args ((fi)))
|
||||
|
||||
/* On M68040 versions of sysV68 R3V7.1, ptrace(PT_WRITE_I) does not clear
|
||||
@ -93,13 +93,13 @@ extern int delta68_frame_num_args PARAMS ((struct frame_info * fi));
|
||||
#define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF)\
|
||||
(*(CORE_ADDR *)((char*)(REGBUF) + 8 * 4))
|
||||
|
||||
extern int delta68_in_sigtramp PARAMS ((CORE_ADDR pc, char * name));
|
||||
extern int delta68_in_sigtramp (CORE_ADDR pc, char *name);
|
||||
#define IN_SIGTRAMP(pc,name) delta68_in_sigtramp (pc, name)
|
||||
|
||||
extern CORE_ADDR delta68_frame_saved_pc PARAMS ((struct frame_info * fi));
|
||||
extern CORE_ADDR delta68_frame_saved_pc (struct frame_info *fi);
|
||||
#undef FRAME_SAVED_PC
|
||||
#define FRAME_SAVED_PC(fi) delta68_frame_saved_pc (fi)
|
||||
|
||||
extern CORE_ADDR delta68_frame_args_address PARAMS ((struct frame_info * fi));
|
||||
extern CORE_ADDR delta68_frame_args_address (struct frame_info *fi);
|
||||
#undef FRAME_ARGS_ADDRESS
|
||||
#define FRAME_ARGS_ADDRESS(fi) delta68_frame_args_address (fi)
|
||||
|
@ -57,4 +57,4 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
@ -42,7 +42,7 @@
|
||||
/* Return number of args passed to a frame.
|
||||
Can return -1, meaning no way to tell. */
|
||||
|
||||
extern int isi_frame_num_args PARAMS ((struct frame_info * fi));
|
||||
extern int isi_frame_num_args (struct frame_info *fi);
|
||||
#define FRAME_NUM_ARGS(fi) (isi_frame_num_args ((fi)))
|
||||
|
||||
/* Put here the code to store, into a struct frame_saved_regs,
|
||||
@ -122,7 +122,7 @@ retry: \
|
||||
/* The only reason this is here is the tm-isi.h reference below. It
|
||||
was moved back here from tm-m68k.h. FIXME? */
|
||||
|
||||
extern CORE_ADDR isi_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR isi_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(pc) (isi_skip_prologue (pc))
|
||||
|
||||
#include "m68k/tm-m68k.h"
|
||||
|
@ -104,7 +104,7 @@
|
||||
? sigtramp_saved_pc (FRAME) \
|
||||
: read_memory_integer ((FRAME)->frame + 4, 4)))
|
||||
|
||||
extern CORE_ADDR sigtramp_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR sigtramp_saved_pc (struct frame_info *);
|
||||
|
||||
#define IN_SIGTRAMP(pc,name) in_sigtramp (pc)
|
||||
extern int in_sigtramp PARAMS ((CORE_ADDR pc));
|
||||
extern int in_sigtramp (CORE_ADDR pc);
|
||||
|
@ -36,7 +36,7 @@
|
||||
#if !defined(SKIP_PROLOGUE)
|
||||
#define SKIP_PROLOGUE(ip) (m68k_skip_prologue (ip))
|
||||
#endif
|
||||
extern CORE_ADDR m68k_skip_prologue PARAMS ((CORE_ADDR ip));
|
||||
extern CORE_ADDR m68k_skip_prologue (CORE_ADDR ip);
|
||||
|
||||
/* Immediately after a function call, return the saved pc.
|
||||
Can't always go through the frames for this because on some machines
|
||||
@ -46,8 +46,9 @@ extern CORE_ADDR m68k_skip_prologue PARAMS ((CORE_ADDR ip));
|
||||
struct frame_info;
|
||||
struct frame_saved_regs;
|
||||
|
||||
extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
|
||||
extern void m68k_find_saved_regs PARAMS ((struct frame_info *, struct frame_saved_regs *));
|
||||
extern CORE_ADDR m68k_saved_pc_after_call (struct frame_info *);
|
||||
extern void m68k_find_saved_regs (struct frame_info *,
|
||||
struct frame_saved_regs *);
|
||||
|
||||
#define SAVED_PC_AFTER_CALL(frame) \
|
||||
m68k_saved_pc_after_call(frame)
|
||||
@ -372,9 +373,9 @@ do \
|
||||
|
||||
#define PUSH_DUMMY_FRAME { m68k_push_dummy_frame (); }
|
||||
|
||||
extern void m68k_push_dummy_frame PARAMS ((void));
|
||||
extern void m68k_push_dummy_frame (void);
|
||||
|
||||
extern void m68k_pop_frame PARAMS ((void));
|
||||
extern void m68k_pop_frame (void);
|
||||
|
||||
/* Discard from the stack the innermost frame, restoring all registers. */
|
||||
|
||||
|
@ -65,7 +65,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* Convert a DWARF register number to a gdb REGNUM. */
|
||||
#define DWARF_REG_TO_REGNUM(num) ((num) < 16 ? (num) : (num)+FP0_REGNUM-16)
|
||||
|
@ -60,7 +60,7 @@
|
||||
/* Return number of args passed to a frame.
|
||||
Can return -1, meaning no way to tell. */
|
||||
|
||||
extern int news_frame_num_args PARAMS ((struct frame_info * fi));
|
||||
extern int news_frame_num_args (struct frame_info *fi);
|
||||
#define FRAME_NUM_ARGS(fi) (news_frame_num_args ((fi)))
|
||||
|
||||
#include "m68k/tm-m68k.h"
|
||||
|
@ -75,7 +75,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* If sun3 pcc says that a parameter is a short, it's a short. */
|
||||
#define BELIEVE_PCC_PROMOTION_TYPE
|
||||
|
@ -77,7 +77,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* Number of registers in a ptrace_getregs call. */
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
|
||||
#define ONE_PROCESS_WRITETEXT
|
||||
|
||||
extern char *strdup PARAMS ((const char *));
|
||||
extern char *strdup (const char *);
|
||||
|
||||
/* Interface definitions for kernel debugger KDB. */
|
||||
|
||||
|
@ -53,7 +53,7 @@ extern void init_extra_frame_info ();
|
||||
/* Advance PC across any function entry prologue instructions
|
||||
to reach some "real" code. */
|
||||
|
||||
extern CORE_ADDR m88k_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR m88k_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(frompc) (m88k_skip_prologue (frompc))
|
||||
|
||||
/* The m88k kernel aligns all instructions on 4-byte boundaries. The
|
||||
@ -63,7 +63,7 @@ extern CORE_ADDR m88k_skip_prologue PARAMS ((CORE_ADDR));
|
||||
to realize that those two bits are not really a part of the address
|
||||
of an instruction. Shrug. */
|
||||
|
||||
extern CORE_ADDR m88k_addr_bits_remove PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR m88k_addr_bits_remove (CORE_ADDR);
|
||||
#define ADDR_BITS_REMOVE(addr) m88k_addr_bits_remove (addr)
|
||||
|
||||
/* Immediately after a function call, return the saved pc.
|
||||
@ -508,8 +508,8 @@ extern CORE_ADDR frame_locals_address ();
|
||||
struct frame_saved_regs;
|
||||
struct frame_info;
|
||||
|
||||
void frame_find_saved_regs PARAMS ((struct frame_info * fi,
|
||||
struct frame_saved_regs * fsr));
|
||||
void frame_find_saved_regs (struct frame_info *fi,
|
||||
struct frame_saved_regs *fsr);
|
||||
|
||||
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
|
||||
frame_find_saved_regs (frame_info, &frame_saved_regs)
|
||||
|
@ -124,13 +124,13 @@ extern void mcore_pop_frame (struct frame_info *fi);
|
||||
#define SIZEOF_CALL_DUMMY_WORDS 0
|
||||
#define SAVE_DUMMY_FRAME_TOS(SP) generic_save_dummy_frame_tos (SP)
|
||||
|
||||
extern CORE_ADDR mcore_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
|
||||
extern CORE_ADDR mcore_push_return_address (CORE_ADDR, CORE_ADDR);
|
||||
#define PUSH_RETURN_ADDRESS(PC, SP) mcore_push_return_address (PC, SP)
|
||||
|
||||
#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
|
||||
|
||||
extern CORE_ADDR mcore_push_arguments PARAMS ((int, struct value **, CORE_ADDR,
|
||||
unsigned char, CORE_ADDR));
|
||||
extern CORE_ADDR mcore_push_arguments (int, struct value **, CORE_ADDR,
|
||||
unsigned char, CORE_ADDR);
|
||||
#define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \
|
||||
(SP) = mcore_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR)
|
||||
|
||||
@ -149,7 +149,7 @@ extern use_struct_convention_fn mcore_use_struct_convention;
|
||||
generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
|
||||
|
||||
/* Cons up virtual frame pointer for trace */
|
||||
extern void mcore_virtual_frame_pointer PARAMS ((CORE_ADDR, long *, long *));
|
||||
extern void mcore_virtual_frame_pointer (CORE_ADDR, long *, long *);
|
||||
#define TARGET_VIRTUAL_FRAME_POINTER(PC, REGP, OFFP) \
|
||||
mcore_virtual_frame_pointer ((PC), (REGP), (OFFP))
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
/* Is this really true or is this just a leftover from a DECstation
|
||||
config file? */
|
||||
|
@ -51,7 +51,7 @@
|
||||
|
||||
#define STOPPED_BY_WATCHPOINT(W) \
|
||||
procfs_stopped_by_watchpoint(inferior_pid)
|
||||
extern int procfs_stopped_by_watchpoint PARAMS ((int));
|
||||
extern int procfs_stopped_by_watchpoint (int);
|
||||
|
||||
#define HAVE_NONSTEPPABLE_WATCHPOINT
|
||||
|
||||
@ -61,6 +61,6 @@ extern int procfs_stopped_by_watchpoint PARAMS ((int));
|
||||
procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 0)
|
||||
#define target_remove_watchpoint(ADDR, LEN, TYPE) \
|
||||
procfs_set_watchpoint (inferior_pid, ADDR, 0, 0, 0)
|
||||
extern int procfs_set_watchpoint PARAMS ((int, CORE_ADDR, int, int, int));
|
||||
extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int);
|
||||
|
||||
#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#define STOPPED_BY_WATCHPOINT(W) \
|
||||
procfs_stopped_by_watchpoint(inferior_pid)
|
||||
extern int procfs_stopped_by_watchpoint PARAMS ((int));
|
||||
extern int procfs_stopped_by_watchpoint (int);
|
||||
|
||||
#define HAVE_NONSTEPPABLE_WATCHPOINT
|
||||
|
||||
@ -42,6 +42,6 @@ extern int procfs_stopped_by_watchpoint PARAMS ((int));
|
||||
procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 0)
|
||||
#define target_remove_watchpoint(ADDR, LEN, TYPE) \
|
||||
procfs_set_watchpoint (inferior_pid, ADDR, 0, 0, 0)
|
||||
extern int procfs_set_watchpoint PARAMS ((int, CORE_ADDR, int, int, int));
|
||||
extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int);
|
||||
|
||||
#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1
|
||||
|
@ -30,4 +30,4 @@
|
||||
This routine returns true on success */
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
extern int get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
@ -33,11 +33,11 @@
|
||||
|
||||
#define target_insert_watchpoint(addr, len, type) \
|
||||
remote_mips_set_watchpoint (addr, len, type)
|
||||
int remote_mips_set_watchpoint PARAMS ((CORE_ADDR addr, int len, int type));
|
||||
int remote_mips_set_watchpoint (CORE_ADDR addr, int len, int type);
|
||||
|
||||
#define target_remove_watchpoint(addr, len, type) \
|
||||
remote_mips_remove_watchpoint (addr, len, type)
|
||||
int remote_mips_remove_watchpoint PARAMS ((CORE_ADDR addr, int len, int type));
|
||||
int remote_mips_remove_watchpoint (CORE_ADDR addr, int len, int type);
|
||||
|
||||
/* We need to remove watchpoints when stepping, else we hit them again! */
|
||||
|
||||
@ -48,4 +48,4 @@ int remote_mips_stopped_by_watchpoint (void);
|
||||
|
||||
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
|
||||
remote_mips_can_use_hardware_watchpoint(cnt)
|
||||
int remote_mips_can_use_hardware_watchpoint PARAMS ((int cnt));
|
||||
int remote_mips_can_use_hardware_watchpoint (int cnt);
|
||||
|
@ -68,7 +68,7 @@ struct value;
|
||||
/* Remove useless bits from an instruction address. */
|
||||
|
||||
#define ADDR_BITS_REMOVE(addr) mips_addr_bits_remove(addr)
|
||||
CORE_ADDR mips_addr_bits_remove PARAMS ((CORE_ADDR addr));
|
||||
CORE_ADDR mips_addr_bits_remove (CORE_ADDR addr);
|
||||
|
||||
/* Remove useless bits from the stack pointer. */
|
||||
|
||||
@ -83,11 +83,11 @@ CORE_ADDR mips_addr_bits_remove PARAMS ((CORE_ADDR addr));
|
||||
to reach some "real" code. */
|
||||
|
||||
#define SKIP_PROLOGUE(pc) (mips_skip_prologue (pc, 0))
|
||||
extern CORE_ADDR mips_skip_prologue PARAMS ((CORE_ADDR addr, int lenient));
|
||||
extern CORE_ADDR mips_skip_prologue (CORE_ADDR addr, int lenient);
|
||||
|
||||
/* Return non-zero if PC points to an instruction which will cause a step
|
||||
to execute both the instruction at PC and an instruction at PC+4. */
|
||||
extern int mips_step_skips_delay PARAMS ((CORE_ADDR));
|
||||
extern int mips_step_skips_delay (CORE_ADDR);
|
||||
#define STEP_SKIPS_DELAY_P (1)
|
||||
#define STEP_SKIPS_DELAY(pc) (mips_step_skips_delay (pc))
|
||||
|
||||
@ -100,7 +100,7 @@ extern int mips_step_skips_delay PARAMS ((CORE_ADDR));
|
||||
|
||||
/* Are we currently handling a signal */
|
||||
|
||||
extern int in_sigtramp PARAMS ((CORE_ADDR, char *));
|
||||
extern int in_sigtramp (CORE_ADDR, char *);
|
||||
#define IN_SIGTRAMP(pc, name) in_sigtramp(pc, name)
|
||||
|
||||
/* Stack grows downward. */
|
||||
@ -150,7 +150,7 @@ extern breakpoint_from_pc_fn mips_breakpoint_from_pc;
|
||||
|
||||
/* Given the register index, return the name of the corresponding
|
||||
register. */
|
||||
extern char *mips_register_name PARAMS ((int regnr));
|
||||
extern char *mips_register_name (int regnr);
|
||||
#define REGISTER_NAME(i) mips_register_name (i)
|
||||
|
||||
/* Initializer for an array of names of registers.
|
||||
@ -216,7 +216,7 @@ extern char *mips_register_name PARAMS ((int regnr));
|
||||
of register dumps. */
|
||||
|
||||
#define DO_REGISTERS_INFO(_regnum, fp) mips_do_registers_info(_regnum, fp)
|
||||
extern void mips_do_registers_info PARAMS ((int, int));
|
||||
extern void mips_do_registers_info (int, int);
|
||||
|
||||
/* Total amount of space needed to store our copies of the machine's
|
||||
register state, the array `registers'. */
|
||||
@ -232,7 +232,7 @@ extern void mips_do_registers_info PARAMS ((int, int));
|
||||
register N. NOTE: This indirectly defines the register size
|
||||
transfered by the GDB protocol. */
|
||||
|
||||
extern int mips_register_raw_size PARAMS ((int reg_nr));
|
||||
extern int mips_register_raw_size (int reg_nr);
|
||||
#define REGISTER_RAW_SIZE(N) (mips_register_raw_size ((N)))
|
||||
|
||||
|
||||
@ -242,15 +242,17 @@ extern int mips_register_raw_size PARAMS ((int reg_nr));
|
||||
really 32 bit registers. This is a legacy of the 64 bit MIPS GDB
|
||||
protocol which transfers 64 bits for 32 bit registers. */
|
||||
|
||||
extern int mips_register_convertible PARAMS ((int reg_nr));
|
||||
extern int mips_register_convertible (int reg_nr);
|
||||
#define REGISTER_CONVERTIBLE(N) (mips_register_convertible ((N)))
|
||||
|
||||
|
||||
void mips_register_convert_to_virtual PARAMS ((int reg_nr, struct type *virtual_type, char *raw_buf, char *virt_buf));
|
||||
void mips_register_convert_to_virtual (int reg_nr, struct type *virtual_type,
|
||||
char *raw_buf, char *virt_buf);
|
||||
#define REGISTER_CONVERT_TO_VIRTUAL(N,VIRTUAL_TYPE,RAW_BUF,VIRT_BUF) \
|
||||
mips_register_convert_to_virtual (N,VIRTUAL_TYPE,RAW_BUF,VIRT_BUF)
|
||||
|
||||
void mips_register_convert_to_raw PARAMS ((struct type *virtual_type, int reg_nr, char *virt_buf, char *raw_buf));
|
||||
void mips_register_convert_to_raw (struct type *virtual_type, int reg_nr,
|
||||
char *virt_buf, char *raw_buf);
|
||||
#define REGISTER_CONVERT_TO_RAW(VIRTUAL_TYPE,N,VIRT_BUF,RAW_BUF) \
|
||||
mips_register_convert_to_raw (VIRTUAL_TYPE,N,VIRT_BUF,RAW_BUF)
|
||||
|
||||
@ -317,15 +319,14 @@ void mips_register_convert_to_raw PARAMS ((struct type *virtual_type, int reg_nr
|
||||
|
||||
#define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
|
||||
mips_extract_return_value(TYPE, REGBUF, VALBUF)
|
||||
extern void
|
||||
mips_extract_return_value PARAMS ((struct type *, char[], char *));
|
||||
extern void mips_extract_return_value (struct type *, char[], char *);
|
||||
|
||||
/* Write into appropriate registers a function return value
|
||||
of type TYPE, given in virtual format. */
|
||||
|
||||
#define STORE_RETURN_VALUE(TYPE,VALBUF) \
|
||||
mips_store_return_value(TYPE, VALBUF)
|
||||
extern void mips_store_return_value PARAMS ((struct type *, char *));
|
||||
extern void mips_store_return_value (struct type *, char *);
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state
|
||||
the address in which a function should return its structure value,
|
||||
@ -349,7 +350,7 @@ extern use_struct_convention_fn mips_use_struct_convention;
|
||||
and produces the frame's chain-pointer. */
|
||||
|
||||
#define FRAME_CHAIN(thisframe) (CORE_ADDR) mips_frame_chain (thisframe)
|
||||
extern CORE_ADDR mips_frame_chain PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR mips_frame_chain (struct frame_info *);
|
||||
|
||||
/* Define other aspects of the stack frame. */
|
||||
|
||||
@ -364,7 +365,7 @@ extern CORE_ADDR mips_frame_chain PARAMS ((struct frame_info *));
|
||||
/* Saved Pc. */
|
||||
|
||||
#define FRAME_SAVED_PC(FRAME) (mips_frame_saved_pc(FRAME))
|
||||
extern CORE_ADDR mips_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR mips_frame_saved_pc (struct frame_info *);
|
||||
|
||||
#define FRAME_ARGS_ADDRESS(fi) (fi)->frame
|
||||
|
||||
@ -374,7 +375,7 @@ extern CORE_ADDR mips_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
Can return -1, meaning no way to tell. */
|
||||
|
||||
#define FRAME_NUM_ARGS(fi) (mips_frame_num_args(fi))
|
||||
extern int mips_frame_num_args PARAMS ((struct frame_info *));
|
||||
extern int mips_frame_num_args (struct frame_info *);
|
||||
|
||||
/* Return number of bytes at start of arglist that are not really args. */
|
||||
|
||||
@ -392,7 +393,7 @@ extern int mips_frame_num_args PARAMS ((struct frame_info *));
|
||||
mips_find_saved_regs (frame_info); \
|
||||
(frame_info)->saved_regs[SP_REGNUM] = (frame_info)->frame; \
|
||||
} while (0)
|
||||
extern void mips_find_saved_regs PARAMS ((struct frame_info *));
|
||||
extern void mips_find_saved_regs (struct frame_info *);
|
||||
|
||||
|
||||
/* Things needed for making the inferior call functions. */
|
||||
@ -401,22 +402,23 @@ extern void mips_find_saved_regs PARAMS ((struct frame_info *));
|
||||
function calls. We don't need STACK_ALIGN, PUSH_ARGUMENTS will
|
||||
handle it. */
|
||||
|
||||
extern CORE_ADDR mips_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR));
|
||||
extern CORE_ADDR mips_push_arguments (int, struct value **, CORE_ADDR, int,
|
||||
CORE_ADDR);
|
||||
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
|
||||
(mips_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)))
|
||||
|
||||
extern CORE_ADDR mips_push_return_address PARAMS ((CORE_ADDR pc, CORE_ADDR sp));
|
||||
extern CORE_ADDR mips_push_return_address (CORE_ADDR pc, CORE_ADDR sp);
|
||||
#define PUSH_RETURN_ADDRESS(PC, SP) (mips_push_return_address ((PC), (SP)))
|
||||
|
||||
/* Push an empty stack frame, to record the current PC, etc. */
|
||||
|
||||
#define PUSH_DUMMY_FRAME mips_push_dummy_frame()
|
||||
extern void mips_push_dummy_frame PARAMS ((void));
|
||||
extern void mips_push_dummy_frame (void);
|
||||
|
||||
/* Discard from the stack the innermost frame, restoring all registers. */
|
||||
|
||||
#define POP_FRAME mips_pop_frame()
|
||||
extern void mips_pop_frame PARAMS ((void));
|
||||
extern void mips_pop_frame (void);
|
||||
|
||||
#if !GDB_MULTI_ARCH
|
||||
#define CALL_DUMMY { 0 }
|
||||
@ -436,7 +438,7 @@ extern void mips_pop_frame PARAMS ((void));
|
||||
#define CALL_DUMMY_LOCATION AT_ENTRY_POINT
|
||||
|
||||
#define CALL_DUMMY_ADDRESS() (mips_call_dummy_address ())
|
||||
extern CORE_ADDR mips_call_dummy_address PARAMS ((void));
|
||||
extern CORE_ADDR mips_call_dummy_address (void);
|
||||
|
||||
/* There's a mess in stack frame creation. See comments in blockframe.c
|
||||
near reference to INIT_FRAME_PC_FIRST. */
|
||||
@ -445,13 +447,13 @@ extern CORE_ADDR mips_call_dummy_address PARAMS ((void));
|
||||
|
||||
#define INIT_FRAME_PC_FIRST(fromleaf, prev) \
|
||||
mips_init_frame_pc_first(fromleaf, prev)
|
||||
extern void mips_init_frame_pc_first PARAMS ((int, struct frame_info *));
|
||||
extern void mips_init_frame_pc_first (int, struct frame_info *);
|
||||
|
||||
/* Special symbol found in blocks associated with routines. We can hang
|
||||
mips_extra_func_info_t's off of this. */
|
||||
|
||||
#define MIPS_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
|
||||
extern void ecoff_relocate_efi PARAMS ((struct symbol *, CORE_ADDR));
|
||||
extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
|
||||
|
||||
/* Specific information about a procedure.
|
||||
This overlays the MIPS's PDR records,
|
||||
@ -466,11 +468,11 @@ typedef struct mips_extra_func_info
|
||||
}
|
||||
*mips_extra_func_info_t;
|
||||
|
||||
extern void mips_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info *));
|
||||
extern void mips_init_extra_frame_info (int fromleaf, struct frame_info *);
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, fci) \
|
||||
mips_init_extra_frame_info(fromleaf, fci)
|
||||
|
||||
extern void mips_print_extra_frame_info PARAMS ((struct frame_info * frame));
|
||||
extern void mips_print_extra_frame_info (struct frame_info *frame);
|
||||
#define PRINT_EXTRA_FRAME_INFO(fi) \
|
||||
mips_print_extra_frame_info (fi)
|
||||
|
||||
@ -488,7 +490,7 @@ extern void mips_print_extra_frame_info PARAMS ((struct frame_info * frame));
|
||||
but there is nothing we can do about that). */
|
||||
|
||||
#define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv)
|
||||
extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
|
||||
extern struct frame_info *setup_arbitrary_frame (int, CORE_ADDR *);
|
||||
|
||||
/* Convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */
|
||||
|
||||
@ -521,20 +523,20 @@ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *));
|
||||
|
||||
/* These are defined in mdebugread.c and are used in mips-tdep.c */
|
||||
extern CORE_ADDR sigtramp_address, sigtramp_end;
|
||||
extern void fixup_sigtramp PARAMS ((void));
|
||||
extern void fixup_sigtramp (void);
|
||||
|
||||
/* Defined in mips-tdep.c and used in remote-mips.c */
|
||||
extern char *mips_read_processor_type PARAMS ((void));
|
||||
extern char *mips_read_processor_type (void);
|
||||
|
||||
/* Functions for dealing with MIPS16 call and return stubs. */
|
||||
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) mips_in_call_stub (pc, name)
|
||||
#define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) mips_in_return_stub (pc, name)
|
||||
#define SKIP_TRAMPOLINE_CODE(pc) mips_skip_stub (pc)
|
||||
#define IGNORE_HELPER_CALL(pc) mips_ignore_helper (pc)
|
||||
extern int mips_in_call_stub PARAMS ((CORE_ADDR pc, char *name));
|
||||
extern int mips_in_return_stub PARAMS ((CORE_ADDR pc, char *name));
|
||||
extern CORE_ADDR mips_skip_stub PARAMS ((CORE_ADDR pc));
|
||||
extern int mips_ignore_helper PARAMS ((CORE_ADDR pc));
|
||||
extern int mips_in_call_stub (CORE_ADDR pc, char *name);
|
||||
extern int mips_in_return_stub (CORE_ADDR pc, char *name);
|
||||
extern CORE_ADDR mips_skip_stub (CORE_ADDR pc);
|
||||
extern int mips_ignore_helper (CORE_ADDR pc);
|
||||
|
||||
#ifndef TARGET_MIPS
|
||||
#define TARGET_MIPS
|
||||
|
@ -99,20 +99,20 @@ struct value;
|
||||
|
||||
#define EXTRA_FRAME_INFO struct frame_saved_regs fsr; int status; int stack_size;
|
||||
|
||||
extern void mn10200_init_extra_frame_info PARAMS ((struct frame_info *));
|
||||
extern void mn10200_init_extra_frame_info (struct frame_info *);
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) mn10200_init_extra_frame_info (fi)
|
||||
#define INIT_FRAME_PC(x,y)
|
||||
|
||||
extern void mn10200_frame_find_saved_regs PARAMS ((struct frame_info *,
|
||||
struct frame_saved_regs *));
|
||||
extern void mn10200_frame_find_saved_regs (struct frame_info *,
|
||||
struct frame_saved_regs *);
|
||||
#define FRAME_FIND_SAVED_REGS(fi, regaddr) regaddr = fi->fsr
|
||||
|
||||
extern CORE_ADDR mn10200_frame_chain PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR mn10200_frame_chain (struct frame_info *);
|
||||
#define FRAME_CHAIN(fi) mn10200_frame_chain (fi)
|
||||
#define FRAME_CHAIN_VALID(FP, FI) generic_file_frame_chain_valid (FP, FI)
|
||||
|
||||
extern CORE_ADDR mn10200_find_callers_reg PARAMS ((struct frame_info *, int));
|
||||
extern CORE_ADDR mn10200_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR mn10200_find_callers_reg (struct frame_info *, int);
|
||||
extern CORE_ADDR mn10200_frame_saved_pc (struct frame_info *);
|
||||
#define FRAME_SAVED_PC(FI) (mn10200_frame_saved_pc (FI))
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state
|
||||
@ -166,7 +166,7 @@ extern CORE_ADDR mn10200_store_struct_return (CORE_ADDR addr, CORE_ADDR sp);
|
||||
#define STORE_STRUCT_RETURN(STRUCT_ADDR, SP) \
|
||||
(SP) = mn10200_store_struct_return (STRUCT_ADDR, SP)
|
||||
|
||||
extern CORE_ADDR mn10200_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR mn10200_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(pc) (mn10200_skip_prologue (pc))
|
||||
|
||||
#define FRAME_ARGS_SKIP 0
|
||||
@ -175,7 +175,7 @@ extern CORE_ADDR mn10200_skip_prologue PARAMS ((CORE_ADDR));
|
||||
#define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame)
|
||||
#define FRAME_NUM_ARGS(fi) (-1)
|
||||
|
||||
extern void mn10200_pop_frame PARAMS ((struct frame_info *));
|
||||
extern void mn10200_pop_frame (struct frame_info *);
|
||||
#define POP_FRAME mn10200_pop_frame (get_current_frame ())
|
||||
|
||||
#define USE_GENERIC_DUMMY_FRAMES 1
|
||||
@ -186,14 +186,14 @@ extern void mn10200_pop_frame PARAMS ((struct frame_info *));
|
||||
#define FIX_CALL_DUMMY(DUMMY, START, FUNADDR, NARGS, ARGS, TYPE, GCCP)
|
||||
#define CALL_DUMMY_ADDRESS() entry_point_address ()
|
||||
|
||||
extern CORE_ADDR mn10200_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
|
||||
extern CORE_ADDR mn10200_push_return_address (CORE_ADDR, CORE_ADDR);
|
||||
#define PUSH_RETURN_ADDRESS(PC, SP) mn10200_push_return_address (PC, SP)
|
||||
|
||||
#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
|
||||
|
||||
extern CORE_ADDR
|
||||
mn10200_push_arguments PARAMS ((int, struct value **, CORE_ADDR,
|
||||
unsigned char, CORE_ADDR));
|
||||
mn10200_push_arguments (int, struct value **, CORE_ADDR,
|
||||
unsigned char, CORE_ADDR);
|
||||
#define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \
|
||||
(mn10200_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR))
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
#define REGISTER_BYTES (NUM_REGS * REGISTER_SIZE)
|
||||
|
||||
extern char *mn10300_register_name PARAMS ((int regnr));
|
||||
extern char *mn10300_register_name (int regnr);
|
||||
#define REGISTER_NAME(i) (mn10300_register_name (i))
|
||||
|
||||
#define D2_REGNUM 2
|
||||
@ -67,7 +67,7 @@ extern breakpoint_from_pc_fn mn10300_breakpoint_from_pc;
|
||||
|
||||
#define INNER_THAN(lhs,rhs) ((lhs) < (rhs))
|
||||
|
||||
extern CORE_ADDR mn10300_saved_pc_after_call PARAMS ((struct frame_info * frame));
|
||||
extern CORE_ADDR mn10300_saved_pc_after_call (struct frame_info *frame);
|
||||
#define SAVED_PC_AFTER_CALL(frame) \
|
||||
mn10300_saved_pc_after_call (frame)
|
||||
|
||||
@ -75,33 +75,34 @@ struct frame_info;
|
||||
struct type;
|
||||
struct value;
|
||||
|
||||
extern void mn10300_init_extra_frame_info PARAMS ((struct frame_info *));
|
||||
extern void mn10300_init_extra_frame_info (struct frame_info *);
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) mn10300_init_extra_frame_info (fi)
|
||||
#define INIT_FRAME_PC /* Not necessary */
|
||||
|
||||
#define FRAME_INIT_SAVED_REGS(fi) /* handled by init_extra_frame_info */
|
||||
|
||||
extern CORE_ADDR mn10300_frame_chain PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR mn10300_frame_chain (struct frame_info *);
|
||||
#define FRAME_CHAIN(fi) mn10300_frame_chain (fi)
|
||||
#define FRAME_CHAIN_VALID(FP, FI) generic_file_frame_chain_valid (FP, FI)
|
||||
|
||||
extern CORE_ADDR mn10300_find_callers_reg PARAMS ((struct frame_info *, int));
|
||||
extern CORE_ADDR mn10300_frame_saved_pc PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR mn10300_find_callers_reg (struct frame_info *, int);
|
||||
extern CORE_ADDR mn10300_frame_saved_pc (struct frame_info *);
|
||||
#define FRAME_SAVED_PC(FI) (mn10300_frame_saved_pc (FI))
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state
|
||||
a function return value of type TYPE, and copy that, in virtual format,
|
||||
into VALBUF. */
|
||||
|
||||
extern void mn10300_extract_return_value PARAMS ((struct type * type, char *regbuf, char *valbuf));
|
||||
extern void mn10300_extract_return_value (struct type *type, char *regbuf,
|
||||
char *valbuf);
|
||||
#define EXTRACT_RETURN_VALUE(TYPE, REGBUF, VALBUF) \
|
||||
mn10300_extract_return_value (TYPE, REGBUF, VALBUF)
|
||||
|
||||
CORE_ADDR mn10300_extract_struct_value_address PARAMS ((char *regbuf));
|
||||
CORE_ADDR mn10300_extract_struct_value_address (char *regbuf);
|
||||
#define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \
|
||||
mn10300_extract_struct_value_address (REGBUF)
|
||||
|
||||
void mn10300_store_return_value PARAMS ((struct type * type, char *valbuf));
|
||||
void mn10300_store_return_value (struct type *type, char *valbuf);
|
||||
#define STORE_RETURN_VALUE(TYPE, VALBUF) \
|
||||
mn10300_store_return_value (TYPE, VALBUF)
|
||||
|
||||
@ -110,7 +111,7 @@ extern CORE_ADDR mn10300_store_struct_return (CORE_ADDR addr, CORE_ADDR sp);
|
||||
#define STORE_STRUCT_RETURN(STRUCT_ADDR, SP) \
|
||||
(mn10300_store_struct_return (STRUCT_ADDR, SP))
|
||||
|
||||
extern CORE_ADDR mn10300_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR mn10300_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(pc) (mn10300_skip_prologue (pc))
|
||||
|
||||
#define FRAME_ARGS_SKIP 0
|
||||
@ -119,7 +120,7 @@ extern CORE_ADDR mn10300_skip_prologue PARAMS ((CORE_ADDR));
|
||||
#define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame)
|
||||
#define FRAME_NUM_ARGS(fi) (-1)
|
||||
|
||||
extern void mn10300_pop_frame PARAMS ((struct frame_info *));
|
||||
extern void mn10300_pop_frame (struct frame_info *);
|
||||
#define POP_FRAME mn10300_pop_frame (get_current_frame ())
|
||||
|
||||
#define USE_GENERIC_DUMMY_FRAMES 1
|
||||
@ -132,15 +133,15 @@ extern void mn10300_pop_frame PARAMS ((struct frame_info *));
|
||||
|
||||
#define TARGET_READ_FP() read_sp ()
|
||||
|
||||
extern CORE_ADDR mn10300_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
|
||||
extern CORE_ADDR mn10300_push_return_address (CORE_ADDR, CORE_ADDR);
|
||||
#define PUSH_RETURN_ADDRESS(PC, SP) mn10300_push_return_address (PC, SP)
|
||||
|
||||
#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
|
||||
#define SAVE_DUMMY_FRAME_TOS(SP) generic_save_dummy_frame_tos (SP)
|
||||
|
||||
extern CORE_ADDR
|
||||
mn10300_push_arguments PARAMS ((int, struct value **, CORE_ADDR,
|
||||
unsigned char, CORE_ADDR));
|
||||
mn10300_push_arguments (int, struct value **, CORE_ADDR,
|
||||
unsigned char, CORE_ADDR);
|
||||
#define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \
|
||||
(mn10300_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR))
|
||||
|
||||
@ -158,6 +159,6 @@ extern use_struct_convention_fn mn10300_use_struct_convention;
|
||||
generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
|
||||
|
||||
/* Cons up virtual frame pointer for trace */
|
||||
extern void mn10300_virtual_frame_pointer PARAMS ((CORE_ADDR, long *, long *));
|
||||
extern void mn10300_virtual_frame_pointer (CORE_ADDR, long *, long *);
|
||||
#define TARGET_VIRTUAL_FRAME_POINTER(PC, REGP, OFFP) \
|
||||
mn10300_virtual_frame_pointer ((PC), (REGP), (OFFP))
|
||||
|
@ -38,15 +38,12 @@
|
||||
struct objfile;
|
||||
|
||||
/* Hook to look at new objfiles (shared libraries) */
|
||||
extern void
|
||||
linuxthreads_new_objfile PARAMS ((struct objfile *objfile));
|
||||
extern void linuxthreads_new_objfile (struct objfile *objfile);
|
||||
|
||||
/* Method to print a human-readable thread description */
|
||||
extern char *
|
||||
linuxthreads_pid_to_str PARAMS ((int pid));
|
||||
extern char *linuxthreads_pid_to_str (int pid);
|
||||
|
||||
extern int
|
||||
linuxthreads_prepare_to_proceed PARAMS ((int step));
|
||||
extern int linuxthreads_prepare_to_proceed (int step);
|
||||
#define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1)
|
||||
|
||||
/* Defined to make stepping-over-breakpoints be thread-atomic. */
|
||||
|
@ -70,7 +70,7 @@
|
||||
|
||||
#include "target.h"
|
||||
|
||||
extern int child_wait PARAMS ((int pid, struct target_waitstatus * status));
|
||||
extern int child_wait (int pid, struct target_waitstatus *status);
|
||||
|
||||
/* Lynx needs a special definition of this so that we can
|
||||
print out the pid and thread number seperatly. */
|
||||
@ -78,6 +78,6 @@ extern int child_wait PARAMS ((int pid, struct target_waitstatus * status));
|
||||
|
||||
/* override child_pid_to_str in inftarg.c */
|
||||
#define CHILD_PID_TO_STR
|
||||
extern char *lynx_pid_to_str PARAMS ((int pid));
|
||||
extern char *lynx_pid_to_str (int pid);
|
||||
|
||||
#endif /* NM_LYNX_H */
|
||||
|
@ -31,7 +31,6 @@
|
||||
#define REGISTER_U_ADDR(addr, blockend, regno) \
|
||||
(addr) = ns32k_register_u_addr ((blockend),(regno));
|
||||
|
||||
extern int
|
||||
ns32k_register_u_addr PARAMS ((int, int));
|
||||
extern int ns32k_register_u_addr (int, int);
|
||||
|
||||
#endif /* NM_NBSD_H */
|
||||
|
@ -28,7 +28,7 @@
|
||||
/* Advance PC across any function entry prologue instructions
|
||||
to reach some "real" code. */
|
||||
|
||||
extern CORE_ADDR merlin_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR merlin_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(pc) (merlin_skip_prologue (pc))
|
||||
|
||||
/* Immediately after a function call, return the saved pc.
|
||||
@ -193,7 +193,7 @@ extern CORE_ADDR merlin_skip_prologue PARAMS ((CORE_ADDR));
|
||||
/* Return number of args passed to a frame.
|
||||
Can return -1, meaning no way to tell. */
|
||||
|
||||
extern int merlin_frame_num_args PARAMS ((struct frame_info * fi));
|
||||
extern int merlin_frame_num_args (struct frame_info *fi);
|
||||
#define FRAME_NUM_ARGS(fi) (merlin_frame_num_args ((fi)))
|
||||
|
||||
/* Return number of bytes at start of arglist that are not really args. */
|
||||
|
@ -34,7 +34,7 @@
|
||||
/* Advance PC across any function entry prologue instructions
|
||||
to reach some "real" code. */
|
||||
|
||||
extern CORE_ADDR umax_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR umax_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(pc) (umax_skip_prologue (pc))
|
||||
|
||||
/* Immediately after a function call, return the saved pc.
|
||||
@ -232,7 +232,7 @@ extern CORE_ADDR ns32k_get_enter_addr ();
|
||||
ways in the stack frame. sp is even more special:
|
||||
the address we return for it IS the sp for the next frame. */
|
||||
|
||||
extern int umax_frame_num_args PARAMS ((struct frame_info * fi));
|
||||
extern int umax_frame_num_args (struct frame_info *fi);
|
||||
#define FRAME_NUM_ARGS(fi) (umax_frame_num_args ((fi)))
|
||||
|
||||
/* Things needed for making the inferior call functions. */
|
||||
|
@ -70,7 +70,7 @@
|
||||
/* While this is for use by threaded programs, it doesn't appear
|
||||
* to hurt non-threaded ones. This is used in infrun.c: */
|
||||
#define PREPARE_TO_PROCEED(select_it) hppa_prepare_to_proceed()
|
||||
extern int hppa_prepare_to_proceed PARAMS ((void));
|
||||
extern int hppa_prepare_to_proceed (void);
|
||||
|
||||
/* In infptrace.c or infttrace.c: */
|
||||
#define CHILD_PID_TO_EXEC_FILE
|
||||
@ -93,10 +93,10 @@ extern int hppa_prepare_to_proceed PARAMS ((void));
|
||||
#define CHILD_PID_TO_STR
|
||||
|
||||
#define REQUIRE_ATTACH(pid) hppa_require_attach(pid)
|
||||
extern int hppa_require_attach PARAMS ((int));
|
||||
extern int hppa_require_attach (int);
|
||||
|
||||
#define REQUIRE_DETACH(pid,signal) hppa_require_detach(pid,signal)
|
||||
extern int hppa_require_detach PARAMS ((int, int));
|
||||
extern int hppa_require_detach (int, int);
|
||||
|
||||
/* So we can cleanly use code in infptrace.c. */
|
||||
#define PT_KILL PT_EXIT
|
||||
@ -210,11 +210,11 @@ extern int hppa_require_detach PARAMS ((int, int));
|
||||
*/
|
||||
#define TARGET_ENABLE_HW_WATCHPOINTS(pid) \
|
||||
hppa_enable_page_protection_events (pid)
|
||||
extern void hppa_enable_page_protection_events PARAMS ((int));
|
||||
extern void hppa_enable_page_protection_events (int);
|
||||
|
||||
#define TARGET_DISABLE_HW_WATCHPOINTS(pid) \
|
||||
hppa_disable_page_protection_events (pid)
|
||||
extern void hppa_disable_page_protection_events PARAMS ((int));
|
||||
extern void hppa_disable_page_protection_events (int);
|
||||
|
||||
/* Use these macros for watchpoint insertion/deletion. */
|
||||
#define target_insert_watchpoint(addr, len, type) \
|
||||
@ -228,11 +228,11 @@ extern void hppa_disable_page_protection_events PARAMS ((int));
|
||||
* the string. Code is in hppah-nat.c.
|
||||
*/
|
||||
|
||||
extern char *child_pid_to_str PARAMS ((pid_t));
|
||||
extern char *child_pid_to_str (pid_t);
|
||||
|
||||
#define target_tid_to_str( pid ) \
|
||||
hppa_tid_to_str( pid )
|
||||
extern char *hppa_tid_to_str PARAMS ((pid_t));
|
||||
extern char *hppa_tid_to_str (pid_t);
|
||||
|
||||
/* For this, ID can be either a process or thread ID, and the function
|
||||
will describe it appropriately, returning the description as a printable
|
||||
@ -243,7 +243,7 @@ extern char *hppa_tid_to_str PARAMS ((pid_t));
|
||||
*/
|
||||
#define target_pid_or_tid_to_str(ID) \
|
||||
hppa_pid_or_tid_to_str (ID)
|
||||
extern char *hppa_pid_or_tid_to_str PARAMS ((pid_t));
|
||||
extern char *hppa_pid_or_tid_to_str (pid_t);
|
||||
|
||||
/* This is used when handling events caused by a call to vfork(). On ptrace-
|
||||
based HP-UXs, when you resume the vforked child, the parent automagically
|
||||
@ -261,7 +261,7 @@ extern char *hppa_pid_or_tid_to_str PARAMS ((pid_t));
|
||||
*/
|
||||
#define ENSURE_VFORKING_PARENT_REMAINS_STOPPED(PID) \
|
||||
hppa_ensure_vforking_parent_remains_stopped (PID)
|
||||
extern void hppa_ensure_vforking_parent_remains_stopped PARAMS ((int));
|
||||
extern void hppa_ensure_vforking_parent_remains_stopped (int);
|
||||
|
||||
/* This is used when handling events caused by a call to vfork().
|
||||
|
||||
@ -275,7 +275,7 @@ extern void hppa_ensure_vforking_parent_remains_stopped PARAMS ((int));
|
||||
*/
|
||||
#define RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK() \
|
||||
hppa_resume_execd_vforking_child_to_get_parent_vfork ()
|
||||
extern int hppa_resume_execd_vforking_child_to_get_parent_vfork PARAMS ((void));
|
||||
extern int hppa_resume_execd_vforking_child_to_get_parent_vfork (void);
|
||||
|
||||
#define HPUXHPPA
|
||||
|
||||
|
@ -70,24 +70,24 @@ struct inferior_status;
|
||||
/* Advance PC across any function entry prologue instructions
|
||||
to reach some "real" code. */
|
||||
|
||||
extern CORE_ADDR hppa_skip_prologue PARAMS ((CORE_ADDR));
|
||||
extern CORE_ADDR hppa_skip_prologue (CORE_ADDR);
|
||||
#define SKIP_PROLOGUE(pc) (hppa_skip_prologue (pc))
|
||||
|
||||
/* If PC is in some function-call trampoline code, return the PC
|
||||
where the function itself actually starts. If not, return NULL. */
|
||||
|
||||
#define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc, NULL)
|
||||
extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR, char *));
|
||||
extern CORE_ADDR skip_trampoline_code (CORE_ADDR, char *);
|
||||
|
||||
/* Return non-zero if we are in an appropriate trampoline. */
|
||||
|
||||
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
|
||||
in_solib_call_trampoline (pc, name)
|
||||
extern int in_solib_call_trampoline PARAMS ((CORE_ADDR, char *));
|
||||
extern int in_solib_call_trampoline (CORE_ADDR, char *);
|
||||
|
||||
#define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) \
|
||||
in_solib_return_trampoline (pc, name)
|
||||
extern int in_solib_return_trampoline PARAMS ((CORE_ADDR, char *));
|
||||
extern int in_solib_return_trampoline (CORE_ADDR, char *);
|
||||
|
||||
/* Immediately after a function call, return the saved pc.
|
||||
Can't go through the frames for this because on some machines
|
||||
@ -96,7 +96,7 @@ extern int in_solib_return_trampoline PARAMS ((CORE_ADDR, char *));
|
||||
|
||||
#undef SAVED_PC_AFTER_CALL
|
||||
#define SAVED_PC_AFTER_CALL(frame) saved_pc_after_call (frame)
|
||||
extern CORE_ADDR saved_pc_after_call PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR saved_pc_after_call (struct frame_info *);
|
||||
|
||||
/* Stack grows upward */
|
||||
#define INNER_THAN(lhs,rhs) ((lhs) > (rhs))
|
||||
@ -258,7 +258,7 @@ extern CORE_ADDR saved_pc_after_call PARAMS ((struct frame_info *));
|
||||
of register dumps. */
|
||||
|
||||
#define DO_REGISTERS_INFO(_regnum, fp) pa_do_registers_info (_regnum, fp)
|
||||
extern void pa_do_registers_info PARAMS ((int, int));
|
||||
extern void pa_do_registers_info (int, int);
|
||||
|
||||
#if 0
|
||||
#define STRCAT_REGISTER(regnum, fpregs, stream, precision) pa_do_strcat_registers_info (regnum, fpregs, stream, precision)
|
||||
@ -403,7 +403,7 @@ extern use_struct_convention_fn hppa_use_struct_convention;
|
||||
((regno) > IPSW_REGNUM && (regno) < FP4_REGNUM)
|
||||
|
||||
#define INIT_EXTRA_FRAME_INFO(fromleaf, frame) init_extra_frame_info (fromleaf, frame)
|
||||
extern void init_extra_frame_info PARAMS ((int, struct frame_info *));
|
||||
extern void init_extra_frame_info (int, struct frame_info *);
|
||||
|
||||
/* Describe the pointer in each stack frame to the previous stack frame
|
||||
(its caller). */
|
||||
@ -423,9 +423,9 @@ extern void init_extra_frame_info PARAMS ((int, struct frame_info *));
|
||||
address (previous FP). */
|
||||
|
||||
#define FRAME_CHAIN(thisframe) frame_chain (thisframe)
|
||||
extern CORE_ADDR frame_chain PARAMS ((struct frame_info *));
|
||||
extern CORE_ADDR frame_chain (struct frame_info *);
|
||||
|
||||
extern int hppa_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
|
||||
extern int hppa_frame_chain_valid (CORE_ADDR, struct frame_info *);
|
||||
#define FRAME_CHAIN_VALID(chain, thisframe) hppa_frame_chain_valid (chain, thisframe)
|
||||
|
||||
#define FRAME_CHAIN_COMBINE(chain, thisframe) (chain)
|
||||
@ -437,9 +437,9 @@ extern int hppa_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *));
|
||||
does not, FRAMELESS is set to 1, else 0. */
|
||||
#define FRAMELESS_FUNCTION_INVOCATION(FI) \
|
||||
(frameless_function_invocation (FI))
|
||||
extern int frameless_function_invocation PARAMS ((struct frame_info *));
|
||||
extern int frameless_function_invocation (struct frame_info *);
|
||||
|
||||
extern CORE_ADDR hppa_frame_saved_pc PARAMS ((struct frame_info * frame));
|
||||
extern CORE_ADDR hppa_frame_saved_pc (struct frame_info *frame);
|
||||
#define FRAME_SAVED_PC(FRAME) hppa_frame_saved_pc (FRAME)
|
||||
|
||||
#define FRAME_ARGS_ADDRESS(fi) ((fi)->frame)
|
||||
@ -459,8 +459,7 @@ extern CORE_ADDR hppa_frame_saved_pc PARAMS ((struct frame_info * frame));
|
||||
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
|
||||
hppa_frame_find_saved_regs (frame_info, &frame_saved_regs)
|
||||
extern void
|
||||
hppa_frame_find_saved_regs PARAMS ((struct frame_info *,
|
||||
struct frame_saved_regs *));
|
||||
hppa_frame_find_saved_regs (struct frame_info *, struct frame_saved_regs *);
|
||||
|
||||
|
||||
/* Things needed for making the inferior call functions. */
|
||||
@ -468,12 +467,12 @@ hppa_frame_find_saved_regs PARAMS ((struct frame_info *,
|
||||
/* Push an empty stack frame, to record the current PC, etc. */
|
||||
|
||||
#define PUSH_DUMMY_FRAME push_dummy_frame (inf_status)
|
||||
extern void push_dummy_frame PARAMS ((struct inferior_status *));
|
||||
extern void push_dummy_frame (struct inferior_status *);
|
||||
|
||||
/* Discard from the stack the innermost frame,
|
||||
restoring all saved registers. */
|
||||
#define POP_FRAME hppa_pop_frame ()
|
||||
extern void hppa_pop_frame PARAMS ((void));
|
||||
extern void hppa_pop_frame (void);
|
||||
|
||||
#define INSTRUCTION_SIZE 4
|
||||
|
||||
@ -619,14 +618,13 @@ extern void hppa_pop_frame PARAMS ((void));
|
||||
#define FIX_CALL_DUMMY hppa_fix_call_dummy
|
||||
|
||||
extern CORE_ADDR
|
||||
hppa_fix_call_dummy PARAMS ((char *, CORE_ADDR, CORE_ADDR, int,
|
||||
struct value **, struct type *, int));
|
||||
hppa_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR, int,
|
||||
struct value **, struct type *, int);
|
||||
|
||||
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
|
||||
(hppa_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)))
|
||||
extern CORE_ADDR
|
||||
hppa_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int,
|
||||
CORE_ADDR));
|
||||
hppa_push_arguments (int, struct value **, CORE_ADDR, int, CORE_ADDR);
|
||||
|
||||
/* The low two bits of the PC on the PA contain the privilege level. Some
|
||||
genius implementing a (non-GCC) compiler apparently decided this means
|
||||
@ -760,26 +758,25 @@ typedef struct obj_private_struct
|
||||
obj_private_data_t;
|
||||
|
||||
#if 0
|
||||
extern void target_write_pc
|
||||
PARAMS ((CORE_ADDR, int))
|
||||
extern CORE_ADDR target_read_pc PARAMS ((int));
|
||||
extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR, char *));
|
||||
extern void target_write_pc (CORE_ADDR, int);
|
||||
extern CORE_ADDR target_read_pc (int);
|
||||
extern CORE_ADDR skip_trampoline_code (CORE_ADDR, char *);
|
||||
#endif
|
||||
|
||||
#define TARGET_READ_PC(pid) target_read_pc (pid)
|
||||
extern CORE_ADDR target_read_pc PARAMS ((int));
|
||||
extern CORE_ADDR target_read_pc (int);
|
||||
|
||||
#define TARGET_WRITE_PC(v,pid) target_write_pc (v,pid)
|
||||
extern void target_write_pc PARAMS ((CORE_ADDR, int));
|
||||
extern void target_write_pc (CORE_ADDR, int);
|
||||
|
||||
#define TARGET_READ_FP() target_read_fp (inferior_pid)
|
||||
extern CORE_ADDR target_read_fp PARAMS ((int));
|
||||
extern CORE_ADDR target_read_fp (int);
|
||||
|
||||
/* For a number of horrible reasons we may have to adjust the location
|
||||
of variables on the stack. Ugh. */
|
||||
#define HPREAD_ADJUST_STACK_ADDRESS(ADDR) hpread_adjust_stack_address(ADDR)
|
||||
|
||||
extern int hpread_adjust_stack_address PARAMS ((CORE_ADDR));
|
||||
extern int hpread_adjust_stack_address (CORE_ADDR);
|
||||
|
||||
/* If the current gcc for for this target does not produce correct debugging
|
||||
information for float parameters, both prototyped and unprototyped, then
|
||||
|
@ -140,7 +140,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
of variables on the stack. Ugh. jimb: why? */
|
||||
#define HPREAD_ADJUST_STACK_ADDRESS(ADDR) hpread_adjust_stack_address(ADDR)
|
||||
|
||||
extern int hpread_adjust_stack_address PARAMS ((CORE_ADDR));
|
||||
extern int hpread_adjust_stack_address (CORE_ADDR);
|
||||
|
||||
|
||||
/* jimb: omitted dynamic linking stuff here */
|
||||
|
@ -40,11 +40,8 @@
|
||||
|
||||
#define MALLOC_INCOMPATIBLE
|
||||
|
||||
extern void *
|
||||
malloc PARAMS ((size_t));
|
||||
extern void *malloc (size_t);
|
||||
|
||||
extern void *
|
||||
realloc PARAMS ((void *, size_t));
|
||||
extern void *realloc (void *, size_t);
|
||||
|
||||
extern void
|
||||
free PARAMS ((void *));
|
||||
extern void free (void *);
|
||||
|
@ -26,7 +26,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
/* Return sizeof user struct to callers in less machine dependent routines */
|
||||
|
||||
#define KERNEL_U_SIZE kernel_u_size()
|
||||
extern int kernel_u_size PARAMS ((void));
|
||||
extern int kernel_u_size (void);
|
||||
|
||||
/* Tell gdb that we can attach and detach other processes */
|
||||
#define ATTACH_DETACH
|
||||
@ -51,16 +51,13 @@ extern int kernel_u_size PARAMS ((void));
|
||||
struct objfile;
|
||||
#endif
|
||||
|
||||
extern void
|
||||
linuxthreads_new_objfile PARAMS ((struct objfile *objfile));
|
||||
extern void linuxthreads_new_objfile (struct objfile *objfile);
|
||||
#define target_new_objfile(OBJFILE) linuxthreads_new_objfile (OBJFILE)
|
||||
|
||||
extern char *
|
||||
linuxthreads_pid_to_str PARAMS ((int pid));
|
||||
extern char *linuxthreads_pid_to_str (int pid);
|
||||
#define target_pid_to_str(PID) linuxthreads_pid_to_str (PID)
|
||||
|
||||
extern int
|
||||
linuxthreads_prepare_to_proceed PARAMS ((int step));
|
||||
extern int linuxthreads_prepare_to_proceed (int step);
|
||||
#define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1)
|
||||
|
||||
|
||||
|
@ -75,7 +75,8 @@ CORE_ADDR ppc_linux_frame_chain (struct frame_info *);
|
||||
#undef FRAME_CHAIN
|
||||
#define FRAME_CHAIN(thisframe) ppc_linux_frame_chain (thisframe)
|
||||
|
||||
CORE_ADDR ppc_sysv_abi_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR));
|
||||
CORE_ADDR ppc_sysv_abi_push_arguments (int, struct value **, CORE_ADDR, int,
|
||||
CORE_ADDR);
|
||||
#undef PUSH_ARGUMENTS
|
||||
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
|
||||
(ppc_sysv_abi_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)))
|
||||
|
@ -54,9 +54,9 @@
|
||||
|
||||
/* target-specific dummy_frame stuff */
|
||||
|
||||
extern struct frame_info *rs6000_pop_frame PARAMS ((struct frame_info * frame));
|
||||
extern struct frame_info *rs6000_pop_frame (struct frame_info *frame);
|
||||
|
||||
extern CORE_ADDR ppc_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
|
||||
extern CORE_ADDR ppc_push_return_address (CORE_ADDR, CORE_ADDR);
|
||||
|
||||
#undef PUSH_DUMMY_FRAME
|
||||
#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
|
||||
|
@ -54,8 +54,7 @@
|
||||
extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
|
||||
This routine returns true on success */
|
||||
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
extern int get_longjmp_target (CORE_ADDR *);
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
#endif /* 0 */
|
||||
@ -65,7 +64,7 @@ get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
#define SOFUN_ADDRESS_MAYBE_MISSING
|
||||
|
||||
#if 0
|
||||
extern char *sunpro_static_transform_name PARAMS ((char *));
|
||||
extern char *sunpro_static_transform_name (char *);
|
||||
#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
|
||||
#endif
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "xm-aix4.h"
|
||||
|
||||
/* This doesn't seem to be declared in any header file I can find. */
|
||||
char *termdef PARAMS ((int, int));
|
||||
char *termdef (int, int);
|
||||
|
||||
/* UINT_MAX is defined in <sys/limits.h> as a decimal constant (4294967295)
|
||||
which is too large to fit in a signed int when it is parsed by the
|
||||
|
@ -49,11 +49,11 @@
|
||||
/* Core file. */ \
|
||||
xcoff_relocate_core (c);
|
||||
|
||||
extern void xcoff_relocate_symtab PARAMS ((unsigned int));
|
||||
extern void xcoff_relocate_symtab (unsigned int);
|
||||
struct target_ops;
|
||||
extern void xcoff_relocate_core PARAMS ((struct target_ops *));
|
||||
extern void xcoff_relocate_core (struct target_ops *);
|
||||
|
||||
/* Return sizeof user struct to callers in less machine dependent routines */
|
||||
|
||||
#define KERNEL_U_SIZE kernel_u_size()
|
||||
extern int kernel_u_size PARAMS ((void));
|
||||
extern int kernel_u_size (void);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user