DragonFly submit List (threaded) for 2004-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: gdb 6
ibotty wrote:
> this was not meant to go to the list.
>
> wrong keypress... oops.
sorry for the spam. ctrl+enter is bad for me it seems.
> ./configure --host=i386-unknown-dragonfly1.0 --prefix=/usr/pkg
> make
> cd gdb
> make i386bsd-tdep.o
> gcc -g -O2 -o gdb gdb.o main.o cli-dump.o cli-decode.o
cli-script.o cli-cmds.o cli-setshow.o cli-utils.o cli-logging.o
cli-interp.o mi-out.o mi-console.o mi-cmds.o mi-cmd-env.o mi-cmd-var.o
mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o mi-cmd-disas.o
mi-symbol-cmds.o mi-interp.o mi-main.o mi-parse.o mi-getopt.o
libgdb.a ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a ./../intl/libintl.a ../libiberty/libiberty.a
-ltermcap -lm ../libiberty/libiberty.a i386bsd-tdep.o
> sudo make install
~ibotty
diff -ruN gdb-6.0/bfd/config.bfd gdb-6port/bfd/config.bfd
--- gdb-6.0/bfd/config.bfd Fri Jun 20 10:36:19 2003
+++ gdb-6port/bfd/config.bfd Tue Mar 23 11:28:35 2004
@@ -431,6 +431,10 @@
targ_defvec=i386bsd_vec
targ_underscore=yes
;;
+ i[3-7]86-*-dragonfly*)
+ targ_defvec=bfd_elf32_i386_freebsd_vec
+ targ_selvecs=i386coff_vec
+ ;;
i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
i[3-7]86-*-freebsd[12])
targ_defvec=i386freebsd_vec
diff -ruN gdb-6.0/config.guess gdb-6port/config.guess
--- gdb-6.0/config.guess Sat Jun 14 16:07:21 2003
+++ gdb-6port/config.guess Tue Mar 23 11:29:22 2004
@@ -751,6 +751,9 @@
*:BSD/OS:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit 0 ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE}
+ exit 0 ;;
*:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
# Determine whether the default compiler uses glibc.
eval $set_cc_for_build
diff -ruN gdb-6.0/config.sub gdb-6port/config.sub
--- gdb-6.0/config.sub Sat Jun 14 16:07:21 2003
+++ gdb-6port/config.sub Tue Mar 23 11:30:49 2004
@@ -1121,10 +1121,10 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -dragonfly*| -freebsd* \
+ | -riscix* | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* \
+ | -elf* | -oabi* | -ptx* | -coff* | -ecoff* | -winnt* | -domain* \
+ | -vsta* | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
diff -ruN gdb-6.0/configure gdb-6port/configure
--- gdb-6.0/configure Wed Jun 18 04:25:31 2003
+++ gdb-6port/configure Tue Mar 23 11:31:26 2004
@@ -1190,6 +1190,9 @@
i[3456789]86-*-coff | i[3456789]86-*-elf)
noconfigdirs="$noconfigdirs ${libgcj}"
;;
+ i[3456789]86-*-dragonfly*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
+ ;;
i[3456789]86-*-freebsd*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
diff -ruN gdb-6.0/gdb/config/i386/dfly.mh gdb-6port/gdb/config/i386/dfly.mh
--- gdb-6.0/gdb/config/i386/dfly.mh Thu Jan 1 01:00:00 1970
+++ gdb-6port/gdb/config/i386/dfly.mh Tue Mar 23 11:26:10 2004
@@ -0,0 +1,8 @@
+# Host: Intel 386 running DragonFly BSD
+
+XM_FILE= xm-i386.h
+
+NAT_FILE= nm-dfly.h
+# NOTE: Do not spread NATDEPFILES over several lines - it hurts BSD make.
+# include FreeBSD files, as DragonFly BSD uses the same abi.
+NATDEPFILES= fork-child.o infptrace.o inftarg.o solib.o solib-svr4.o solib-legacy.o corelow.o core-aout.o core-regset.o i386-nat.o i386bsd-nat.o i386fbsd-nat.o gcore.o fbsd-proc.o
diff -ruN gdb-6.0/gdb/config/i386/dfly.mt gdb-6port/gdb/config/i386/dfly.mt
--- gdb-6.0/gdb/config/i386/dfly.mt Thu Jan 1 01:00:00 1970
+++ gdb-6port/gdb/config/i386/dfly.mt Tue Mar 23 11:26:10 2004
@@ -0,0 +1,3 @@
+# Target: Intel 386 running DragonFly BSD
+TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o
+TM_FILE= tm-dfly.h
diff -ruN gdb-6.0/gdb/config/i386/nm-dfly.h gdb-6port/gdb/config/i386/nm-dfly.h
--- gdb-6.0/gdb/config/i386/nm-dfly.h Thu Jan 1 01:00:00 1970
+++ gdb-6port/gdb/config/i386/nm-dfly.h Tue Mar 23 11:26:10 2004
@@ -0,0 +1,23 @@
+/* Native-dependent definitions for DragonFly/i386.
+ Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1997, 2000, 2001
+ 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. */
+
+/* simply include the FreeBSD file */
+#include "config/i386/nm-fbsd.h"
diff -ruN gdb-6.0/gdb/config/i386/tm-dfly.h gdb-6port/gdb/config/i386/tm-dfly.h
--- gdb-6.0/gdb/config/i386/tm-dfly.h Thu Jan 1 01:00:00 1970
+++ gdb-6port/gdb/config/i386/tm-dfly.h Tue Mar 23 11:26:10 2004
@@ -0,0 +1,30 @@
+/* Target-dependent definitions for DragonFly/i386.
+ Copyright 1997, 1999, 2000, 2001 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. */
+
+#ifndef TM_DFLY_H
+#define TM_DFLY_H
+
+#include "i386/tm-i386.h"
+
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
+#endif /* TM_DFLY_H */
diff -ruN gdb-6.0/gdb/configure.host gdb-6port/gdb/configure.host
--- gdb-6.0/gdb/configure.host Mon Aug 18 20:10:52 2003
+++ gdb-6port/gdb/configure.host Tue Mar 23 11:33:55 2004
@@ -54,6 +54,7 @@
# OBSOLETE i[3456]86-sequent-sysv*) gdb_host=ptx ;;
i[34567]86-*-bsd*) gdb_host=i386bsd ;;
i[34567]86-*-dgux*) gdb_host=i386v4 ;;
+i[34567]86-*-dragonfly*) gdb_host=dfly ;;
i[34567]86-*-freebsd*) gdb_host=fbsd ;;
i[34567]86-*-netbsdelf*) gdb_host=nbsdelf ;;
i[34567]86-*-netbsdaout*) gdb_host=nbsdaout ;;
diff -ruN gdb-6.0/gdb/i386bsd-nat.c gdb-6port/gdb/i386bsd-nat.c
--- gdb-6.0/gdb/i386bsd-nat.c Sat May 31 18:08:06 2003
+++ gdb-6port/gdb/i386bsd-nat.c Tue Mar 23 11:36:35 2004
@@ -393,8 +393,10 @@
are compiling a native debugger, which means that we can use the
system header files and sysctl(3) to get at the relevant
information. */
-
-#if defined (__FreeBSD_version) && __FreeBSD_version >= 400011
+#if defined(__DragonFly__)
+ extern int i386fbsd4_sc_reg_offset[];
+#define SC_REG_OFFSET i386fbsd4_sc_reg_offset
+#elif defined (__FreeBSD_version) && __FreeBSD_version >= 400011
extern int i386fbsd4_sc_reg_offset[];
#define SC_REG_OFFSET i386fbsd4_sc_reg_offset
#elif defined (__FreeBSD_version) && __FreeBSD_version >= 300005
diff -ruN gdb-6.0/gdb/rdi-share/unixcomm.c gdb-6port/gdb/rdi-share/unixcomm.c
--- gdb-6.0/gdb/rdi-share/unixcomm.c Sat Jun 8 22:34:41 2002
+++ gdb-6port/gdb/rdi-share/unixcomm.c Tue Mar 23 11:37:28 2004
@@ -36,7 +36,7 @@
#include <sys/types.h>
#include <sys/time.h>
-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (bsdi)
+#if defined(__DragonFLY__) || defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (bsdi)
#undef BSD
#include <sys/ioctl.h>
#endif
diff -ruN gdb-6.0/include/libiberty.h gdb-6port/include/libiberty.h
--- gdb-6.0/include/libiberty.h Thu May 15 21:08:25 2003
+++ gdb-6port/include/libiberty.h Tue Mar 23 11:42:59 2004
@@ -74,7 +74,7 @@
to find the declaration so provide a fully prototyped one. If it
is 1, we found it so don't provide any declaration at all. */
#if !HAVE_DECL_BASENAME
-#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME)
+#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined(__DragonFly__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME)
extern char *basename PARAMS ((const char *));
#else
extern char *basename ();
diff -ruN gdb-6.0/libiberty/vasprintf.c gdb-6port/libiberty/vasprintf.c
--- gdb-6.0/libiberty/vasprintf.c Tue Jun 3 20:17:29 2003
+++ gdb-6port/libiberty/vasprintf.c Tue Mar 23 11:43:57 2004
@@ -149,7 +149,7 @@
vasprintf (result, format, args)
char **result;
const char *format;
-#if defined (_BSD_VA_LIST_) && defined (__FreeBSD__)
+#if defined (_BSD_VA_LIST_) && (defined (__FreeBSD__) || defined (__DragonFly__))
_BSD_VA_LIST_ args;
#else
va_list args;
diff -ruN gdb-6.0/libtool.m4 gdb-6port/libtool.m4
--- gdb-6.0/libtool.m4 Fri Apr 11 05:58:39 2003
+++ gdb-6port/libtool.m4 Tue Mar 23 11:44:44 2004
@@ -577,6 +577,12 @@
esac
;;
+dragonfly* )
+ lt_cv_deplibs_check_method=['file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+
freebsd* )
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
case $host_cpu in
diff -ruN gdb-6.0/ltconfig gdb-6port/ltconfig
--- gdb-6.0/ltconfig Thu May 29 16:02:04 2003
+++ gdb-6port/ltconfig Tue Mar 23 11:45:18 2004
@@ -1111,6 +1111,16 @@
shlibpath_var=DYLD_LIBRARY_PATH
;;
+dragonfly*)
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+ need_version=no
+ need_lc=no
+ need_lib_prefix=no
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
freebsd*-gnu*)
version_type=linux
need_lib_prefix=no
diff -ruN gdb-6.0/readline/support/config.guess gdb-6port/readline/support/config.guess
--- gdb-6.0/readline/support/config.guess Sun Jun 15 05:40:25 2003
+++ gdb-6port/readline/support/config.guess Tue Mar 23 11:48:48 2004
@@ -751,6 +751,9 @@
*:BSD/OS:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit 0 ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE}
+ exit 0 ;;
*:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
# Determine whether the default compiler uses glibc.
eval $set_cc_for_build
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]