Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
authorStu Grossman <grossman@cygnus>
Mon, 2 Aug 1993 15:41:49 +0000 (15:41 +0000)
committerStu Grossman <grossman@cygnus>
Mon, 2 Aug 1993 15:41:49 +0000 (15:41 +0000)
* config/i386/i386lynx.mh (NATDEPFILES):  Drop coredep (for now).
* config/i386/nm-i386bsd.h:  Protect from multiple inclusion.
* config/i386/nm-i386lynx.h:  Lotsa new host porting stuff.
* config/i386/tm-i386lynx.h:  Define SAVED_PC_AFTER_CALL and
target_pid_to_str.

gdb/ChangeLog
gdb/config/i386/i386lynx.mh
gdb/config/i386/nm-i386bsd.h
gdb/config/i386/nm-i386lynx.h
gdb/config/i386/tm-i386lynx.h

index 4048467f15e635e1d502465e6ccd6baa2d4acfd2..0dbf969ea916bebb7dbab001d18c0deeb1130041 100644 (file)
@@ -1,5 +1,11 @@
 Sun Aug  1 22:58:18 1993  Stu Grossman  (grossman at cygnus.com)
 
+       * config/i386/i386lynx.mh (NATDEPFILES):  Drop coredep (for now).
+       * config/i386/nm-i386bsd.h:  Protect from multiple inclusion.
+       * config/i386/nm-i386lynx.h:  Lotsa new host porting stuff.
+       * config/i386/tm-i386lynx.h:  Define SAVED_PC_AFTER_CALL and
+       target_pid_to_str.
+
        * Makefile.in (CLIBS):  Reorder to make Lynx ld happy.
        * (HFILES):  New file thread.h.
        * (OBS):  New file thread.c.
index a9cf20cab43e1f2c9f1092c431196bbe503ad232..b4294cab4e986475480617998f134f82bc21985f 100644 (file)
@@ -1,6 +1,6 @@
 # Host: Intel 386 running Lynx
 XDEPFILES= 
-NATDEPFILES= exec.o fork-child.o infptrace.o inftarg.o corelow.o coredep.o i386b-nat.o
+NATDEPFILES= exec.o fork-child.o infptrace.o inftarg.o corelow.o i386lynx-nat.o
 XM_FILE= xm-i386lynx.h
 NAT_FILE= nm-i386lynx.h
 REGEX=regex.o
index ec71b545ad4dbee29d87f1c3884247874ee449eb..e0371bb5b3d00572c01f69690a83bd5cbfea3a7a 100644 (file)
@@ -17,6 +17,9 @@ 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.  */
 
+#ifndef NM_I386BSD_H
+#define NM_I386BSD_H
+
 /* This is the amount to subtract from u.u_ar0
    to get the offset in the core file of the register values.  */
 
@@ -32,3 +35,5 @@ extern int
 i386_register_u_addr PARAMS ((int, int));
 
 #define PTRACE_ARG3_TYPE char*
+
+#endif /* NM_I386BSD_H */
index 2b9c33a331cc4fe6cda1b978ff2c2b9b05c61c83..3a2d318ef706cecdfaca4fab62aecf4286a0d6e9 100644 (file)
@@ -1,4 +1,4 @@
-/* Native-dependent definitions for Intel 386 running BSD Unix, for GDB.
+/* Native-dependent definitions for Intel 386 running Lynx, for GDB.
    Copyright 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
 
 This file is part of GDB.
@@ -17,6 +17,19 @@ 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.  */
 
+#ifndef NM_I386LYNX_H
+#define NM_I386LYNX_H
+
+#include <sys/kernel.h>
+#include <sys/mem.h>
+#include <sys/signal.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/itimer.h>
+#include <sys/file.h>
+#include <sys/proc.h>
+#include "thread.h"
+
 /* This is the amount to subtract from u.u_ar0
    to get the offset in the core file of the register values.  */
 
@@ -31,3 +44,15 @@ extern int
 i386_register_u_addr PARAMS ((int, int));
 
 #define PTRACE_ARG3_TYPE char*
+
+/* Override copies of {fetch,store}_inferior_registers in infptrace.c.  */
+#define FETCH_INFERIOR_REGISTERS
+
+/* Thread ID of stopped thread */
+
+#define WIFTID(x) (((union wait *)&x)->w_tid)
+
+#define CHILD_WAIT
+extern int child_wait PARAMS ((int *status));
+
+#endif /* NM_I386LYNX_H */
index 934042220b801287c3c251e517a477b485b754fe..adf5c7c98d8964f4efbdb311fb6d13afc17b70a7 100644 (file)
@@ -17,8 +17,27 @@ 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.  */
 
+#ifndef TM_I386LYNX_H
+#define TM_I386LYNX_H
+
 /* Override number of expected traps from sysv. */
 #define START_INFERIOR_TRAPS_EXPECTED 2
 
 /* Most definitions from sysv could be used. */
 #include "i386/tm-i386v.h"
+
+#undef SAVED_PC_AFTER_CALL
+
+#define SAVED_PC_AFTER_CALL i386lynx_saved_pc_after_call
+CORE_ADDR i386lynx_saved_pc_after_call ();
+
+/* Lynx needs a special definition of this so that we can
+   print out the pid and thread number seperatly.  */
+
+#undef target_pid_to_str
+
+#define target_pid_to_str(PID) \
+       i386lynx_pid_to_str (PID)
+extern char *i386lynx_pid_to_str PARAMS ((int pid));
+
+#endif /* TM_I386LYNX_H */
This page took 0.031796 seconds and 4 git commands to generate.