Andrew Cagney
d7449b42d3
s/BIG_ENDIAN/BFD_ENDIAN_BIG/
2002-01-05 04:30:46 +00:00
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.
2001-12-10 04:58:31 +00:00
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.
2001-11-19 23:15:31 +00:00
Andrew Cagney
fc0c74b114
Add INTEGER_TO_ADDRESS to hadle nasty harvard architectures that do
...
funnies to integer to address conversions.
2001-10-15 18:18:30 +00:00
Andrew Cagney
675fb869a9
Doco LE O32 sizeof(struct) < 4 problem.
2001-07-24 16:28:36 +00:00
Andrew Cagney
ea7c478fe2
s/value_ptr/struct value */
2001-07-15 20:10:02 +00:00
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.
2001-07-12 17:34:33 +00:00
Daniel Jacobowitz
e135b88994
Branch prediction code cleanup
2001-07-06 05:35:17 +00:00
Daniel Jacobowitz
9022177cbd
* mips-tdep.c (mips_software_single_step): New function.
...
* config/mips/tm-mips.h: Add prototype for
mips_software_single_step.
2001-07-05 23:30:43 +00:00
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.
2001-06-16 20:00:24 +00:00
Andrew Cagney
10312cc4d2
Multi-arch INIT_FRAME_PC() and INIT_FRAME_PC_FIRST().
2001-06-15 23:10:55 +00:00
Andrew Cagney
875e176797
multi-arch ADDR_BITS_REMOVE.
2001-06-15 22:10:21 +00:00
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.
2001-06-07 15:57:57 +00:00
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.
2001-06-04 07:53:08 +00:00
Jim Blandy
99567b1b4e
* mips-tdep.c (mips_store_return_value,
...
mips_extract_return_value): Pass arguments to
return_value_location in the proper order.
2001-05-12 00:38:11 +00:00
Kevin Buettner
39f770628a
Phase 1 of the ptid_t changes.
2001-05-04 04:15:33 +00:00
Andrew Cagney
93d56215df
Gag -Wuninitialized warnings.
...
Add -Wuninitialized to default warning list.
2001-03-28 21:42:32 +00:00
Jim Blandy
3259a17229
* mips-tdep.c (mips_gdbarch_init): Tweak indentation.
2001-03-26 04:01:53 +00:00
Andrew Cagney
b0ed35899a
Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().
2001-03-20 18:16:28 +00:00
Kevin Buettner
b6ba6518e9
Update/correct copyright notices.
2001-03-06 08:22:02 +00:00
Andrew Cagney
4e052eda91
Create new file regcache.h. Update all uses.
2001-03-01 01:39:22 +00:00
Andrew Cagney
1adad886b2
Fix printf fmt arguments.
2001-02-21 00:05:34 +00:00
Andrew Cagney
d02ee68167
When the target h/w has 8byte registers, return 8 bytes for the raw buffer size
...
(from jim kingdon).
2001-02-20 03:38:32 +00:00
Andrew Cagney
8e65ff28b0
Add __FILE__ and __LINE__ parameter to internal_error() /
...
internal_verror().
2001-02-08 06:03:54 +00:00
Andrew Cagney
4fcf66da88
Replace strsave() with xstrdup().
2001-01-31 01:24:03 +00:00
Michael Snyder
9dcb560c82
2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
...
* mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
2001-01-04 23:22:45 +00:00
Kevin Buettner
b8c9b27d1e
Replace free() with xfree().
2000-12-15 01:01:51 +00:00
Andrew Cagney
88c72b7d71
Multiarch STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM,
...
DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM.
2000-12-04 04:01:16 +00:00
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.
2000-12-02 13:25:26 +00:00
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.
-------------------------------------------------------------------
2000-10-30 21:50:58 +00:00
David Anderson
7e73cedf75
Corrected spelling errors in comments.
...
gdbarch.{c,sh} removed a word from a comment.
2000-10-27 15:02:42 +00:00
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.
2000-10-25 20:06:30 +00:00
David Anderson
e26cc3490a
Corrected spelling errors in comments
2000-10-23 22:49:29 +00:00
Andrew Cagney
9103eae082
Check arches->gdbarch and not current_gdbarch when looking for a match.
2000-08-19 05:32:23 +00:00
Kevin Buettner
fba45db2fa
Protoization.
2000-07-30 01:48:28 +00:00
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.
2000-07-11 11:02:11 +00:00
Andrew Cagney
6c997a3432
Force MIPS to sign-extend any addresses read from registers.
2000-07-11 10:24:25 +00:00
Andrew Cagney
4014092b58
Move the ``set mask-address'' command to remote-mips.c. Disable
...
address masking in mips-tdep.c.
2000-07-11 09:25:22 +00:00
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.
2000-07-10 15:09:23 +00:00
Andrew Cagney
f7b9e9fc07
More mult-arch conversions: IEEE_FLOAT, SKIP_PROLOGUE,
...
SAVED_PC_AFTER_CALL, DECR_PC_AFTER_BREAK, BREAKPOINT_FROM_PC,
INNER_THAN.
2000-07-07 09:19:03 +00:00
Michael Snyder
65c1106637
2000-07-06 Michael Snyder <msnyder@cleaver.cygnus.com>
...
* mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
2000-07-06 23:17:32 +00:00
Andrew Cagney
566f0f7aa5
For EABI, start allocting space on the stack when the registers are
...
full. Not when the number of args == 8.
2000-06-23 11:06:31 +00:00
Andrew Cagney
f09ded2422
When FP registers are full, store FP arguments on stack and not in
...
integer registers.
2000-06-23 07:44:00 +00:00
Andrew Cagney
9ace04976e
Add ``set debug mips'' command. Add much debugging.
2000-06-17 15:18:21 +00:00
Andrew Cagney
9a0149c65a
For MIPS_EABI, squeeze simple floating point structs into an FP register.
2000-06-17 14:33:56 +00:00
Andrew Cagney
4a7f7ba82c
EABI64 was selecting EABI32
2000-06-17 05:42:50 +00:00
Andrew Cagney
5213ab0692
Multi-arch GDB_TARGET_IS_MIPS64.
2000-06-12 04:35:39 +00:00
Andrew Cagney
2475bac391
Print all known but not yet multi-arched values.
2000-06-12 03:33:26 +00:00
Andrew Cagney
4b9b395931
Re-implement gdbach_dump() so that it prints out the macro values.
...
Add ``maint print arch'' command.
Add ``gdbarch_register()'' function that also takes gdbarch_dump_tdep().
Use in mips-tdep.c.
2000-06-10 05:37:47 +00:00
Andrew Cagney
bf64bfd6ba
MIPS is always multi-arch enabled.
2000-06-08 06:35:40 +00:00