home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Atari / Gnu / gdb36p4s.zoo / m-atari.h < prev    next >
C/C++ Source or Header  |  1993-08-13  |  18KB  |  489 lines

  1. /* Parameters for execution on an Atari ST, for GDB, the GNU debugger.
  2.    Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
  3.  
  4. This file is part of GDB.
  5.  
  6. GDB is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GDB is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GDB; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef atarist
  21. #define atarist
  22. #endif
  23.  
  24. #include <errno.h>
  25.  
  26. /* Define the bit, byte, and word ordering of the machine.  */
  27. #define BITS_BIG_ENDIAN
  28. #define BYTES_BIG_ENDIAN
  29. #define WORDS_BIG_ENDIAN
  30.  
  31. /* Be conservative about stack usage.  */
  32.  
  33. #define BROKEN_LARGE_ALLOCA
  34.  
  35. /* Define this if the C compiler puts an underscore at the front
  36.    of external names before giving them to the linker.  */
  37.  
  38. #define NAMES_HAVE_UNDERSCORE
  39.  
  40. /* Debugger information will be in DBX format.  */
  41.  
  42. #define READ_DBX_FORMAT
  43.  
  44. /* We have only GCC.  */
  45.  
  46. #define BELIEVE_PCC_PROMOTION 1
  47.  
  48. /* Offset from address of function to start of its code.
  49.    Zero on most machines.  */
  50.  
  51. #define FUNCTION_START_OFFSET 0
  52.  
  53. /* Advance PC across any function entry prologue instructions
  54.    to reach some "real" code.  */
  55.  
  56. #define SKIP_PROLOGUE(pc)   \
  57. { register int op = read_memory_integer (pc, 2);    \
  58.   if (op == 0047126)                    \
  59.     pc += 4;   /* Skip link #word */            \
  60.   else if (op == 0044016)                \
  61.     pc += 6;   /* Skip link #long */            \
  62. }
  63.  
  64. /* Immediately after a function call, return the saved pc.
  65.    Can't go through the frames for this because on some machines
  66.    the new frame is not set up until the new function executes
  67.    some instructions.  */
  68.  
  69. #define SAVED_PC_AFTER_CALL(frame) \
  70. read_memory_integer (read_register (SP_REGNUM), 4)
  71.  
  72. /* Address of end of stack space.  */
  73.  
  74. #define STACK_END_ADDR 0xf000000 /* arbitrary value */
  75.  
  76. /* Stack grows downward.  */
  77.  
  78. #define INNER_THAN <
  79.  
  80. /* Sequence of bytes for breakpoint instruction.  */
  81.  
  82. #define BREAKPOINT {0x4a, 0xfc}
  83.  
  84. /* Amount PC must be decremented by after a breakpoint.
  85.    This is often the number of bytes in BREAKPOINT
  86.    but not always.  */
  87.  
  88. #define DECR_PC_AFTER_BREAK 0
  89.  
  90. /* Nonzero if instruction at PC is a return instruction.  */
  91. /* Allow any of the return instructions, including a trapv and a return
  92.    from interrupt.  */
  93.  
  94. #define ABOUT_TO_RETURN(pc) ((read_memory_integer (pc, 2) & ~0x3) == 0x4e74)
  95.  
  96. /* Return 1 if P points to an invalid floating point value.  */
  97.  
  98. #define INVALID_FLOAT(p, len) 0   /* Just a first guess; not checked */
  99.  
  100. #define LONG_LONG
  101.  
  102. /* Largest integer type */
  103. #define LONGEST long long
  104.  
  105. /* Name of the builtin type for the LONGEST type above. */
  106. #define BUILTIN_TYPE_LONGEST builtin_type_long_long
  107.  
  108. /* Say how long (ordinary) registers are.  */
  109.  
  110. #define REGISTER_TYPE long
  111.  
  112. /* Number of machine registers */
  113.  
  114. #define NUM_REGS 29
  115.  
  116. /* Initializer for an array of names of registers.
  117.    There should be NUM_REGS strings in this initializer.  */
  118.  
  119. #define REGISTER_NAMES  \
  120.  {"d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", \
  121.   "a0", "a1", "a2", "a3", "a4", "a5", "fp", "sp", \
  122.   "ps", "pc",  \
  123.   "fp0", "fp1", "fp2", "fp3", "fp4", "fp5", "fp6", "fp7", \
  124.   "fpcontrol", "fpstatus", "fpiaddr" }
  125.  
  126. /* Register numbers of various important registers.
  127.    Note that some of these values are "real" register numbers,
  128.    and correspond to the general registers of the machine,
  129.    and some are "phony" register numbers which are too large
  130.    to be actual register numbers as far as the user is concerned
  131.    but do serve to get the desired values when passed to read_register.  */
  132.  
  133. #define FP_REGNUM 14        /* Contains address of executing stack frame */
  134. #define SP_REGNUM 15        /* Contains address of top of stack */
  135. #define PS_REGNUM 16        /* Contains processor status */
  136. #define PC_REGNUM 17        /* Contains program counter */
  137. #define FP0_REGNUM 18        /* Floating point register 0 */
  138. #define FPC_REGNUM 26        /* 68881 control register */
  139.  
  140. /* Total amount of space needed to store our copies of the machine's
  141.    register state, the array `registers'.  */
  142. #define REGISTER_BYTES (16*4+8*12+8+12)
  143.  
  144. /* Index within `registers' of the first byte of the space for
  145.    register N.  */
  146.  
  147. #define REGISTER_BYTE(N)  \
  148.  ((N) >= FPC_REGNUM ? (((N) - FPC_REGNUM) * 4) + 168    \
  149.   : (N) >= FP0_REGNUM ? (((N) - FP0_REGNUM) * 12) + 72    \
  150.   : (N) * 4)
  151.  
  152. /* Number of bytes of storage in the actual machine representation
  153.    for register N.  On the 68000, all regs are 4 bytes
  154.    except the floating point regs which are 12 bytes.  */
  155. /* Note that the unsigned cast here forces the result of the
  156.    subtraction to very high positive values if N < FP0_REGNUM */
  157.  
  158. #define REGISTER_RAW_SIZE(N) (((unsigned)(N) - FP0_REGNUM) < 8 ? 12 : 4)
  159.  
  160. /* Number of bytes of storage in the program's representation
  161.    for register N.  On the 68000, all regs are 4 bytes
  162.    except the floating point regs which are 8-byte doubles.  */
  163.  
  164. #define REGISTER_VIRTUAL_SIZE(N) (((unsigned)(N) - FP0_REGNUM) < 8 ? 8 : 4)
  165.  
  166. /* Largest value REGISTER_RAW_SIZE can have.  */
  167.  
  168. #define MAX_REGISTER_RAW_SIZE 12
  169.  
  170. /* Largest value REGISTER_VIRTUAL_SIZE can have.  */
  171.  
  172. #define MAX_REGISTER_VIRTUAL_SIZE 8
  173.  
  174. /* Nonzero if register N requires conversion
  175.    from raw format to virtual format.  */
  176.  
  177. #define REGISTER_CONVERTIBLE(N) (((unsigned)(N) - FP0_REGNUM) < 8)
  178.  
  179. /* Convert data from raw format for register REGNUM
  180.    to virtual format for register REGNUM.  */
  181.  
  182. #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO)    \
  183. { if ((REGNUM) >= FP0_REGNUM && (REGNUM) < FPC_REGNUM)    \
  184.     convert_from_68881 ((FROM), (TO));    \
  185.   else                    \
  186.     bcopy ((FROM), (TO), 4); }
  187.  
  188. /* Convert data from virtual format for register REGNUM
  189.    to raw format for register REGNUM.  */
  190.  
  191. #define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO)    \
  192. { if ((REGNUM) >= FP0_REGNUM && (REGNUM) < FPC_REGNUM)    \
  193.     convert_to_68881 ((FROM), (TO));    \
  194.   else                    \
  195.     bcopy ((FROM), (TO), 4); }
  196.  
  197. /* Return the GDB type object for the "standard" data type
  198.    of data in register N.  */
  199.  
  200. #define REGISTER_VIRTUAL_TYPE(N) \
  201.  (((unsigned)(N) - FP0_REGNUM) < 8 ? builtin_type_double : builtin_type_int)
  202.  
  203. /* Store the address of the place in which to copy the structure the
  204.    subroutine will return.  This is called from call_function. */
  205.  
  206. #define STORE_STRUCT_RETURN(ADDR, SP) \
  207.   { write_register (9, (ADDR)); }
  208.  
  209. /* Extract from an array REGBUF containing the (raw) register state
  210.    a function return value of type TYPE, and copy that, in virtual format,
  211.    into VALBUF.  */
  212.  
  213. #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
  214. { if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \
  215.     convert_from_68881 ((REGBUF) + 72, VALBUF); \
  216.   else \
  217.     bcopy (REGBUF, VALBUF, TYPE_LENGTH (TYPE)); }
  218.  
  219. /* Write into appropriate registers a function return value
  220.    of type TYPE, given in virtual format.  */
  221.  
  222. #define STORE_RETURN_VALUE(TYPE,VALBUF) \
  223. { char raw_buffer[12];                        \
  224.   if (TYPE_CODE (TYPE) == TYPE_CODE_FLT)            \
  225.     { convert_to_68881 (VALBUF, raw_buffer);            \
  226.       write_register_bytes (FP0_REGNUM, raw_buffer, 12); }    \
  227.   else                                \
  228.     write_register_bytes (0, VALBUF, TYPE_LENGTH (TYPE)); }
  229.  
  230. /* Extract from an array REGBUF containing the (raw) register state
  231.    the address in which a function should return its structure value,
  232.    as a CORE_ADDR (or an expression that can be used as one).  */
  233.  
  234. #define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) (*(CORE_ADDR *)(REGBUF))
  235.  
  236. /* Do implement the attach and detach commands.  */
  237.  
  238. #define ATTACH_DETACH
  239.  
  240. /* Hook to call after creating inferior process.  */
  241.  
  242. #define CREATE_INFERIOR_HOOK create_inferior_hook
  243.  
  244. #ifdef NO_SHELL
  245. #define START_INFERIOR_TRAPS_EXPECTED 1
  246. #endif
  247.  
  248. /* Describe the pointer in each stack frame to the previous stack frame
  249.    (its caller).  */
  250.  
  251. /* FRAME_CHAIN takes a frame's nominal address
  252.    and produces the frame's chain-pointer.
  253.  
  254.    FRAME_CHAIN_COMBINE takes the chain pointer and the frame's nominal address
  255.    and produces the nominal address of the caller frame.
  256.  
  257.    However, if FRAME_CHAIN_VALID returns zero,
  258.    it means the given frame is the outermost one and has no caller.
  259.    In that case, FRAME_CHAIN_COMBINE is not used.  */
  260.  
  261. /* In the case of the Sun, the frame's nominal address
  262.    is the address of a 4-byte word containing the calling frame's address.  */
  263.  
  264. #define FRAME_CHAIN(thisframe)  \
  265.   (outside_startup_file ((thisframe)->pc) ?    \
  266.    read_memory_integer ((thisframe)->frame, 4) :\
  267.    0)
  268.  
  269. #define FRAME_CHAIN_VALID(chain, thisframe) \
  270.   (chain != 0 && (outside_startup_file (FRAME_SAVED_PC (thisframe))))
  271.  
  272. #define FRAME_CHAIN_COMBINE(chain, thisframe) (chain)
  273.  
  274. /* Define other aspects of the stack frame.  */
  275.  
  276. /* A macro that tells us whether the function invocation represented
  277.    by FI does not have a frame on the stack associated with it.  If it
  278.    does not, FRAMELESS is set to 1, else 0.  */
  279. #define FRAMELESS_FUNCTION_INVOCATION(FI, FRAMELESS) \
  280.   FRAMELESS_LOOK_FOR_PROLOGUE(FI, FRAMELESS)
  281.  
  282. #define FRAME_SAVED_PC(FRAME) (read_memory_integer ((FRAME)->frame + 4, 4))
  283.  
  284. #define FRAME_ARGS_ADDRESS(fi) ((fi)->frame)
  285.  
  286. #define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame)
  287.  
  288. /* Set VAL to the number of args passed to frame described by FI.
  289.    Can set VAL to -1, meaning no way to tell.  */
  290.  
  291. /* We can't tell how many args there are
  292.    now that the C compiler delays popping them.  */
  293. #define FRAME_NUM_ARGS(val,fi) (val = -1)
  294.  
  295. #if 0
  296. #define FRAME_NUM_ARGS(val, fi)  \
  297. { register CORE_ADDR pc = FRAME_SAVED_PC (fi);            \
  298.   register int insn = 0177777 & read_memory_integer (pc, 2);    \
  299.   val = 0;                            \
  300.   if (insn == 0047757 || insn == 0157374)  /* lea W(sp),sp or addaw #W,sp */ \
  301.     val = read_memory_integer (pc + 2, 2);            \
  302.   else if ((insn & 0170777) == 0050217 /* addql #N, sp */    \
  303.        || (insn & 0170777) == 0050117)  /* addqw */        \
  304.     { val = (insn >> 9) & 7; if (val == 0) val = 8; }        \
  305.   else if (insn == 0157774) /* addal #WW, sp */            \
  306.     val = read_memory_integer (pc + 2, 4);            \
  307.   val >>= 2; }
  308. #endif
  309.  
  310. /* Return number of bytes at start of arglist that are not really args.  */
  311.  
  312. #define FRAME_ARGS_SKIP 8
  313.  
  314. /* Put here the code to store, into a struct frame_saved_regs,
  315.    the addresses of the saved registers of frame described by FRAME_INFO.
  316.    This includes special registers such as pc and fp saved in special
  317.    ways in the stack frame.  sp is even more special:
  318.    the address we return for it IS the sp for the next frame.  */
  319.  
  320. #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs)        \
  321. { register int regnum;                            \
  322.   register int regmask;                            \
  323.   register CORE_ADDR next_addr;                        \
  324.   register CORE_ADDR pc;                        \
  325.   int nextinsn;                                \
  326.   bzero (&frame_saved_regs, sizeof frame_saved_regs);            \
  327.   if ((frame_info)->pc >= (frame_info)->frame - CALL_DUMMY_LENGTH - FP_REGNUM*4 - 8*12 - 4 \
  328.       && (frame_info)->pc <= (frame_info)->frame)                \
  329.     { next_addr = (frame_info)->frame;                    \
  330.       pc = (frame_info)->frame - CALL_DUMMY_LENGTH - FP_REGNUM * 4 - 8*12 - 4; }\
  331.   else                                   \
  332.     { pc = get_pc_function_start ((frame_info)->pc);             \
  333.       /* Verify we have a link a6 instruction next;            \
  334.      if not we lose.  If we win, find the address above the saved   \
  335.      regs using the amount of storage from the link instruction.  */\
  336.       if (044016 == read_memory_integer (pc, 2))            \
  337.     next_addr = (frame_info)->frame + read_memory_integer (pc += 2, 4), pc+=4; \
  338.       else if (047126 == read_memory_integer (pc, 2))            \
  339.     next_addr = (frame_info)->frame + read_memory_integer (pc += 2, 2), pc+=2; \
  340.       else goto lose;                            \
  341.       /* If have an addal #-n, sp next, adjust next_addr.  */        \
  342.       if ((0177777 & read_memory_integer (pc, 2)) == 0157774)        \
  343.     next_addr += read_memory_integer (pc += 2, 4), pc += 4;        \
  344.     }                                    \
  345.   /* next should be a moveml to (sp) or -(sp) or a movl r,-(sp) */    \
  346.   regmask = read_memory_integer (pc + 2, 2);                \
  347.   /* But before that can come an fmovem.  Check for it.  */        \
  348.   nextinsn = 0xffff & read_memory_integer (pc, 2);            \
  349.   if (0xf227 == nextinsn                        \
  350.       && (regmask & 0xff00) == 0xe000)                    \
  351.     { pc += 4; /* Regmask's low bit is for register fp7, the first pushed */ \
  352.       for (regnum = FP0_REGNUM + 7; regnum >= FP0_REGNUM; regnum--, regmask >>= 1)        \
  353.     if (regmask & 1)                        \
  354.           (frame_saved_regs).regs[regnum] = (next_addr -= 12);        \
  355.       regmask = read_memory_integer (pc + 2, 2); }            \
  356.   if (0044327 == read_memory_integer (pc, 2))                \
  357.     { pc += 4; /* Regmask's low bit is for register 0, the first written */ \
  358.       for (regnum = 0; regnum < 16; regnum++, regmask >>= 1)        \
  359.     if (regmask & 1)                        \
  360.           (frame_saved_regs).regs[regnum] = (next_addr += 4) - 4; }    \
  361.   else if (0044347 == read_memory_integer (pc, 2))            \
  362.     { pc += 4; /* Regmask's low bit is for register 15, the first pushed */ \
  363.       for (regnum = 15; regnum >= 0; regnum--, regmask >>= 1)        \
  364.     if (regmask & 1)                        \
  365.           (frame_saved_regs).regs[regnum] = (next_addr -= 4); }        \
  366.   else if (0x2f00 == (0xfff0 & read_memory_integer (pc, 2)))        \
  367.     { regnum = 0xf & read_memory_integer (pc, 2); pc += 2;        \
  368.       (frame_saved_regs).regs[regnum] = (next_addr -= 4); }        \
  369.   /* fmovemx to index of sp may follow.  */                \
  370.   regmask = read_memory_integer (pc + 2, 2);                \
  371.   nextinsn = 0xffff & read_memory_integer (pc, 2);            \
  372.   if (0xf236 == nextinsn                        \
  373.       && (regmask & 0xff00) == 0xf000)                    \
  374.     { pc += 10; /* Regmask's low bit is for register fp0, the first written */ \
  375.       for (regnum = FP0_REGNUM + 7; regnum >= FP0_REGNUM; regnum--, regmask >>= 1)        \
  376.     if (regmask & 1)                        \
  377.           (frame_saved_regs).regs[regnum] = (next_addr += 12) - 12;    \
  378.       regmask = read_memory_integer (pc + 2, 2); }            \
  379.   /* clrw -(sp); movw ccr,-(sp) may follow.  */                \
  380.   if (0x426742e7 == read_memory_integer (pc, 4))            \
  381.     (frame_saved_regs).regs[PS_REGNUM] = (next_addr -= 4);        \
  382.   lose: ;                                \
  383.   (frame_saved_regs).regs[SP_REGNUM] = (frame_info)->frame + 8;        \
  384.   (frame_saved_regs).regs[FP_REGNUM] = (frame_info)->frame;        \
  385.   (frame_saved_regs).regs[PC_REGNUM] = (frame_info)->frame + 4;        \
  386. }
  387.  
  388. /* Things needed for making the inferior call functions.  */
  389.  
  390. /* Push an empty stack frame, to record the current PC, etc.  */
  391.  
  392. #define PUSH_DUMMY_FRAME \
  393. { register CORE_ADDR sp = read_register (SP_REGNUM);            \
  394.   register int regnum;                            \
  395.   char raw_buffer[12];                            \
  396.   sp = push_word (sp, read_register (PC_REGNUM));            \
  397.   sp = push_word (sp, read_register (FP_REGNUM));            \
  398.   write_register (FP_REGNUM, sp);                    \
  399.   for (regnum = FP0_REGNUM + 7; regnum >= FP0_REGNUM; regnum--)        \
  400.     { read_register_bytes (REGISTER_BYTE (regnum), raw_buffer, 12);    \
  401.       sp = push_bytes (sp, raw_buffer, 12); }                \
  402.   for (regnum = FP_REGNUM - 1; regnum >= 0; regnum--)            \
  403.     sp = push_word (sp, read_register (regnum));            \
  404.   sp = push_word (sp, read_register (PS_REGNUM));            \
  405.   write_register (SP_REGNUM, sp);  }
  406.  
  407. /* Discard from the stack the innermost frame, 
  408.    restoring all saved registers.  */
  409.  
  410. #define POP_FRAME  \
  411. { register FRAME frame = get_current_frame ();                \
  412.   register CORE_ADDR fp;                        \
  413.   register int regnum;                            \
  414.   struct frame_saved_regs fsr;                        \
  415.   struct frame_info *fi;                        \
  416.   char raw_buffer[12];                            \
  417.   fi = get_frame_info (frame);                        \
  418.   fp = fi->frame;                            \
  419.   get_frame_saved_regs (fi, &fsr);                    \
  420.   for (regnum = FP0_REGNUM + 7; regnum >= FP0_REGNUM; regnum--)        \
  421.     if (fsr.regs[regnum])                        \
  422.       { read_memory (fsr.regs[regnum], raw_buffer, 12);            \
  423.         write_register_bytes (REGISTER_BYTE (regnum), raw_buffer, 12); }\
  424.   for (regnum = FP_REGNUM - 1; regnum >= 0; regnum--)            \
  425.     if (fsr.regs[regnum])                        \
  426.       write_register (regnum, read_memory_integer (fsr.regs[regnum], 4)); \
  427.   if (fsr.regs[PS_REGNUM])                        \
  428.     write_register (PS_REGNUM, read_memory_integer (fsr.regs[PS_REGNUM], 4)); \
  429.   write_register (FP_REGNUM, read_memory_integer (fp, 4));        \
  430.   write_register (PC_REGNUM, read_memory_integer (fp + 4, 4));      \
  431.   write_register (SP_REGNUM, fp + 8);                    \
  432.   flush_cached_frames ();                        \
  433.   set_current_frame (create_new_frame (read_register (FP_REGNUM),    \
  434.                     read_pc ())); }
  435.  
  436. /* This sequence of words is the instructions
  437.      fmovem 0xff,-(sp)
  438.      moveml 0xfffc,-(sp)
  439.      clrw -(sp)
  440.      movew ccr,-(sp)
  441.      /..* The arguments are pushed at this point by GDB;
  442.     no code is needed in the dummy for this.
  443.     The CALL_DUMMY_START_OFFSET gives the position of 
  444.     the following jsr instruction.  *../
  445.      jsr @#32323232
  446.      addl #69696969,sp
  447.      trap #15
  448.      nop
  449. Note this is 28 bytes.
  450. We actually start executing at the jsr, since the pushing of the
  451. registers is done by PUSH_DUMMY_FRAME.  If this were real code,
  452. the arguments for the function called by the jsr would be pushed
  453. between the moveml and the jsr, and we could allow it to execute through.
  454. But the arguments have to be pushed by GDB after the PUSH_DUMMY_FRAME is done,
  455. and we cannot allow the moveml to push the registers again lest they be
  456. taken for the arguments.  */
  457.  
  458. #define CALL_DUMMY {0xf227e0ff, 0x48e7fffc, 0x426742e7, 0x4eb93232, 0x3232dffc, 0x69696969, /*0x4e4f*/ 0x4afc4e71}
  459.  
  460. #define CALL_DUMMY_LENGTH 28
  461.  
  462. #define CALL_DUMMY_START_OFFSET 12
  463.  
  464. /* Insert the specified number of args and function address
  465.    into a call sequence of the above form stored at DUMMYNAME.  */
  466.  
  467. #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, type)     \
  468. { *(int *)((char *) dummyname + 20) = nargs * 4;  \
  469.   *(int *)((char *) dummyname + 14) = fun; }
  470.  
  471. #define remote_open(x,y)
  472. #define remote_close(x)
  473. #define remote_resume(x,y)
  474. #define remote_wait(x) (-1)
  475. #define remote_fetch_registers(x)
  476. #define remote_store_registers(x)
  477. #define remote_write_bytes(x,y,z)
  478. #define remote_read_bytes(x,y,z)
  479. #define remote_read_inferior_memory(x,y,z) (EACCESS)
  480. #define remote_write_inferior_memory(x,y,z) (EACCESS)
  481.  
  482. #ifndef L_SET
  483. #define L_SET SEEK_SET
  484. #define L_INCR SEEK_CUR
  485. #define L_END SEEK_END
  486. #endif
  487.  
  488. extern int gcc_mshort;
  489.