Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gdb - Split some target-dependent stuff f...



details:   https://anonhg.NetBSD.org/src/rev/9aa4194c16a7
branches:  trunk
changeset: 518370:9aa4194c16a7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Nov 29 08:21:48 2001 +0000

description:
- Split some target-dependent stuff for i386-netbsd out of i386nbsd-nat.c
  and place it in i386nbsd-tdep.c (new file).
- Move solib.o from TDEPFILES to NATDEPFILES (solib.c requires target
  headers, namely <link_elf.h>).

Fixes build of cross-gdb pointed at i386--netbsd target.

diffstat:

 gnu/dist/toolchain/gdb/config/i386/nbsd.mh |   2 +-
 gnu/dist/toolchain/gdb/config/i386/nbsd.mt |   2 +-
 gnu/dist/toolchain/gdb/i386nbsd-nat.c      |  11 +---------
 gnu/dist/toolchain/gdb/i386nbsd-tdep.c     |  32 ++++++++++++++++++++++++++++++
 4 files changed, 35 insertions(+), 12 deletions(-)

diffs (78 lines):

diff -r 35e1f48e0b22 -r 9aa4194c16a7 gnu/dist/toolchain/gdb/config/i386/nbsd.mh
--- a/gnu/dist/toolchain/gdb/config/i386/nbsd.mh        Thu Nov 29 02:58:18 2001 +0000
+++ b/gnu/dist/toolchain/gdb/config/i386/nbsd.mh        Thu Nov 29 08:21:48 2001 +0000
@@ -1,6 +1,6 @@
 # Host: Intel 386 running NetBSD
 XDEPFILES= ser-tcp.o
 NAT_CLIBS= -lkvm
-NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o i386nbsd-nat.o kcore-nbsd.o
+NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o i386nbsd-nat.o kcore-nbsd.o solib.o
 XM_FILE= xm-nbsd.h
 NAT_FILE= nm-nbsd.h
diff -r 35e1f48e0b22 -r 9aa4194c16a7 gnu/dist/toolchain/gdb/config/i386/nbsd.mt
--- a/gnu/dist/toolchain/gdb/config/i386/nbsd.mt        Thu Nov 29 02:58:18 2001 +0000
+++ b/gnu/dist/toolchain/gdb/config/i386/nbsd.mt        Thu Nov 29 08:21:48 2001 +0000
@@ -1,5 +1,5 @@
 # Target: Intel 386 running NetBSD
-TDEPFILES= i386-tdep.o i387-tdep.o solib.o
+TDEPFILES= i386-tdep.o i387-tdep.o i386nbsd-tdep.o
 TM_FILE= tm-nbsd.h
 
 GDBSERVER_DEPFILES= low-nbsd.o
diff -r 35e1f48e0b22 -r 9aa4194c16a7 gnu/dist/toolchain/gdb/i386nbsd-nat.c
--- a/gnu/dist/toolchain/gdb/i386nbsd-nat.c     Thu Nov 29 02:58:18 2001 +0000
+++ b/gnu/dist/toolchain/gdb/i386nbsd-nat.c     Thu Nov 29 08:21:48 2001 +0000
@@ -149,16 +149,7 @@
   ptrace (PT_SETFPREGS, inferior_pid,
          (PTRACE_ARG3_TYPE) &inferior_fpregisters, 0);
 }
-
-int
-i386nbsd_use_struct_convention (int gcc_p, struct type *type)
-{
-  return !(TYPE_LENGTH (type) == 1
-          || TYPE_LENGTH (type) == 2
-          || TYPE_LENGTH (type) == 4
-          || TYPE_LENGTH (type) == 8);
-}
-
+
 struct md_core
 {
   struct reg intreg;
diff -r 35e1f48e0b22 -r 9aa4194c16a7 gnu/dist/toolchain/gdb/i386nbsd-tdep.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/i386nbsd-tdep.c    Thu Nov 29 08:21:48 2001 +0000
@@ -0,0 +1,32 @@
+/* Target-dependent code for NetBSD/i386, for GDB.
+   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2000
+   Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   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., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#include "defs.h"
+#include "value.h"
+
+int
+i386nbsd_use_struct_convention (int gcc_p, struct type *type)
+{
+  return !(TYPE_LENGTH (type) == 1
+          || TYPE_LENGTH (type) == 2
+          || TYPE_LENGTH (type) == 4
+          || TYPE_LENGTH (type) == 8);
+}



Home | Main Index | Thread Index | Old Index