* source.c (find_source_lines): Always use code that was #ifdef
[binutils-gdb.git] / gdb / config / m68k / xm-hp300hpux.h
index 54979b530a80d52e43281619e39bfd3cbd8bdb84..1719a69dcdeadf4be5bd75501dc942bf1ee51590 100644 (file)
@@ -17,11 +17,16 @@ 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.  */
 
-/* HP/UX is USG, but it does have <ptrace.h>  */
-#include <sys/ptrace.h>
-
 #define HOST_BYTE_ORDER BIG_ENDIAN
 
+/* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace
+   with five arguments, so programs written for normal ptrace lose.
+
+   Idiots.
+
+   (They should have just made it varadic).  */
+#define FIVE_ARG_PTRACE
+
 /* Define this to indicate problems with traps after continuing.  */
 #define HP_OS_BUG
 
@@ -45,23 +50,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef MEM_FNS_DECLARED
 #define MEM_FNS_DECLARED 1
 
-#define HAVE_TERMIO
-
-/* Get rid of any system-imposed stack limit if possible.  */
-/* The hp9k320.h doesn't seem to have this feature.  */
-/* #define SET_STACK_LIMIT_HUGE */
-/* So we'll just have to avoid big alloca's.  */
-#define BROKEN_LARGE_ALLOCA
-
-/* This is the amount to subtract from u.u_ar0
-   to get the offset in the core file of the register values.  */
-
-#ifdef HPUX_VERSION_5
-#define KERNEL_U_ADDR 0x00979000
-#else /* Not HPUX version 5.  */
-/* Use HPUX-style nlist() to get kernel_u_addr.  */
-#define KERNEL_U_ADDR_HPUX
-#endif /* Not HPUX version 5.  */
+#define HAVE_TERMIOS
 
 #define REGISTER_ADDR(u_ar0, regno)                                    \
   (unsigned int)                                                       \