Daniel Jacobowitz
75c9abc620
2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* mips-linux-nat.c: Call the operating system GNU/Linux.
* mips-linux-tdep.c: Likewise.
* mips-tdep.c: Likewise.
25 years ago
Andrew Cagney
9f60d481c2
* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
(do_sfunc, set_cmd_sfunc): New functions.
* command.h (struct cmd_list_element): Add field func.
* cli/cli-decode.h (struct cmd_list_element): Ditto.
* command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
* cli/cli-decode.h: Ditto.
* cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
(help_all, help_cmd_list): Ditto.
(find_cmd, complete_on_cmdlist): Ditto.
* top.c (execute_command): Ditto.
* cli/cli-setshow.c (do_setshow_command): Call func instead of
function.sfunc.
* infcmd.c (notice_args_read): Fix function signature.
* cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
* cli/cli-decode.c (add_set_cmd): Ditto.
* utils.c (initialize_utils): Ditto.
* maint.c (_initialize_maint_cmds): Ditto.
* infrun.c (_initialize_infrun): Ditto.
* demangle.c (_initialize_demangler): Ditto.
* remote.c (add_packet_config_cmd): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* cris-tdep.c (_initialize_cris_tdep): Ditto.
* proc-api.c (_initialize_proc_api): Ditto.
* kod.c (_initialize_kod): Ditto.
* valprint.c (_initialize_valprint): Ditto.
* top.c (init_main): Ditto.
* infcmd.c (_initialize_infcmd): Ditto.
* corefile.c (_initialize_core): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* arch-utils.c (initialize_current_architecture): Ditto.
(_initialize_gdbarch_utils): Ditto.
* alpha-tdep.c (_initialize_alpha_tdep): Ditto.
* cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
* wince.c (_initialize_inftarg): Ditto.
* symfile.c (_initialize_symfile): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* language.c (_initialize_language): Ditto.
* arc-tdep.c (_initialize_arc_tdep): Ditto.
25 years ago
Andrew Cagney
c2f05ac92e
Eliminate IEEE_FLOAT.
25 years ago
Andrew Cagney
d7449b42d3
s/BIG_ENDIAN/BFD_ENDIAN_BIG/
25 years ago
Andrew Cagney
46cd78fb46
* arch-utils.c (generic_register_raw_size): New function.
* gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
the static default.
* gdbarch.c: Regenerate.
* arch-utils.h (generic_register_raw_size): Declare.
* config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro.
* mips-tdep.c (mips_register_raw_size): Make function static.
(mips_gdbarch_init): Initialize register_raw_size.
25 years ago
Daniel Jacobowitz
479412cd97
* mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
cur_frame to heuristic_proc_desc.
(heuristic_proc_desc): Add cur_frame argument. Do not read SP
if cur_frame == 0.
(after_prologue): Pass cur_frame == 0 to find_proc_desc.
(mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
(mips_init_extra_frame_info): Likewise.
25 years ago
Andrew Cagney
fc0c74b114
Add INTEGER_TO_ADDRESS to hadle nasty harvard architectures that do
funnies to integer to address conversions.
25 years ago
Andrew Cagney
675fb869a9
Doco LE O32 sizeof(struct) < 4 problem.
25 years ago
Andrew Cagney
ea7c478fe2
s/value_ptr/struct value */
25 years ago
Daniel Jacobowitz
49e790b035
* mips-tdep.c (mips_type_needs_double_align): New function.
(mips_push_arguments): Align o32 structs to even argument
registers if necessary.
25 years ago
Daniel Jacobowitz
e135b88994
Branch prediction code cleanup
25 years ago
Daniel Jacobowitz
9022177cbd
* mips-tdep.c (mips_software_single_step): New function.
* config/mips/tm-mips.h: Add prototype for
mips_software_single_step.
25 years ago
Andrew Cagney
7824d2f224
* arch-utils.c (init_frame_pc_default): New function
* arch-utils.h (init_frame_pc_default): Declare.
* gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
not init_frame_pc_noop.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (INIT_FRAME_PC): Delete macro definition.
* mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
init_frame_pc_noop.
26 years ago
Andrew Cagney
10312cc4d2
Multi-arch INIT_FRAME_PC() and INIT_FRAME_PC_FIRST().
26 years ago
Andrew Cagney
875e176797
multi-arch ADDR_BITS_REMOVE.
26 years ago
Eli Zaretskii
1d06468c1f
* config/mips/tm-irix6.h: New file.
* config/mips/irix6.mh: New file.
* config/mips/irix6.mt: New file.
* config/mips/xm-irix6.h: New file.
* config/mips/nm-irix6.h: New file.
* mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
disassembler info in tm_print_insn_info as appropriate for the N32
ABI. Force N32 ABI to be the default if the CPU is R8000 or
R10000.
* configure.tgt (mips*-sgi-irix6*): Map to irix6.
* configure.host (mips*-sgi-irix6*): Ditto.
26 years ago
Eli Zaretskii
1012bd0e5f
* mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
(mips_set_processor_type_command): Remove unused variable j.
(mips_breakpoint_from_pc): Declare breakpoint instruction
sequences as unsigned char, to avoid compiler warnings.
26 years ago
Jim Blandy
99567b1b4e
* mips-tdep.c (mips_store_return_value,
mips_extract_return_value): Pass arguments to
return_value_location in the proper order.
26 years ago
Kevin Buettner
39f770628a
Phase 1 of the ptid_t changes.
26 years ago
Andrew Cagney
93d56215df
Gag -Wuninitialized warnings.
Add -Wuninitialized to default warning list.
26 years ago
Jim Blandy
3259a17229
* mips-tdep.c (mips_gdbarch_init): Tweak indentation.
26 years ago
Andrew Cagney
b0ed35899a
Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().
26 years ago
Kevin Buettner
b6ba6518e9
Update/correct copyright notices.
26 years ago
Andrew Cagney
4e052eda91
Create new file regcache.h. Update all uses.
26 years ago
Andrew Cagney
1adad886b2
Fix printf fmt arguments.
26 years ago
Andrew Cagney
d02ee68167
When the target h/w has 8byte registers, return 8 bytes for the raw buffer size
(from jim kingdon).
26 years ago
Andrew Cagney
8e65ff28b0
Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
26 years ago
Andrew Cagney
4fcf66da88
Replace strsave() with xstrdup().
26 years ago
Michael Snyder
9dcb560c82
2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
26 years ago
Kevin Buettner
b8c9b27d1e
Replace free() with xfree().
26 years ago
Andrew Cagney
88c72b7d71
Multiarch STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM,
DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM.
26 years ago
Andrew Cagney
12f02c2abc
* mips-tdep.c (struct upk_mips16): Delete fields ``inst'' and
``fmt''. Make ``offset'' a CORE_ADDR.
(print_unpack): Delete.
(extended_offset): Construct and return a CORE_ADDR.
(fetch_mips_16): Return an int. Don't assume short is 16 bits.
(unpack_mips16): Rewrite. Add ``extension'' parameter instead of
incorrectly guessing if the instruction had an extension.
(map16): Delete array.
(mips16_op): Delete macro.
(extended_mips16_next_pc): Rewrite of old mips16_next_pc function.
When an extended instruction do a recursive call.
(mips16_next_pc): Call extended_mips16_next_pc.
(mips_next_pc): Cleanup.
26 years ago
J.T. Conklin
8e1a459b89
* gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c,
mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c,
somread.c, tracepoint.c: Fix spelling errors in comments.
* gdbarch.c: Regenerate.
* gnu-nat.c (S_exception_raise_request): Fix typos and spelling
errors in strings.
* m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise.
* mcore-tdep.c (mcore_analyze_prologue): Likewise.
* mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise.
* remote-e7000.c (e7000_start_remote): Likewise.
* remote-rdp.c (handle_swi): Likewise.
* remote-vx.c (vx_load_command): Likewise.
* sh-tdep.c (sh_do_pseudo_register): Likewise.
* sol-thread.c (td_err_string): Likewise.
* symtab.c (decode_line_2): Likewise.
-------------------------------------------------------------------
26 years ago
David Anderson
7e73cedf75
Corrected spelling errors in comments.
26 years ago
Fred Fish
92e1c15ca0
Approved by Andrew Cagney <ac131313@cygnus.com>
* mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Define using either
the current arch or use zero.
26 years ago
David Anderson
e26cc3490a
Corrected spelling errors in comments
26 years ago
Andrew Cagney
9103eae082
Check arches->gdbarch and not current_gdbarch when looking for a match.
26 years ago
Kevin Buettner
fba45db2fa
Protoization.
26 years ago
Andrew Cagney
acdb74a06f
* mips-tdep.c: General cleanup. Delete all #if 0 code. Convert
all old style K&R function definitions to ISO-C.
(struct gdbarch_tdep): Add mips_abi_string.
(mips_gdbarch_init): Initialize.
(mips_dump_tdep): Print mips_abi_string and other values.
(mips_push_arguments): Add more detailed tracing.
26 years ago
Andrew Cagney
6c997a3432
Force MIPS to sign-extend any addresses read from registers.
26 years ago
Andrew Cagney
4014092b58
Move the ``set mask-address'' command to remote-mips.c. Disable
address masking in mips-tdep.c.
26 years ago
Andrew Cagney
cce41527ca
* mips-tdep.c (mips_push_arguments): Always align struct_addr on a
16 byte boundary. Align allocated argument space using
MIPS_STACK_ARGSIZE. Reserve space on stack for the struct return
and floating-point registers. Use fp_register_arg_p to determine
if float_argreg should be aligned.
26 years ago
Andrew Cagney
f7b9e9fc07
More mult-arch conversions: IEEE_FLOAT, SKIP_PROLOGUE,
SAVED_PC_AFTER_CALL, DECR_PC_AFTER_BREAK, BREAKPOINT_FROM_PC,
INNER_THAN.
27 years ago
Michael Snyder
65c1106637
2000-07-06 Michael Snyder <msnyder@cleaver.cygnus.com>
* mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
27 years ago
Andrew Cagney
566f0f7aa5
For EABI, start allocting space on the stack when the registers are
full. Not when the number of args == 8.
27 years ago
Andrew Cagney
f09ded2422
When FP registers are full, store FP arguments on stack and not in
integer registers.
27 years ago
Andrew Cagney
9ace04976e
Add ``set debug mips'' command. Add much debugging.
27 years ago
Andrew Cagney
9a0149c65a
For MIPS_EABI, squeeze simple floating point structs into an FP register.
27 years ago
Andrew Cagney
4a7f7ba82c
EABI64 was selecting EABI32
27 years ago
Andrew Cagney
5213ab0692
Multi-arch GDB_TARGET_IS_MIPS64.
27 years ago