aboutsummaryrefslogtreecommitdiff
path: root/gdb/mn10300-tdep.c
AgeCommit message (Collapse)AuthorFilesLines
2002-06-17* gdbarch.sh (REGISTER_NAME): Change return type a constant stringAndrew Cagney1-2/+2
pointer. * gdbarch.h, gdbarch.c: Regenerate. * config/mips/tm-mips.h (mips_register_name): Update. * i386-tdep.h (i386_register_name): Update. * mips-tdep.c (mips_register_name): Update * alpha-tdep.c (alpha_register_name): Update. * arch-utils.c (legacy_register_name): Update. * arch-utils.h (legacy_register_name): Update. * avr-tdep.c (avr_register_name): Update. * ia64-tdep.c (ia64_register_name): Update. * i386-tdep.c (i386_register_name): Update. * sparc-tdep.c (sparc32_register_name): Update. (sparc64_register_name): Update. (sparclite_register_name): Update. (sparclet_register_name): * sh-tdep.c (sh_generic_register_name): Update. (sh_sh_register_name): Update. (sh_sh3_register_name): Update. (sh_sh3e_register_name): Update. (sh_sh_dsp_register_name): Update. (sh_sh3_dsp_register_name): Update. (sh_sh4_register_name): Update. (sh_sh64_register_name): Update. * s390-tdep.c (s390_register_name): Update. * rs6000-tdep.c (rs6000_register_name): Update. * ns32k-tdep.c (ns32k_register_name_32082): Update. (ns32k_register_name_32382): Update. * d10v-tdep.c (d10v_ts2_register_name): Update. (d10v_ts3_register_name): Update. * xstormy16-tdep.c (xstormy16_register_name): Update. * vax-tdep.c (vax_register_name): Update. * v850-tdep.c (v850_register_name): Update. * m68hc11-tdep.c (m68hc11_register_name): Update. * mn10300-tdep.c (mn10300_generic_register_name): Update. (am33_register_name): Update.
2002-06-14+ * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): RenameAndrew Cagney1-2/+2
+ EXTRACT_RETURN_VALUE. + (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename + EXTRACT_STRUCT_VALUE_ADDRESS. + * gdbarch.h, gdbarch.c: Regenerate. + + * values.c (value_being_returned): Handle + DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS. + (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE. + + * arm-linux-tdep.c (arm_linux_init_abi): Update. + * arm-tdep.c (arm_gdbarch_init): Update. + * avr-tdep.c (avr_gdbarch_init): Update. + * cris-tdep.c (cris_gdbarch_init): Update. + * d10v-tdep.c (d10v_gdbarch_init): Update. + * ia64-tdep.c (ia64_gdbarch_init): Update. + * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. + * rs6000-tdep.c (rs6000_gdbarch_init): Update. + * s390-tdep.c (s390_gdbarch_init): Update. + * sh-tdep.c (sh_gdbarch_init): Update. + * s390-tdep.c (s390_gdbarch_init): Update. + * sparc-tdep.c (sparc_gdbarch_init): Update. + * ns32k-tdep.c (ns32k_gdbarch_init): Update. + * v850-tdep.c (v850_gdbarch_init): Update. + * vax-tdep.c (vax_gdbarch_init): Update. + * x86-64-tdep.c (x86_64_gdbarch_init): Update. + * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. + + * config/arc/tm-arc.h: Update. + * config/d30v/tm-d30v.h: Update. + * config/fr30/tm-fr30.h: Update. + * config/h8300/tm-h8300.h: Update. * config/h8500/tm-h8500.h: Update. * config/i386/tm-i386.h: Update. * config/i386/tm-ptx.h: Update. * config/i386/tm-symmetry.h: Update. * config/i960/tm-i960.h: Update. * config/m32r/tm-m32r.h: Update. * config/m68k/tm-delta68.h: Update. * config/m68k/tm-linux.h: Update. * config/m68k/tm-m68k.h: Update. * config/m88k/tm-m88k.h: Update. * config/mcore/tm-mcore.h: Update. * config/mips/tm-mips.h: Update. * config/mn10200/tm-mn10200.h: Update. * config/pa/tm-hppa.h: Update. * config/pa/tm-hppa64.h: Update. * config/sparc/tm-sp64.h: Update. * config/sparc/tm-sparc.h: Update. * config/sparc/tm-sparclet.h: Update. * config/z8k/tm-z8k.h: Update.
2002-04-18* gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.Andrew Cagney1-1/+1
* gdbarch.h, gdbarch.c: Regenerate. * defs.h (breakpoint_from_pc_fn): Delete type definition. * target.h (memory_breakpoint_from_pc): Update declaration. * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto. * arch-utils.c (legacy_breakpoint_from_pc): Update return type. * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto. * mem-break.c (memory_breakpoint_from_pc): Ditto. * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto. * s390-tdep.c (s390_breakpoint_from_pc): Ditto * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto. * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto. * mips-tdep.c (mips_breakpoint_from_pc): Ditto. * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto. * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto. * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto. * arch-utils.c (legacy_breakpoint_from_pc): Ditto.. * mem-break.c (default_memory_insert_breakpoint): Make `bp' a const pointer. * monitor.c (monitor_insert_breakpoint): Ditto. * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'. * config/mcore/tm-mcore.h: Update copyright. * mem-break.c: Ditto. * xstormy16-tdep.c: Ditto.
2002-04-12* defs.h (read_relative_register_raw_bytes): Delete declaration.Andrew Cagney1-3/+4
* frame.c (frame_register_read): New function. Return non-zero on success. (read_relative_register_raw_bytes_for_frame): Delete. (read_relative_register_raw_bytes): Delete. * frame.h (frame_register_read): Declare. * d30v-tdep.c: Update Copyright. Use frame_register_read. * sh-tdep.c: Ditto. * infcmd.c (do_registers_info): Ditto. * hppa-tdep.c: Ditto. * rs6000-tdep.c: Ditto. * h8500-tdep.c: Ditto. * mips-tdep.c: Ditto. * h8300-tdep.c: Ditto. * z8k-tdep.c: Ditto.
2002-01-05s/BIG_ENDIAN/BFD_ENDIAN_BIG/Andrew Cagney1-1/+1
2001-11-25* mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.Jim Blandy1-1/+5
2001-10-10* mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.Jim Blandy1-11/+55
2001-08-12* config/mn10300/mn10300.mt (TM_FILE): Delete.Andrew Cagney1-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.
2001-08-12* config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.Andrew Cagney1-0/+2
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and sp_regnum.
2001-08-12* config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.Andrew Cagney1-0/+1
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2001-08-11* target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.Andrew Cagney1-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.
2001-05-09* mn10300-tdep.c (mn10300_extract_return_value): Mark this asJim Blandy1-1/+1
static. (This was accidentally omitted from the earlier patch.)
2001-05-09* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.Jim Blandy1-0/+30
(mn10300_gdbarch_init): Register it as the architecture's dwarf2_reg_to_regnum method.
2001-05-09Correct and expand handling of `movm' instruction, and registerJim Blandy1-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.
2001-05-09* mn10300-tdep.c (mn10300_gdbarch_init): We do have aJim Blandy1-1/+2
dummy_breakpoint_offset; it's zero.
2001-05-09* mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specificJim Blandy1-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.
2001-05-09* mn10300-tdep.c (mn10300_saved_pc_after_call,Jim Blandy1-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.
2001-05-09* mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methodsJim Blandy1-18/+24
in some rational order.
2001-05-09* mn10300-tdep.c (mn10300_gdbarch_init): Rather than usingJim Blandy1-1/+1
generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
2001-05-09Use gdbarch for most target parameters for the MN10300, ratherJim Blandy1-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.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+1
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-0/+1
2001-02-08Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney1-2/+4
internal_verror().
2000-08-12Add formatted register info.Andrew Cagney1-1/+118
Convert more of mn10300 to multi-arch. Fix mips vs mn10300
2000-08-11Enable multi-arch for the mn10300.Andrew Cagney1-38/+109
2000-07-30Protoization.Kevin Buettner1-60/+23
2000-05-28PARAMS removal.Kevin Buettner1-3/+3
1999-12-07import gdb-1999-12-06 snapshotJason Molenda1-0/+35
1999-09-22import gdb-1999-09-21Jason Molenda1-0/+1
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-85/+86
1999-07-05import gdb-1999-07-05 snapshotJason Molenda1-1/+3
1999-06-14import gdb-1999-06-14 snapshotJason Molenda1-8/+54
1999-04-26import gdb-19990422 snapshotStan Shebs1-13/+0
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+791
1999-04-16Initial creation of sourceware repositoryStan Shebs1-815/+0
1998-12-10CARP:Andrew Cagney1-7/+46
Rename REGISTER_NAMES{} -> REGISTER_NAME().
1998-11-24CARP: *BREAKPOINT*Andrew Cagney1-0/+17
Convert mn10300, MIPS and powerpc/rs6000 targets to use BREAKPOINT_FROM_PC Delete global variable memory_breakpoint_size. Use BREAKPOINT_FROM_PC instead.
1998-11-23CARP: Convert macro definitions of USE_STRUCT_CONVENTION into targetAndrew Cagney1-1/+12
specific functions.
1998-09-03 * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be aMark Alexander1-57/+115
pseudo-register, not the same as a3. (D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define. * mn10300-tdep.c (fix_frame_pointer): New function. (set_movm_offsets): Use register number macros instead of hard-coded constants. (mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM. (mn10300_frame_chain): Fix to handle redefinition of FP_REGNUM; use register number macros instead of hard-coded constants; add missing parameter to call of mn10300_analyze_prologue. (mn10300_frame_saved_pc): Use register number macros instead of hard-coded constants.
1998-07-27 * mn10300-tdep.c (mn10300_analyze_prologue): Undo previous fixMark Alexander1-3/+4
for setting frame address in optimized code; made unnecessary by compiler fixes.
1998-07-27 * mn10300-tdep.c (mn10300_frame_chain): Account for space savedJeff Law1-1/+13
by am33 register saves. (mn10300_frame_saved_pc): Similarly.
1998-07-24 * mn10300-tdep.c (set_movm_offsets): New helper functionMark Alexander1-157/+456
for mn10300_analyze_prologue. (mn10300_analyze_prologue): Simplify by factoring out common code. Fix bugs in setting frame address for optimized code. Use read_memory_nobpt instead of target_read_memory.
1997-02-02Committing sanitize changesGeoffrey Noer1-1/+1
1997-01-22Tue Jan 21 17:03:26 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-219/+110
* mn10300-tdep.c: wrote/fixed implementations of mn10300_frame_chain, mn10300_init_extra_frame_info, mn10300_frame_saved_pc * config/mn10300/tm-mn10300.h: redefine INIT_EXTRA_FRAME_INFO and INIT_FRAME_PC macros Backtracing starting to work correctly.
1997-01-03Fri Jan 3 14:20:05 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-5/+348
* mn10300-tdep.c (mn10300_push_arguments): rewrote also removed code elsewhere that made use of RP_REGNUM
1996-12-09Mon Dec 9 00:14:49 1996 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+144
* config/mn10300/tm-mn10300.h: fix register names * mn10300-tdep.c: new skeleton tdep for mn10300