diff options
author | Stu Grossman <grossman@cygnus> | 1992-05-07 17:47:36 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-05-07 17:47:36 +0000 |
commit | d0b04c6a38747e1b84b36b341e1a9036519ef89a (patch) | |
tree | bc5e24604911cbc1c3628f8a4d565c984aed905c /gdb/am29k-pinsn.c | |
parent | d24fbb206e83b60f17aa145ebc5196a9127715e6 (diff) | |
download | gdb-d0b04c6a38747e1b84b36b341e1a9036519ef89a.zip gdb-d0b04c6a38747e1b84b36b341e1a9036519ef89a.tar.gz gdb-d0b04c6a38747e1b84b36b341e1a9036519ef89a.tar.bz2 |
* am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
* am29k-tdep.c: Update to latest code from AMD.
(get_saved_register) don't crap out if no frame.
* remote-udi.c: Set/clear inferior_pid as appropriate.
(udi_open) call target_preopen, don't close fd 0!!!, clean up
error handling. Fixup end-of-debugging messages.
(udi_fetch_registers) clean up big time, mainly don't multiply
register_valid indices by 4, and use proper Offset when reading
gr96-gr127. (udi_store_registers) general cleanup.
(fetch_register) cleanup, simplify. (regnum_to_srnum)
INT_REGNUM->INTE_REGNUM.
* tm-29k.h: Upgrade to latest code from AMD.
* 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
(UDIConnect) Clean up error processing (like, don't do exit() if
execlp fails), make code restartable, make more attractive.
(UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
otherwise.
Diffstat (limited to 'gdb/am29k-pinsn.c')
-rw-r--r-- | gdb/am29k-pinsn.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/am29k-pinsn.c b/gdb/am29k-pinsn.c index c226a3a..bfb2f14 100644 --- a/gdb/am29k-pinsn.c +++ b/gdb/am29k-pinsn.c @@ -18,9 +18,11 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <stdio.h> + #include "defs.h" #include "target.h" -#include "am29k-opcode.h" +#include "opcode/a29k.h" /* Print a symbolic representation of a general-purpose register number NUM on STREAM. @@ -127,7 +129,7 @@ print_insn (memaddr, stream) /* The four bytes of the instruction. */ unsigned char insn24, insn16, insn8, insn0; - struct am29k_opcode *opcode; + struct a29k_opcode *opcode; read_memory (memaddr, &insn[0], 4); @@ -140,11 +142,11 @@ print_insn (memaddr, stream) } /* The opcode is always in insn24. */ - for (opcode = &am29k_opcodes[0]; - opcode < &am29k_opcodes[NUM_OPCODES]; + for (opcode = &a29k_opcodes[0]; + opcode < &a29k_opcodes[num_opcodes]; ++opcode) { - if (insn24 == opcode->opcode) + if ((insn24<<24) == opcode->opcode) { char *s; |