Source-Changes-HG archive

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

[src/nathanw_sa]: src/gnu/usr.bin/gdb Sync with HEAD.



details:   https://anonhg.NetBSD.org/src/rev/2077f0d8c93b
branches:  nathanw_sa
changeset: 506238:2077f0d8c93b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Sep 19 21:18:41 2002 +0000

description:
Sync with HEAD.

diffstat:

 gnu/usr.bin/gdb/GDBvn.texi         |    2 -
 gnu/usr.bin/gdb/Makefile           |    5 +
 gnu/usr.bin/gdb/config.h           |  152 -------------------------------------
 gnu/usr.bin/gdb/gdb.new/Makefile   |    8 +-
 gnu/usr.bin/gdb/gdbreplay/Makefile |   22 +++++
 gnu/usr.bin/gdb/gdbserver/Makefile |   20 ++++
 gnu/usr.bin/gdb/mkinit.sh          |   50 ------------
 gnu/usr.bin/gdb/version.c          |    5 -
 gnu/usr.bin/gdb/xm.h               |    3 -
 9 files changed, 51 insertions(+), 216 deletions(-)

diffs (truncated from 314 to 300 lines):

diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/GDBvn.texi
--- a/gnu/usr.bin/gdb/GDBvn.texi        Thu Sep 19 20:56:43 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-@c     $NetBSD: GDBvn.texi,v 1.1 1999/02/16 20:19:03 tv Exp $
-@set GDBVN 4.17
diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gdb/Makefile  Thu Sep 19 21:18:41 2002 +0000
@@ -0,0 +1,5 @@
+#      $NetBSD: Makefile,v 1.51.4.2 2002/09/19 21:18:42 thorpej Exp $
+
+SUBDIR=                gdb.new # gdbreplay gdbserver
+
+.include <bsd.subdir.mk>
diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/config.h
--- a/gnu/usr.bin/gdb/config.h  Thu Sep 19 20:56:43 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,152 +0,0 @@
-/* config.h.  Generated automatically by configure.  */
-/* config.in.  Generated automatically from configure.in by autoheader.  */
-
-/* Whether malloc must be declared even if <stdlib.h> is included.  */
-/* #undef NEED_DECLARATION_MALLOC */
-
-/* Whether realloc must be declared even if <stdlib.h> is included.  */
-/* #undef NEED_DECLARATION_REALLOC */
-
-/* Whether free must be declared even if <stdlib.h> is included.  */
-/* #undef NEED_DECLARATION_FREE */
-
-/* Whether strerror must be declared even if <string.h> is included.  */
-/* #undef NEED_DECLARATION_STRERROR */
-
-/* Define if on AIX 3.
-   System headers sometimes define this.
-   We just want to avoid a redefinition error message.  */
-#ifndef _ALL_SOURCE
-/* #undef _ALL_SOURCE */
-#endif
-
-/* Define to empty if the keyword does not work.  */
-/* #undef const */
-
-/* Define if the `long double' type works.  */
-#define HAVE_LONG_DOUBLE 1
-
-/* Define if you have a working `mmap' system call.  */
-#define HAVE_MMAP 1
-
-/* Define if on MINIX.  */
-/* #undef _MINIX */
-
-/* Define if the system does not provide POSIX.1 features except
-   with this defined.  */
-/* #undef _POSIX_1_SOURCE */
-
-/* Define if you need to in order for stat and other things to work.  */
-/* #undef _POSIX_SOURCE */
-
-/* Define as the return type of signal handlers (int or void).  */
-#define RETSIGTYPE void
-
-/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly.  */
-/* #undef STAT_MACROS_BROKEN */
-
-/* Define if you have the ANSI C header files.  */
-#define STDC_HEADERS 1
-
-/* Define if fpregset_t type is available. */
-/* #undef HAVE_FPREGSET_T */
-
-/* Define if gregset_t type is available. */
-/* #undef HAVE_GREGSET_T */
-
-/* Define if the `long long' type works.  */
-#define CC_HAS_LONG_LONG 1
-
-/* Define if the "ll" format works to print long long ints. */
-#define PRINTF_HAS_LONG_LONG 1
-
-/* Define if the "%Lg" format works to print long doubles. */
-#define PRINTF_HAS_LONG_DOUBLE 1
-
-/* Define if the "%Lg" format works to scan long doubles. */
-#define SCANF_HAS_LONG_DOUBLE 1
-
-/* Define if using Solaris thread debugging.  */
-/* #undef HAVE_THREAD_DB_LIB */
-
-/* Define on a GNU/Linux system to work around problems in sys/procfs.h.  */
-/* #undef START_INFERIOR_TRAPS_EXPECTED */
-/* #undef sys_quotactl */
-
-/* Define if you have HPUX threads */
-/* #undef HAVE_HPUX_THREAD_SUPPORT */
-
-/* Define if you want to use the memory mapped malloc package (mmalloc). */
-/* #undef USE_MMALLOC */
-
-/* Define if the runtime uses a routine from mmalloc before gdb has a chance
-   to initialize mmalloc, and we want to force checking to be used anyway.
-   This may cause spurious memory corruption messages if the runtime tries
-   to explicitly deallocate that memory when gdb calls exit. */
-/* #undef MMCHECK_FORCE */
-
-/* Define if you have the getpagesize function.  */
-#define HAVE_GETPAGESIZE 1
-
-/* Define if you have the poll function.  */
-#define HAVE_POLL 1
-
-/* Define if you have the sbrk function.  */
-#define HAVE_SBRK 1
-
-/* Define if you have the select function.  */
-#define HAVE_SELECT 1
-
-/* Define if you have the setpgid function.  */
-#define HAVE_SETPGID 1
-
-/* Define if you have the sigaction function.  */
-#define HAVE_SIGACTION 1
-
-/* Define if you have the <endian.h> header file.  */
-/* #undef HAVE_ENDIAN_H */
-
-/* Define if you have the <limits.h> header file.  */
-#define HAVE_LIMITS_H 1
-
-/* Define if you have the <link.h> header file.  */
-#define HAVE_LINK_H 1
-
-/* Define if you have the <memory.h> header file.  */
-#define HAVE_MEMORY_H 1
-
-/* Define if you have the <objlist.h> header file.  */
-/* #undef HAVE_OBJLIST_H */
-
-/* Define if you have the <sgtty.h> header file.  */
-#define HAVE_SGTTY_H 1
-
-/* Define if you have the <stddef.h> header file.  */
-#define HAVE_STDDEF_H 1
-
-/* Define if you have the <stdlib.h> header file.  */
-#define HAVE_STDLIB_H 1
-
-/* Define if you have the <string.h> header file.  */
-#define HAVE_STRING_H 1
-
-/* Define if you have the <strings.h> header file.  */
-#define HAVE_STRINGS_H 1
-
-/* Define if you have the <sys/procfs.h> header file.  */
-/* #undef HAVE_SYS_PROCFS_H */
-
-/* Define if you have the <termio.h> header file.  */
-/* #undef HAVE_TERMIO_H */
-
-/* Define if you have the <termios.h> header file.  */
-#define HAVE_TERMIOS_H 1
-
-/* Define if you have the <unistd.h> header file.  */
-#define HAVE_UNISTD_H 1
-
-/* Define if you have the dl library (-ldl).  */
-/* #undef HAVE_LIBDL */
-
-/* Define if you have the m library (-lm).  */
-#define HAVE_LIBM 1
diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/gdb.new/Makefile
--- a/gnu/usr.bin/gdb/gdb.new/Makefile  Thu Sep 19 20:56:43 2002 +0000
+++ b/gnu/usr.bin/gdb/gdb.new/Makefile  Thu Sep 19 21:18:41 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9.4.2 2002/08/28 00:15:57 nathanw Exp $
+#      $NetBSD: Makefile,v 1.9.4.3 2002/09/19 21:18:43 thorpej Exp $
 
 # XXX - This gdb.new directory should be renamed to "gdb" after all platforms
 # have been migrated to the new toolchain.
