summaryrefslogtreecommitdiff
path: root/gdb/mn10300-tdep.c
Commit message (Collapse)AuthorAgeFilesLines
* s/BIG_ENDIAN/BFD_ENDIAN_BIG/Andrew Cagney2002-01-051-1/+1
|
* * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.Jim Blandy2001-11-251-1/+5
|
* * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.Jim Blandy2001-10-101-11/+55
|
* * config/mn10300/mn10300.mt (TM_FILE): Delete.Andrew Cagney2001-08-121-0/+27
| | | | | | * configure.tgt: Add mn10300 to list of mulit-arch targets. * config/mn10300/tm-mn10300.h: Delete file. Move contents ... * mn10300-tdep.c: To here.
* * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.Andrew Cagney2001-08-121-0/+2
| | | | | * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and sp_regnum.
* * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.Andrew Cagney2001-08-121-0/+1
| | | | * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
* * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.Andrew Cagney2001-08-111-2/+5
| | | | | | | | | | | | | | | | | | | | * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add. * gdbarch.h, gdbarch.c: Regenerate. * arch-utils.h (legacy_virtual_frame_pointer): Declare. * arch-utils.c: Include "gdb_assert.h". (legacy_virtual_frame_pointer): Define. * Makefile.in (arch-utils.o): Depends on gdb_assert.h. * tracepoint.c (encode_actions): Make frame_reg an int. Make frame_offset a LONGEST. * ax-gdb.c (gen_frame_args_address): Ditto. (gen_frame_locals_address): Ditto. * mn10300-tdep.c (mn10300_gdbarch_init): Initialize virtual_frame_pointer. (mn10300_virtual_frame_pointer): Make static. Update parameter list to match function signature. * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
* * mn10300-tdep.c (mn10300_extract_return_value): Mark this asJim Blandy2001-05-091-1/+1
| | | | static. (This was accidentally omitted from the earlier patch.)
* * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.Jim Blandy2001-05-091-0/+30
| | | | | (mn10300_gdbarch_init): Register it as the architecture's dwarf2_reg_to_regnum method.
* Correct and expand handling of `movm' instruction, and registerJim Blandy2001-05-091-35/+71
| | | | | | | | | | | | | | saves in general. * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM, MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions. (enum movm_register_bits): New enum. * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the bits, not hex literals. Handle the `other', `exreg0', and `exother' bits. Correct handling of `exreg1': it saves r4, r5, r6, and r7, not r2, r3, r4, and r5. (saved_regs_size): New function. (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead of computing the same thing inline, incorrectly.
* * mn10300-tdep.c (mn10300_gdbarch_init): We do have aJim Blandy2001-05-091-1/+2
| | | | dummy_breakpoint_offset; it's zero.
* * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specificJim Blandy2001-05-091-25/+29
| | | | | | | | | | | | stuff out into mn10300_pop_frame_regular, and use generic_pop_current_frame. This lets us share code, and also makes this function's prototype match that expected by gdbarch. Make this function static. (mn10300_pop_frame_regular): New function. (mn10300_gdbarch_init): Register mn10300_pop_frame as the gdbarch's pop_frame method. * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition. (mn10300_pop_frame): Delete declaration.
* * mn10300-tdep.c (mn10300_saved_pc_after_call,Jim Blandy2001-05-091-13/+13
| | | | | | | | | | | | mn10300_extract_return_value, mn10300_extract_struct_value_address, mn10300_store_return_value, mn10300_use_struct_convention, mn10300_breakpoint_from_pc, mn10300_frame_chain, mn10300_skip_prologue, mn10300_push_arguments, mn10300_push_return_address, mn10300_store_struct_return, mn10300_frame_saved_pc, mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs): Make these functions static; they should only be visible to the outside world as gdbarch methods.
* * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methodsJim Blandy2001-05-091-18/+24
| | | | in some rational order.
* * mn10300-tdep.c (mn10300_gdbarch_init): Rather than usingJim Blandy2001-05-091-1/+1
| | | | generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
* Use gdbarch for most target parameters for the MN10300, ratherJim Blandy2001-05-091-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | than the tm-*.h file. * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN, SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC, EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS, STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS, TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY, REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER): Delete definitions. We register gdbarch methods for these now. (struct frame_info, struct type, struct value): Delete forward declarations of these types; they're no longer necessary, since we don't have function declarations here any more. * mn10300-tdep.c: #include "arch-utils.h", to get declarations for some default gdbarch methods. (mn10300_store_struct_return): Return void, as expected by gdbarch. (mn10300_init_extra_frame_info): Take initial `fromleaf' argument, as expected by gdbarch. (mn10300_frame_init_saved_regs): Provide dummy definition for this, as required by gdbarch. (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected by gdbarch. Register gdbarch methods or values for all the stuff removed from tm-10300.h, listed above.
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+1
|
* Create new file regcache.h. Update all uses.Andrew Cagney2001-03-011-0/+1
|
* Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney2001-02-081-2/+4
| | | | internal_verror().
* Add formatted register info.Andrew Cagney2000-08-121-1/+118
| | | | | Convert more of mn10300 to multi-arch. Fix mips vs mn10300
* Enable multi-arch for the mn10300.Andrew Cagney2000-08-111-38/+109
|
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-60/+23
|
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-3/+3
|
* import gdb-1999-12-06 snapshotJason Molenda1999-12-071-0/+35
|
* import gdb-1999-09-21Jason Molenda1999-09-221-0/+1
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-85/+86
|
* import gdb-1999-07-05 snapshotJason Molenda1999-07-051-1/+3
|
* import gdb-1999-06-14 snapshotJason Molenda1999-06-141-8/+54
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-13/+0
|
* Initial revisionStan Shebs1999-04-161-0/+791