aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-nat.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-03-02 23:17:31 +0000
committerJason Molenda <jmolenda@apple.com>1998-03-02 23:17:31 +0000
commit6cc922a988f2516823ed2fd47eafcb9b161fb3de (patch)
treeb8eb91b4d85c8ca45a5719d5e4934f45d1d357d3 /gdb/sparc-nat.c
parent0471756934d89e763e969dba58e21945309698bc (diff)
downloadgdb-6cc922a988f2516823ed2fd47eafcb9b161fb3de.zip
gdb-6cc922a988f2516823ed2fd47eafcb9b161fb3de.tar.gz
gdb-6cc922a988f2516823ed2fd47eafcb9b161fb3de.tar.bz2
Sun Mar 2 15:16:13 1998 Richard Henderson <rth@cygnus.com>
* configure.host, configure.tgt: Add sparc-linux. * sparc-nat.c: Include <asm/reg.h> not <machine/reg.h> for Linux. * config/sparc/*linux*: New files.
Diffstat (limited to 'gdb/sparc-nat.c')
-rw-r--r--gdb/sparc-nat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index a4fa9e9..3f5f8bf 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -25,7 +25,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <signal.h>
#include <sys/ptrace.h>
#include <sys/wait.h>
+#ifdef __linux__
+#include <asm/reg.h>
+#else
#include <machine/reg.h>
+#endif
#include <sys/user.h>
/* We don't store all registers immediately when requested, since they