Hi! I've prepared preliminary patch (current version) port for or1k cpu (see below). There are also attached files, that should be added: gdb/or1k-tdep.c (target description file) gdb/remote-or1k.c (proprietary jtag protocol) gdb/jtag.c (remote jtag communication client) gdb/config (dir) gdb/config/or32.mt (target definition) gdb/config/tm-or1k.h (or1k architecture macros) gdb/config/tm-or32.h (or32 implementation target macros) Originaly it was written for gdb-5.0, but recently we wanted to join it with official release, so I coded the macros in gdbarch. Please tell me if there are some problems and how to proceed. thanks, Marko ? gdb/jtag.c ? gdb/or1k-tdep.c ? gdb/remote-or1k.c ? gdb/config/or1k Index: gdb/configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.85 diff -c -3 -p -r1.85 configure.tgt *** gdb/configure.tgt 2 Sep 2002 17:24:50 -0000 1.85 --- gdb/configure.tgt 17 Sep 2002 12:33:50 -0000 *************** m68hc11*|m6811*) gdb_target_cpu=m68hc11 *** 21,26 **** --- 21,27 ---- m68*) gdb_target_cpu=m68k ;; # OBSOLETE m88*) gdb_target_cpu=m88k ;; mips*) gdb_target_cpu=mips ;; + or32*) gdb_target_cpu=or1k ;; powerpc*) gdb_target_cpu=powerpc ;; sparc*) gdb_target_cpu=sparc ;; thumb*) gdb_target_cpu=arm ;; *************** mn10300-*-*) gdb_target=mn10300 ;; *** 215,220 **** --- 216,223 ---- none-*-*) gdb_target=none ;; ns32k-*-netbsd*) gdb_target=nbsdaout ;; + + or32*) gdb_target=or32 ;; powerpc-*-netbsd*) gdb_target=nbsd ;; powerpc-*-aix*) gdb_target=aix ;;