* findvar.c, defs.h
[deliverable/binutils-gdb.git] / gdb / z8k-tdep.c
index 2021a2ed2857541b4218f18618f4382facd6d9b7..6289ac6951464f1d5f39acce7e06c3697448ca9d 100644 (file)
@@ -233,16 +233,15 @@ NEXT_PROLOGUE_INSN (addr, lim, pword1)
      CORE_ADDR lim;
      short *pword1;
 {
+  char buf[2];
   if (addr < lim + 8)
     {
-      read_memory (addr, pword1, sizeof (*pword1));
-      SWAP_TARGET_AND_HOST (pword1, sizeof (short));
+      read_memory (addr, buf, 2);
+      *pword1 = extract_signed_integer (buf, 2);
 
       return addr + 2;
     }
-
   return 0;
-
 }
 
 /* Put here the code to store, into a struct frame_saved_regs,
This page took 0.028917 seconds and 4 git commands to generate.