@@ -8,10 +8,10 @@
 .if ${MKGDB} != "no" && ${MKBFD} != "no" && \
     exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
 
-.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
+TOP=           ${NETBSDSRCDIR}/gnu
+DIST=          ${TOP}/dist/toolchain
 
-TOP=           ${.CURDIR}/../../..
-DIST=          ${TOP}/dist/toolchain
+.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
 
 PROG=          gdb
 
diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/gdbreplay/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gdb/gdbreplay/Makefile        Thu Sep 19 21:18:41 2002 +0000
@@ -0,0 +1,22 @@
+#      $NetBSD: Makefile,v 1.1.4.2 2002/09/19 21:18:44 thorpej Exp $
+
+NOMAN=         # defined
+
+.include <bsd.own.mk>
+
+TOP=           ${NETBSDSRCDIR}/gnu
+DIST=          ${TOP}/dist/toolchain
+
+.include "${.CURDIR}/../arch/${MACHINE_ARCH}/gdbserver.mk"
+
+PROG=          gdbreplay
+
+SRCS=          gdbreplay.c
+CPPFLAGS=      -I${DIST} -I${.CURDIR}/../arch/${MACHINE_ARCH} \
+               ${G_INTERNAL_CFLAGS:M-[ID]*:N*readline*:N*intl*:N-I.*} \
+               -I${TOP}/lib/libbfd/arch/${MACHINE_ARCH}
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
+
+.PATH: ${DIST}/gdb/gdbserver
diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/gdbserver/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/gdb/gdbserver/Makefile        Thu Sep 19 21:18:41 2002 +0000
@@ -0,0 +1,20 @@
+#      $NetBSD: Makefile,v 1.1.4.2 2002/09/19 21:18:44 thorpej Exp $
+
+.include <bsd.own.mk>
+
+TOP=           ${NETBSDSRCDIR}/gnu
+DIST=          ${TOP}/dist/toolchain
+
+.include "${.CURDIR}/../arch/${MACHINE_ARCH}/gdbserver.mk"
+
+PROG=          gdbserver
+
+SRCS=          ${G_OBS:.o=.c}
+CPPFLAGS=      -I${DIST} -I${.CURDIR}/../arch/${MACHINE_ARCH} \
+               ${G_INTERNAL_CFLAGS:M-[ID]*:N*readline*:N*intl*:N-I.*} \
+               -I${TOP}/lib/libbfd/arch/${MACHINE_ARCH}
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
+
+.PATH: ${DIST}/gdb/gdbserver
diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/mkinit.sh
--- a/gnu/usr.bin/gdb/mkinit.sh Thu Sep 19 20:56:43 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: mkinit.sh,v 1.2 1999/09/25 05:29:27 enami Exp $
-#
-# Generate the init.c file on stdout.
-# Arguments are names of *.o files.
-
-# Run awk on the (edited) output of nm, i.e:
-# 00000000 T _initialize_xxxx
-# and turn it into a list of function calls.
-
-# Which awk do we use? (awk,gawk,nawk?)
-awk=${AWK:-awk}
-
-# $NM may be a name of nm command for cross compilation.  The default
-# value here is a default when you invoke this script manually.
-nm=${NM:-nm}
-
-# Does the compiler prepend an underscore?
-if ($nm version.o |grep -q ' _version')
-then
- sedarg='s/ _/ /'
-else
- sedarg=
-fi
-# echo "mkinit.sh: sedarg=$sedarg" >&2
-
-echo '/* Do not modify this file.  */'
-echo '/* It is created automatically by the Makefile.  */'
-echo 'void initialize_all_files () {'
-
-for f
-do
-  $nm -p $f
-done |
-sed -e "$sedarg" |
-$awk '
-function doit(str) {
-  printf("  {extern void %s (); %s ();}\n", str, str);
-}
-/ T _initialize_/ {
-  doit($3);
-  next;
-}
-{ next; }
-'
-
-echo '}'
-
-exit 0
diff -r d98af888ed34 -r 2077f0d8c93b gnu/usr.bin/gdb/version.c
--- a/gnu/usr.bin/gdb/version.c Thu Sep 19 20:56:43 2002 +0000



Home | Main Index | Thread Index | Old Index