*** gdb-4.18/config.sub- Thu Apr 8 06:04:22 1999 --- gdb-4.18/config.sub Tue Feb 15 18:44:03 2000 *************** *** 855,860 **** --- 855,864 ---- basic_machine=z8k-unknown os=-sim ;; + shxtal) + basic_machine=sh-axe + os=-elfxtal + ;; none) basic_machine=none-none os=-none *************** *** 1050,1055 **** --- 1054,1062 ---- ;; -xenix) os=-xenix + ;; + -elfxtal) + os=-elfxtal ;; -none) ;; *** gdb-4.18/gdb/configure.tgt- Thu Apr 8 06:00:17 1999 --- gdb-4.18/gdb/configure.tgt Tue Feb 15 18:44:03 2000 *************** *** 71,76 **** --- 71,77 ---- h8300-*-*) gdb_target=h8300 ;; h8500-*-*) gdb_target=h8500 ;; + sh-*-elfxtal*) gdb_target=shxtal ;; sh-*-*) gdb_target=sh ;; fr30-*-elf*) gdb_target=fr30 ;; *** /dev/null Wed May 6 05:32:27 1998 --- gdb-4.18/gdb/config/sh/shxtal.mt Tue Feb 15 19:01:58 2000 *************** *** 0 **** --- 1,7 ---- + # Target: Hitachi Super-H with XTAL-OS (SHARP Zaurus) + TDEPFILES= sh-tdep.o #remote-shxtal.o + TM_FILE= tm-sh.h + MT_CFLAGS= -DSH_XTAL + + #SIM_OBS = remote-sim.o + #SIM = ../sim/sh/libsim.a *** gdb-4.18/gdb/remote.c- Fri Mar 26 15:38:31 1999 --- gdb-4.18/gdb/remote.c Tue Feb 15 18:43:07 2000 *************** *** 2918,2923 **** --- 2918,2929 ---- CORE_ADDR addr; char *contents_cache; { + #ifdef SH_XTAL + char buf[2048]; + sprintf(buf,"Z%x",addr); + remote_send(buf); + return 0; + #else /* SH_XTAL */ #ifdef REMOTE_BREAKPOINT int val; *************** *** 2937,2942 **** --- 2943,2949 ---- #else return memory_insert_breakpoint (addr, contents_cache); #endif /* REMOTE_BREAKPOINT */ + #endif /* SH_XTAL */ } static int *************** *** 2944,2954 **** --- 2951,2968 ---- CORE_ADDR addr; char *contents_cache; { + #ifdef SH_XTAL + char buf[2048]; + sprintf(buf,"z%x",addr); + remote_send(buf); + return 0; + #else /* SH_XTAL */ #ifdef REMOTE_BREAKPOINT return target_write_memory (addr, contents_cache, sizeof big_break_insn); #else return memory_remove_breakpoint (addr, contents_cache); #endif /* REMOTE_BREAKPOINT */ + #endif /* SH_XTAL */ } /* Some targets are only capable of doing downloads, and afterwards