This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: move i386nbsd_
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: move i386nbsd_
- From: jtc at redback dot com (J.T. Conklin)
- Date: 07 Sep 2000 13:14:39 -0700
- Reply-To: jtc at redback dot com
Someone reported a problem building a NetBSD/i386 cross-debugger because
i386nbsd_use_struct_convention() was in a native-only file instead of a
target file. I applied the enclosed patch to fix this.
--jtc
2000-09-07 J.T. Conklin <jtc@redback.com>
* config/i386/nbsd.mt (TDEPFILES): Add i386nbsd-tdep.o.
* i386nbsd-nat.c (i386nbsd_use_struct_convention): Moved from here.
* i386nbsd-tdep.c (i386nbsd_use_struct_convention): To here.
* i386nbsd-tdep.c: New file.
Index: i386nbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386nbsd-nat.c,v
retrieving revision 1.4
diff -c -r1.4 i386nbsd-nat.c
*** i386nbsd-nat.c 2000/07/30 01:48:25 1.4
--- i386nbsd-nat.c 2000/09/07 18:22:15
***************
*** 147,161 ****
(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;
--- 147,152 ----
Index: config/i386/nbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsd.mt,v
retrieving revision 1.3
diff -c -r1.3 nbsd.mt
*** nbsd.mt 2000/05/24 04:16:27 1.3
--- nbsd.mt 2000/09/07 18:22:24
***************
*** 1,5 ****
# Target: Intel 386 running NetBSD
! TDEPFILES= i386-tdep.o i387-tdep.o
TM_FILE= tm-nbsd.h
GDBSERVER_DEPFILES= low-nbsd.o
--- 1,5 ----
# Target: Intel 386 running NetBSD
! TDEPFILES= i386-tdep.o i387-tdep.o i386nbsd-tdep.o
TM_FILE= tm-nbsd.h
GDBSERVER_DEPFILES= low-nbsd.o
--
J.T. Conklin
RedBack Networks