summaryrefslogtreecommitdiff
path: root/gdb/config/sh
Commit message (Collapse)AuthorAgeFilesLines
* * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xmAndrew Cagney2002-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | includes. * config/tm-linux.h: Ditto. * config/alpha/tm-alphalinux.h: Ditto. * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto. * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto. * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto. * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto. * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto. * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto. * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto. * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto. * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto. * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto. * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto. * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto. * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto. * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto. * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto. * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto. * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto. * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto. * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto. * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto. * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto. * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto. * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto. * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto. * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto. * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto. * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto. * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto. * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto. * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto. * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto. * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto. * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto. * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto. * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto. * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto. * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
* * Makefile.in (sh_tdep_h): Define and use.Jason Thorpe2002-05-171-94/+0
| | | | | | | | | * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep, register enum): Move to... * * sh-tdep.h: ...here. * sh-tdep.c: Include sh-tdep.h. * sh3-rom.c: Likewise. * shnbsd-tdep.c: Likewise.
* * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.Jason Thorpe2002-05-111-1/+1
| | | | | | | | | | | | | | | | | (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list. (nbsd-tdep.o): New dependency list. * alphanbsd-tdep.c: Don't include solib-svr4.h. Include nbsd-tdep.h. (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove. (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets. * nbsd-tdep.c: New file. * nbsd-tdep.h: New file. * shnbsd-tdep.c: Don't include solib-svr4.h. Include nbsd-tdep.h. (shnbsd_solib_svr4_fetch_link_map_offsets): Remove. (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets. * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o. * config/sh/nbsd.mt (TDEPFILES): Ditto.
* 2002-05-10 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-05-101-6/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New support for sh64-elf (sh5) target. * configure.tgt: For sh64-elf target, default to sh-elf. * config/sh/tm-sh.h (enum sh-abi): Possible ABI's. (struct gdbarch_tdep): Add new fields for new registers and ABI info. * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h. (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT, MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR, UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR, IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15, IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA, IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA, IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0, IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV, IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV, IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros. (sh_sh64_register_name, sh64_elf_make_msymbol_special, pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves, sh64_skip_prologue_hard_way, sh64_use_struct_convention, gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain, sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo, sh64_get_gdb_regnum, sh64_media_reg_base_num, sh64_compact_reg_base_num, translate_rn_to_arch_reg_num, sign_extend, sh64_nofp_frame_init_saved_regs, sh64_init_extra_frame_info, sh64_get_saved_register, sh64_extract_struct_value_address, sh64_pop_frame, sh64_push_arguments, sh64_extract_return_value, sh64_store_return_value, sh64_show_media_regs, sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte, sh_sh64_register_raw_size, sh_sh64_register_virtual_size, sh_sh64_register_virtual_type, sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw, sh64_pseudo_register_read, sh64_register_read, sh64_pseudo_register_write, sh64_register_write, do_fv_c_register_info, do_dr_c_register_info, do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info, sh64_do_pseudo_register, sh_compact_do_registers_info, sh64_do_registers_info, sh_gdbarch_init): New functions.
* * sh-nbsd-nat.c: Rename to...Jason Thorpe2002-05-082-2/+2
| | | | | | | | | | * shnbsd-nat.c: ...this. * sh-nbsd-tdep.c: Rename to... * shnbsd-tdep.c: ...this. * sh-nbsd-tdep.h: Rename to... * shnbsd-tdep.h: ...this. * config/sh/nbsd.mh: Use shnbsd-nat.o. * config/sh/nbsd.mt: Use shnbsd-tdep.o.
* * NEWS: Note new sh*-*-netbsdelf* configuration.Jason Thorpe2002-05-084-0/+66
| | | | | | | | | | | | | | * configure.host: Set gdb_host_cpu to sh for all sh*. (sh*-*-netbsdelf*): New host. * configure.tgt: Set gdb_target_cpu to sh for all sh*. (sh*-*-netbsdelf*): New target. * sh-nbsd-nat.c: New file. * sh-nbsd-tdep.c: New file. * sh-nbsd-tdep.h: New file. * config/sh/nbsd.mh: New file. * config/sh/nbsd.mt: New file. * config/sh/nm-nbsd.h: New file. * config/sh/tm-nbsd.h: New file.
* * sh-tdep.c (sh_osabi_names): Declare.Jason Thorpe2002-05-081-1/+14
| | | | | | | | | | | (process_note_abi_tag_sections): New function. (get_elfosabi): Ditto. (sh_gdbarch_register_os_abi): Ditto. (sh_dump_tdep): Ditto. _initialize_sh_tdep): Use gdbarch_register to register sh_gdbarch_init and sh_dump_tdep. * config/sh/tm-sh.h (sh_osabi): Declare. (gdbarch_tdep): Add sh_osabi and osabi_name members.
* s/Linux/.../Andrew Cagney2002-02-241-3/+5
| | | | Fix PR gdb/378.
* 2002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-02-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/arm/linux.mt: Update GDBSERVER_DEPFILES. * config/i386/linux.mt: Likewise. * config/ia64/linux.mt: Likewise. * config/m68k/linux.mh: Likewise. * config/powerpc/linux.mh: Likewise. * config/mips/linux.mt: Likewise. * config/sh/linux.mt: Add GDBSERVER_DEPFILES. * config/i386/i386lynx.mh: Mark gdbserver variables as (currently) obsolete for this target. * config/i386/nbsd.mt: Likewise. * config/i386/nbsdelf.mt: Likewise. * config/m32r/m32r.mt: Likewise. * config/m68k/m68klynx.mh: Likewise. * config/m68k/nbsd.mt: Likewise. * config/m68k/sun3os4.mh: Likewise. * config/mips/vr5000.mt: Likewise. * config/ns32k/nbsd.mt: Likewise. * config/pa/hppabsd.mh: Likewise. * config/pa/hppaosf.mh: Likewise. * config/powerpc/nbsd.mt: Likewise. * config/rs6000/rs6000lynx.mh: Likewise. * config/s390/s390.mt: Likewise. * config/s390/s390x.mt: Likewise. * config/sparc/sparclynx.mh: Likewise. * config/sparc/sun4os4.mh: Likewise. * config/i386/x86-64linux.mt: Likewise. * config/sparc/linux.mh: Likewise.
* Eliminate TARGET_BYTE_ORDER.Andrew Cagney2002-01-291-1/+0
|
* Assume TARGET_BYTE_ORDER_SELECTABLE{,_P} is always true.Andrew Cagney2002-01-201-1/+0
|
* LITTLE_ENDIAN -> BFD_ENDIAN_LITTLEAndrew Cagney2001-12-151-1/+1
|
* 2001-07-11 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-07-121-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/sh/tm-sh.h (struct gdbarch_tdep): Add FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM, PR_REGNUM fields. * sh-tdep.c (sh_skip_prologue_hard_way): Rename from skip_prologue_hard_way(). (skip_prologue_hard_way): Make it a function pointer. (sh_print_register): Use function pointer do_pseudo_register, instead of sh_do_pseudo_register. (sh_do_registers_info): Ditto. (sh_gdbarch_init): Initialize do_pseudo_register. (IS_MOV_TO_R14): Rename from IS_MOV_R14. (skip_prologue_hard_way): Update. (sh_gdbarch_init): Move setting of frame_chain, get_saved_register, init_extra_frame_info, push_arguments, extract_return_value, pop_frame, store_struct_return, extract_struct_value_address, use_struct_convention, init_extra_frame_info to before target specific settings. (sh_gdbarch_init): Initialize new tdep fields FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM, PR_REGNUM. (sh_push_arguments): Use new gdbarch_tdep fields {ARG0,ARGLAST}_REGNUM. (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs, sh_init_extra_frame_info, sh_push_return_address, sh_generic_show_regs, sh3_show_regs, sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use gdbarch_tdep->PR_REGNUM. (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
* Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().Andrew Cagney2001-03-201-1/+1
|
* Cleanup solib-svr4.c by moving legacy code out to its own file.Kevin Buettner2001-03-101-1/+1
|
* Update/correct copyright notices.Kevin Buettner2001-03-063-3/+4
|
* * configure/sh/embed.mt: New file.J.T. Conklin2001-01-302-1/+7
| | | | | | | * configure/sh/linux.mt: New file. * configure/sh/sh.mt: Removed. * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets. (sh-*-*): Removed.
* 2000-12-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-12-181-6/+0
| | | | | | | * sh-tdep.c (sh_gdbarch_init): Initialize do_registers_info. * config/sh/tm-sh.h (DO_REGISTERS_INFO): Remove macro. Use multiarch version instead.
* 2000-12-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-12-181-1/+2
| | | | * config/sh/tm-sh.h: Don't remove SR_REGNUM from enum.
* 2000-12-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-12-151-2/+2
| | | | | | | | | * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): SR_REGNUM is now part of gdbarch_tdep structure. (sh_gdbarch_init): Initialize SR_REGNUM. * config/sh/tm-sh.h (struct gdbarch_tdep): Add field SR_REGNUM.
* 2000-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-12-071-3/+3
| | | | | | | | | | | | | | | | * config/sh/tm-sh.h (struct gdbarch_tdep): Rename fields {FP15,DR14,FV12}_REGNUM to {FP,DR,FV}_LAST_REGNUM. * sh-tdep.c (sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type, sh_do_registers_info, sh_gdbarch_init, sh_sh4_register_byte, sh_sh4_register_raw_size, sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual, sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register, sh_store_pseudo_register, sh_do_pseudo_register): Ditto. * sh-tdep.c (sh_gdbarch_init): Use a function pointer to set the disassembly print function. (_initialize_sh_tdep): Initialize tm_print_insn using the function pointer.
* 2000-12-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-12-051-8/+0
| | | | | | | | * config/sh/tm-sh.h (struct gdbarch_tdep): Get rid of DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM, they are not used anywhere. * sh-tdep.c (sh_gdbarch_init): Don't initialize DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM.
* 2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2000-10-312-2/+32
| | | | | | | | | | | | | | | | | | | * config/sh/tm-linux.h: New file. Include generic tm-linux.h, plus tm-sh.h, then define SVR4_FETCH_LINK_MAP_OFFSETS to use the sh target function instead of the default link map offsets. * config/sh/sh.mt: Add solib.o and solib-svr4.o to TDEPFILES. Use sh/tm-linux.h instead of sh/tm-sh.h. * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): New function. Construct target-specific link map offsets. * i386-linux-tdep.c (i386_linux_svr4_fetch_link_map_offsets: New function. Construct target-specific link map offsets. * config/i386/tm-linux.h: Use above function instead of default. 2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com> * config/i386/tm-linux.h: Remove definition of SVR4_SHARED_LIBS, and inclusion of solib.h. Move up into ../tm-linux.h. config/tm-linux.h: Define SVR4_SHARED_LIBS, include solib.h.
* 2000-07-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-07-261-12/+12
| | | | | | | | | | | * sh-tdep.c (sh_sh4_register_name, sh_sh4_register_byte, sh_sh4_register_raw_size, sh_sh4_register_virtual_type, sh_fetch_pseudo_register, sh_store_pseudo_register, sh_do_pseudo_register, sh_gdbarch_init): Fix names for pseudoregs, they should be numbered as drx fvy where x and y are multiples of 2 and 4 respectively. * config/sh/tm-sh.h: Fix names of pseudo regs.
* 2000-07-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-07-241-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/sh/tm-sh.h (struct gdbarch_tdep): Add sh4 specific pseudo registers. (DO_REGISTERS_INFO): Define. * sh-tdep.c (sh_sh4_register_name): New function. (sh_generic_show_regs, sh3_show_regs, sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update signature. (sh_show_regs_command): New function. Actual function called by the 'regs' command. (sh_register_byte): Rename to... (sh_default_register_byte): ...New function. (sh_sh4_register_byte): New function. (sh_register_raw_size): Rename to... (sh_default_register_raw_size): ...New function. (sh_sh4_register_raw_size): New function. (sh_sh4_register_virtual_type): New function. (sh_sh4_build_float_register_type): New function. (sh_fetch_pseudo_register, sh_store_pseudo_register): New functions. (fv_reg_base_num, dr_reg_base_num): New functions. (do_fv_register_info, do_dr_register_info, sh_do_pseudo_register, sh_do_fp_register, sh_do_register, sh_print_register, sh_do_registers_info): New functions. (sh_gdbarch_init): Initialize sh4 pseudo registers to -1. Update architecture specific parts. (_initialize_sh_tdep): Use sh_show_regs_command for 'regs' command.
* 2000-07-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-07-191-270/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Multiarch the sh target. * sh-tdep.c: (sh_generic_reg_names, sh_reg_names,sh3_reg_names, sh3e_reg_names, sh_dsp_reg_names, sh3_dsp_reg_names, sh_processor_type_table): Remove. (XMALLOC): Define. (struct frame_extra_info): Define. (sh_register_raw_size, sh_register_virtual_size, sh_register_virtual_type, sh_register_byte, sh_breakpoint_from_pc, sh_frame_saved_pc, sh_skip_prologue, sh_nofp_frame_init_saved_regs, sh_fp_frame_init_saved_regs, sh_extract_struct_value_address, sh_use_struct_convention, sh_store_struct_return, sh_push_arguments, sh_push_return_address, sh_saved_pc_after_call, sh_generic_register_name, sh_sh_register_name, sh_sh3_register_name, sh_sh3e_register_name, sh_sh_dsp_register_name, sh_sh3_dsp_register_name, sh_frame_args_address, sh_frame_locals_address, sh_coerce_float_to_double, sh_default_store_return_value, sh3e_sh4_store_return_value, sh_generic_show_regs, sh3_show_regs,sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs, sh_register_byte, sh_register_raw_size, sh_register_virtual_size, sh_sh3e_register_virtual_type, sh_default_register_virtual_type, sh_gdbarch_init): New functions. (sh_target_architecture_hook, sh_frame_find_saved_regs, sh_show_regs): Delete functions. (sh_frame_chain, sh_find_callers_reg, sh_init_extra_frame_info, sh_pop_frame, sh_extract_return_value): Update * config/sh/tm-sh.h (GDB_MULTI_ARCH): Define to 1. (struct gdbarch_tdep): Define. Remove all unnecessary defines. * remote-e7000.c ({PR,GBR,SR,MACL,VBR,MACH}_REGNUM): Define to -1, for h8300 case. (want_sh,want_nopc_sh,want_nopc_sh3): Make nomenclature consistent. (e7000_fetch_registers): Remove ifdef GDB_TARGET_IS_SH, use runtime check instead. (e7000_wait): Ditto. * sh3-rom.c (sh3_supply_register): Use gdbarch_tdep to get the SSR and SPC register numbers. (sh3_regnames, sh3e_regnames): Don't specify a size. * config/h8300/tm-h8300.h: Add comment.
* 2000-07-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-07-101-4/+3
| | | | | | | | | | | | | | | | | | | * config/sh/tm-sh.h (STORE_RETURN_VALUE): Redefine as sh_store_return_value(). * sh-tdep.c (sh_store_return_value): New function. Store the value returned by a function into the appropriate register. 2000-07-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com> * sh-tdep.c (sh_skip_prologue): Before looking at the actual instructions, try to see if the symbol table can be of help, by calling after_prologue(). If this doesn't work, call skip_prologue_hard_way(). (skip_prologue_hard_way): Renamed from sh_skip_prologue. Add some more instruction pattern matching for pushing of arguments, and manipulation of r14. (after_prologue): New function. Use symbol table info to determine the end of the prologue, if possible.
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-13/+13
|
* sh-dsp support, simulator speedup by using host byte order:Joern Rennecke2000-05-151-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sim: * Makefile.in (interp.o): Depends on ppi.c . (ppi.c): New rule. * gencode.c (printonmatch, think, genopc): Deleted. (MAX_NR_STUFF): Now 42. (tab): Add SH-DSP CPU instructions. Amalgamate ldc / stc / lds / sts instructions with similar bit patterns. Fix opcodes of stc Rm_BANK,@-<REG_N>. Fix semantics of lds.l @<REG_N>+,MACH (no sign extend). (movsxy_tab): New array. For movs, change MMMM field to GGGG, and mmmm field to MMMM. Added entries for movx, movy and parallel processing insns. (ppi_tab): New array. (qfunc): Stabilize sort. (expand_opcode): Handle [01][01]NN, [01][01]xx and [01][01]yy. Handle 'M', 'G' 's' 'X', 'a', 'Y' and 'A'. (dumptable): Now takes three arguments. Changed all callers. Emit just one contigous jump table. (filltable): Now takes an argument. Changed all callers. Make index static. (ppi_moves, expand_ppi_code, ppi_filltable, ppi_gensim): New functions. (gensim_caselist): New function, broken out of gensim. Handle opcode fields 'x', 'y', 's', 'M', 'G', 'X', 'a', and 'Y'. Handle ref '9'. (gensim): Handle 'N' in code field and '8' in refs field. Call gensim_caselist - twice. (ppi_index): New static variable. (main): Unsupport default action. Add dsp support for -x / -s option. Add -p option. * interp.c (sh_jump_table, sh_dsp_table, ppi_table): Declare. (saved_state_type): Rearrange to allow amalgamated ldc / stc / lds / sts to work efficiently. (target_dsp): New static variable. (GBR, VBR, SSR, SPC, MACH, MACL): Reflect saved_state_type change. (FPUL, Rn_BANK, SET_Rn_BANK, M, Q, S, T, SR_BL, SR_RB): Likewise. (SR_MD, SR_RC, SET_SR_BIT, GET_SR, SET_RC, GET_FPSCR): Likewise. (RS, RE, MOD, MOD_ME, DSP_R): Likewise. (set_fpscr1): Likewise. Use target_dsp to check for dsp. (MOD_MSi, SIG_BUS_FETCH): Deleted. (CREG, SREG, PR, SR_MASK_DMY, SR_MASK_DMX, SR_DMY): New macros. (SR_DMX, DSR, MOD_DELTA, GET_DSP_GRD): Likewise. (SET_MOD): Reflect saved_state_type change. Set MOD_DELTA instead of MOD_MS, and encode SR_DMY / SR_DMX into high word of MOD_ME. (set_sr): Reflect saved_state_type change. Fix SR_RB handling. Use SET_MOD. (MA, L, TL, TB): Now controlled by ACE_FAST. (SEXT32): Just cast to int. (SIGN32): Fixed to only shift by 31. (CHECK_INSN_PTR): SIGBUS at insn fetch now represented by insn_end 0. (ppi_insn): Declare. (ppi.c): Include. (init_dsp): Set target_dsp. When it changes, switch end of sh_jump_table with sh_dsp_table. (sim_resume) Don't declare sh_jump_table0. Use sh_jump_table instead. Don't Declare PR if it's #defined. Fix single-stepping (Was broken in Mar 6 16:59:10 patch). (sim_store_register, sim_read_register): Translate accesses to reflect saved_state_type change. * interp.c (set_sr): Set sr. (SET_RC, MOD, MOD_MS, MOD_ME, SET_MOD, MOD_MS, MOD_ME): New macros. (set_fpscr1): Don't bank-switch fpu registers when simulating sh-dsp. (DSP_R): Fix definition. (sim_resume): Remove outdated SET_SR use. * interp.c (saved_state): New members for struct member asregs: rs, re, insn_end, xram_start, yram_start. (struct loop_bounds): New struct. (SKIP_INSN): New macro. (get_loop_bounds): New function. (endianw): Renamed to global_endianw. (maskw): negated bits. (PC): Now insn_ptr. (SR_MASK_RC, SR_RC_INCREMENT, SR_RC, RAISE_EXCEPTION): New macros. (RS, RE, DSP_R, DSP_GRD, A1, A0, X0, X1, Y0, Y1, M0, A1G): Likewise. (M1, A0G, RIAT, PT2H, PH2T, SET_NIP, CHECK_INSN_PTR): Likewise. (SIG_BUS_FETCH): Likewise (raise_exception, riat_fast): New functions. (raise_buserror, sim_stop): Use raise_exception. (PROCESS_SPECIAL_ADDRESS): Use xram_start / yram_start. (BUSERROR, WRITE_BUSERROR, READ_BUSERROR): Reverse sense of mask argument. (FP_OP, set_dr): Use RAISE_EXCEPTION. (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast): Declare. Remove redundant masking. (wwat_fast, rwat_fast): Add argument endianw. Changed callers. (MA): Updated for change pc -> PC. (Delay_Slot): Use RIAT. (empty): Deleted. (trap): Remove argument little_endian. Add argument endianw. Changed all callers. Use raise_exception. (macw): Add argument endainw. Changed all callers. (init_dsp): New function, extended after broken out of init_pointers. (sim_resume): Replace pc with insn_ptr. Replace little_endian with endianw. Replace nia with nip. Reverse sense of maskb / maskw / maskl. Implement logic for zero-overhead loops. Don't try to interpret garbage when getting a SIGBUS at insn fetch. (sim_open): Call init_dsp. * gencode.c (tab): Use SET_NIP instead of nia = . Use PH2T / PT2H / RAISE_EXCEPTION where appropriate. Add extra cycles for brai, braf , bsr, bsrf, jmp, jsr. * interp.c (sim_store_register, sim_fetch_register): Do proper endianness switch. * interp.c (saved_state_type): New members for struct member asregs: xymem_select, xmem, ymem, xmem_offset, ymem_offset. (special_address): Delete. (BUSERROR): Now a two-argument predicate. (PROCESS_SPECIAL_ADDRESS, WRITE_BUSERROR, READ_BUSERROR): New macros. (wlat_little, wwat_little, wbat_any, wlat_big, wwat_big): Delete. (process_wlat_addr, process_wwat_addr): New functions. (process_wbat_addr, process_rlat_addr, process_rwat_addr): Likewise. (process_rbat_addr): Likewise. (wlat_fast, wwat_fast, wbat_fast): Use WRITE_BUSERROR. (rlat_little, rwat_little, rbat_any, rlat_big, rwat_big): Delete. (rlat_fast, rwat_fast, rbat_fast): Use READ_BUSERROR. (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Delete SLOW versions. (do_rdat, trap): Delete SLOW code. (SEXT32, SIGN32): New macros. (swap, swap16): Now integer in - integer out. Changed all callers. (strswaplen, strnswap): Delete SLOW versions. (init_pointers): Initialize dsp memory selection (preliminary). (sim_store_register, sim_fetch_register): Use swap instead of big / little endian read / write functions. * interp.c (maskl): Deleted. (endianw, endianb): New variables. (special_address): Now inline. (bp_holder): Put raising of buserror there, rename to: (raise_buserror). (BUSERROR): Now yields a value. Changed all users. (wbat_big): Delete. (wlat_fast, wwat_fast, wbat_fast): New functions. (rlat_fast, rwat_fast, rbat_fast): Likewise. (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Use new functions. (do_rdat, do_wdat): Likewise. Take maskl argument instead of little_endian one. Changed caller macros. (swap, swap16): Use w[rw]lat_big / w[rw]lat_little directly. (strswaplen, strnswap): New functions. (trap): Use them to fix up endian mismatches; disable SYS_execve and SYS_execv; fix double address translation for SYS_pipe and SYS_stat. (sym_write, sym_read): Add endianness translation. (sym_store_register, sym_fetch_register): Add maskl local variable. (sim_open): Set endianw and endianb. gdb: * sh-tdep.c (sh_dsp_reg_names, sh3_dsp_reg_names): New arrays. (sh_processor_type_table): Add entries for bfd_mach_sh_dsp and bfd_mach_sh3_dsp. (sh_show_regs): Floating point registers are called fr0-fr15. For sh4, display fpul, fpscr and fr0-fr15 / dr0-dr14 as appropriate. Handle sh-dsp and sh3-dsp. config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): sh-dsp / sh3-dsp don't have floating point registers. (DSR_REGNUM, A0G_REGNUM, A0_REGNUM, A1G_REGNUM, A1_REGNUM): Define. (M0_REGNUM, M1_REGNUM, X0_REGNUM, X1_REGNUM, Y0_REGNUM): Likewise. (Y1_REGNUM, MOD_REGNUM, RS_REGNUM, RE_REGNUM, R0B_REGNUM): Likewise.
* * wince-stub.c (FREE): New macro.Christopher Faylor2000-04-211-1/+1
| | | | | | | | | | | | | | | | | | | (mempool): Just free any buffer prior to reuse. Don't bother with realloc. (flag_single_step): New function. (skip_message): Detect "helpful" Windows CE messages and skip sending them to the host. (wait_for_debug_event): Use skip_message to avoid sending debug messages to the host. (dispatch): Prelimary implementation of single step detection. * wince.c: Rework SH single stepping code to be more consistent with other wince targets. (handle_output_debug_string): Allow first chance exceptions to come through since they seem to be all that we get on some versions of Windows CE. (check_for_step): New function, conditionally compiled based on target. (regptr): Delete obsolete function. (handle_exception): Detect illegal instructions. (get_child_debug_event): Return success only if event code matches target. (child_create_inferior): Reflect change to get_child_debug_event arguments.
* Bring IEEE_FLOAT under gdbarch's control.Jim Blandy2000-04-141-1/+1
| | | | | | | | | | | | | | | | | * gdbarch.sh (IEEE_FLOAT): New entry. * gdbarch.c, gdbarch.h: Regenerated. * valprint.c (IEEE_FLOAT): Provide a default #definition for this. (print_floating): Use IEEE_FLOAT as if it were an expression; use the code specific to IEEE-format numbers whenever the value of IEEE_FLOAT is non-zero. * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h, config/arc/tm-arc.h, config/arm/tm-arm.h, config/fr30/tm-fr30.h, config/h8300/tm-h8300.h, config/i386/tm-i386.h, config/i960/tm-i960.h, config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h, config/sparc/tm-sparc.h, config/delta/tm-delta.h, config/frv/tm-frv.h (IEEE_FLOAT): For all ports that #define IEEE_FLOAT, make sure they give it the value (1).
* * configure.tgt: Add arm, mips, sh wince targets.Christopher Faylor2000-02-242-0/+39
| | | | | | | | | | | | | * config/arm/tm-wince.h: New file. * config/arm/wince.mt New file. * config/sh/tm-wince.h: New file. * config/sh/wince.mt New file. * config/mips/tm-wince.h: New file. * config/mips/wince.mt New file. * wince.c: New file. * wince-stub.c: New file. * wince-stub.h: New file. * sh-tdep.c: Use correct register names for Windows CE.
* Bring COERCE_FLOAT_TO_DOUBLE under gdbarch's control.Jim Blandy2000-02-221-1/+1
| | | | | | | | | | | | | | | | | | | * valops.c (COERCE_FLOAT_TO_DOUBLE): Rework definition to be more function-like. (default_coerce_float_to_double, standard_coerce_float_to_double): New functions. (value_arg_coerce): Adjust for new definition. * value.h (default_coerce_float_to_double, standard_coerce_float_to_double): New declarations for the above. * gdbarch.sh (coerce_float_to_double): New entry, replacing macro. * gdbarch.c, gdbarch.h: Regenerated. * tm-alpha.h, tm-fr30.h, tm-m32r.h, tm-mips.h, tm-hppa.h, tm-rs6000.h, tm-sh.h, tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Change definitions. * mips-tdep.c (mips_coerce_float_to_double): Supply our own custom function here. (mips_gdbarch_init): Install that as our coerce_float_to_double function.
* import gdb-1999-12-13 snapshotJason Molenda1999-12-141-1/+1
|
* import gdb-1999-08-30 snapshotJason Molenda1999-08-311-2/+0
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-18/+19
|
* import gdb-1999-06-01 snapshotJason Molenda1999-06-011-2/+0
|
* import gdb-1999-05-25 snapshotJason Molenda1999-05-251-18/+17
|
* import gdb-19990504 snapshotStan Shebs1999-05-051-3/+2
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-3/+4
|
* Initial revisionStan Shebs1999-04-162-0/+287