home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / gdb-4.14-src.lha / gdb-4.14 / gdb / config / nm-lynx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-30  |  2.2 KB  |  80 lines

  1. /* Native-dependent definitions for LynxOS.
  2.    Copyright 1993 Free Software Foundation, Inc.
  3.  
  4. This file is part of GDB.
  5.  
  6. This program 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 2 of the License, or
  9. (at your option) any later version.
  10.  
  11. This program 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 this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef NM_LYNX_H
  21. #define NM_LYNX_H
  22.  
  23. #include <sys/conf.h>
  24. #include <sys/kernel.h>
  25. /* sys/kernel.h should define this, but doesn't always, sigh. */
  26. #ifndef __LYNXOS
  27. #define __LYNXOS
  28. #endif
  29. #include <sys/mem.h>
  30. #include <sys/signal.h>
  31. #include <sys/time.h>
  32. #include <sys/resource.h>
  33. #include <sys/itimer.h>
  34. #include <sys/file.h>
  35. #include <sys/proc.h>
  36. #include "thread.h"
  37.  
  38. /* This is the amount to subtract from u.u_ar0 to get the offset in
  39.    the core file of the register values.  */
  40.  
  41. #define KERNEL_U_ADDR USRSTACK
  42.  
  43. #undef FLOAT_INFO    /* No float info yet */
  44.  
  45. /* As of LynxOS 2.2.2 (beta 8/15/94), this is int.  Previous versions seem to
  46.    have had no prototype, so I'm not sure why GDB used to define this to
  47.    char *.  */
  48. #define PTRACE_ARG3_TYPE int
  49.  
  50. /* Override copies of {fetch,store}_inferior_registers in infptrace.c.  */
  51.  
  52. #define FETCH_INFERIOR_REGISTERS
  53.  
  54. /* Thread ID of stopped thread.  */
  55.  
  56. #define WIFTID(x) (((union wait *)&x)->w_tid)
  57.  
  58. /* Override child_wait in inftarg.c */
  59.  
  60. #define CHILD_WAIT
  61.  
  62. /* Override child_resume in infptrace.c */
  63.  
  64. #define CHILD_RESUME
  65.  
  66. #include "target.h"
  67.  
  68. extern int child_wait PARAMS ((int pid, struct target_waitstatus *status));
  69.  
  70. /* Lynx needs a special definition of this so that we can
  71.    print out the pid and thread number seperatly.  */
  72.  
  73. #undef target_pid_to_str
  74.  
  75. #define target_pid_to_str(PID) lynx_pid_to_str (PID)
  76.  
  77. extern char *lynx_pid_to_str PARAMS ((int pid));
  78.  
  79. #endif /* NM_LYNX_H */
  80.