home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / amiga / gdb-4.12-src.lha / gdb-4.12 / gdb / config / pa / nm-hppab.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-03  |  1.4 KB  |  38 lines

  1. /* HPPA PA-RISC machine native support for BSD, for GDB.
  2.    Copyright 1991, 1992 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. #define U_REGS_OFFSET 0
  21.  
  22. /* What a coincidence! */
  23. #define REGISTER_U_ADDR(addr, blockend, regno)                \
  24. { addr = (int)(blockend) + REGISTER_BYTE (regno);}
  25.  
  26. /* 3rd argument to ptrace is supposed to be a caddr_t.  */
  27.  
  28. #define    PTRACE_ARG3_TYPE caddr_t
  29.  
  30. /* attach/detach works to some extent under BSD and HPUX.  So long
  31.    as the process you're attaching to isn't blocked waiting on io,
  32.    blocked waiting on a signal, or in a system call things work 
  33.    fine.  (The problems in those cases are related to the fact that
  34.    the kernel can't provide complete register information for the
  35.    target process...  Which really pisses off GDB.)  */
  36.  
  37. #define ATTACH_DETACH
  38.