This was temporary - now in ../gdb

This commit is contained in:
gwr 1997-10-18 18:57:59 +00:00
parent 473fa8d5f6
commit 5fe3a1e907
15 changed files with 0 additions and 371 deletions

View File

@ -1,23 +0,0 @@
echo Setting up the environment for debugging gdb.\n
set complaints 1
b fatal
b info_command
commands
silent
return
end
dir ../../dist/gdb
dir ../../dist/readline
dir ../../lib/bfd
dir ../../dist/bfd
dir ../../dist/opcodes
dir ../../dist/libiberty
dir ../../dist/include
set prompt (top-gdb)

View File

@ -1,116 +0,0 @@
# $NetBSD: Makefile,v 1.7 1997/09/29 15:41:09 gwr Exp $
PROG= gdb
TOP= $(.CURDIR)/../..
dist= $(TOP)/dist
srcdir= $(dist)/gdb
.PATH: $(srcdir)
# Override this to build a cross-debugger.
TARGET_ARCH?=$(MACHINE_ARCH)
# Debugging?
# CFLAGS=-g
# Find out where libreadline.a lives.
RL_CURDIR=$(TOP)/lib/readline
RL_OBJDIR!=cd $(RL_CURDIR); $(MAKE) echo_objdir
LIBREADLINE=$(RL_OBJDIR)/libreadline.a
# Note: nm.h, tm.h are in $(.OBJDIR),
# and config.h, xm.h are in $(.CURDIR)
INCLS+= -I$(.OBJDIR) -I$(.CURDIR)
# GDB_CFLAGS
INCLS+= -I$(srcdir) -I$(srcdir)/config
# READLINE_CFLAGS
INCLS+= -I$(dist)/readline
# BFD_CFLAGS: Make sure we get the installed bfd.h
INCLS+= -I$(TOP)/lib/bfd
INCLS+= -I$(dist)/bfd
INCLS+= -I$(dist)/include
# misc. -DHAVE_TERMIOS
# KERNEL_DEBUG no longer used. See ADDITIONAL_OPTIONS*
DEFS= -DNO_MMALLOC
CFLAGS+= $(INCLS) $(DEFS)
.include "_$(TARGET_ARCH).mk"
# Any NetBSD: (i386 m68k ns32k sparc vax)
NDEP_CMN?= infptrace.c inftarg.c fork-child.c corelow.c kcore-nbsd.c
XDEP_FILES= ser-tcp.c ser-unix.c
REMOTE_SRCS = remote.c dcache.c remote-utils.c
DEPFILES = $(TDEP_FILES) $(XDEP_FILES) \
$(NDEP_CMN) $(NDEP_FILES) $(REMOTE_SRCS)
YYSRCS= c-exp.tab.c f-exp.tab.c m2-exp.tab.c
# This exists only for easy comparison with the GNU Makefile.
COMMON_SRCS = version.c blockframe.c breakpoint.c findvar.c stack.c thread.c \
source.c values.c eval.c valops.c valarith.c valprint.c printcmd.c \
symtab.c symfile.c symmisc.c infcmd.c infrun.c command.c \
expprint.c environ.c gdbtypes.c copying.c $(DEPFILES) \
mem-break.c target.c parse.c language.c $(YYSRCS) buildsym.c \
exec.c bcache.c objfiles.c minsyms.c maint.c demangle.c \
dbxread.c coffread.c elfread.c \
dwarfread.c mipsread.c stabsread.c corefile.c \
c-lang.c ch-exp.c ch-lang.c f-lang.c m2-lang.c \
scm-exp.c scm-lang.c scm-valprint.c complaints.c typeprint.c \
c-typeprint.c ch-typeprint.c f-typeprint.c m2-typeprint.c \
c-valprint.c cp-valprint.c ch-valprint.c f-valprint.c m2-valprint.c \
nlmread.c serial.c mdebugread.c os9kread.c top.c utils.c callback.c
SRCS= main.c $(COMMON_SRCS) annotate.c inflow.c gnu-regex.c
OBJS= init.o
LDADD+= $(LIBREADLINE)
DPADD+= $(LIBREADLINE)
LDADD+= -lbfd
DPADD+= $(LIBBFD)
LDADD+= -lkvm
DPADD+= $(LIBKVM)
LDADD+= -ltermcap
DPADD+= $(LIBTERMCAP)
DPSRCS+= nm.h tm.h
.include <bsd.prog.mk>
# Note: this rule does something similar to the gcc "collect" program,
# by scanning all the objects for initialization functions, collecting
# them all into the generated init.c file, which is called by main.
CLEANFILES+= init.c
init.o : $(OBJS:S/init.o//)
-rm -f init.c
sh $(.CURDIR)/mkinit.sh $(OBJS:S/init.o//) > init.c
${COMPILE.c} init.c
# Need these headers before any objects.
$(OBJS) : nm.h tm.h xm.h
nm.h : $(srcdir)/$(NM_FILE)
-rm -f $@
cp -p $(srcdir)/$(NM_FILE) $@
tm.h : $(srcdir)/$(TM_FILE)
-rm -f $@
cp -p $(srcdir)/$(TM_FILE) $@
version.o : version.c
$(CC) $(CFLAGS) $(CPPFLAGS) \
-DHOST_NAME=\"$(MACHINE_ARCH)-netbsd\" \
-DTARGET_NAME=\"$(TARGET_ARCH)-netbsd\" \
-c $(.IMPSRC)
# YACC rules for YYSRCS? Our yacc did not work for me, so
# this makefile uses the FSF-provided YYSRCS for now.

View File

@ -1,10 +0,0 @@
# $NetBSD: _alpha.mk,v 1.2 1997/09/29 15:37:22 gwr Exp $
# From gdb/config/alpha/nbsd.mh
NM_FILE= config/alpha/nm-nbsd.h
NDEP_FILES= alphanbsd-nat.c
# From gdb/config/alpha/nbsd.mt
TM_FILE= config/alpha/tm-nbsd.h
TDEP_FILES= alpha-tdep.c solib.c

View File

@ -1,9 +0,0 @@
# $NetBSD: _arm32.mk,v 1.1 1997/10/17 21:30:12 gwr Exp $
# From gdb/config/arm/arm.mh
NM_FILE= config/nm-nbsd.h
NDEP_FILES= arm-xdep.c arm-convert.s
# From gdb/config/arm/arm.mt
TM_FILE= config/arm/tm-arm.h
TDEP_FILES= arm-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _i386.mk,v 1.2 1997/09/29 15:37:23 gwr Exp $
# From gdb/config/i386/nbsd.mh
NM_FILE= config/i386/nm-nbsd.h
NDEP_FILES= i386nbsd-nat.c
# From gdb/config/i386/nbsd.mt
TM_FILE= config/i386/tm-nbsd.h
TDEP_FILES= i386-tdep.c i387-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _m68k.mk,v 1.2 1997/09/29 15:37:23 gwr Exp $
# From gdb/config/m68k/nbsd.mh
NM_FILE= config/m68k/nm-nbsd.h
NDEP_FILES= m68knbsd-nat.c
# From gdb/config/m68k/nbsd.mt
TM_FILE= config/m68k/tm-nbsd.h
TDEP_FILES= m68k-tdep.c solib.c

View File

@ -1,9 +0,0 @@
# $NetBSD: _mips.mk,v 1.1 1997/10/17 21:30:07 gwr Exp $
# From gdb/config/mips/decstation.mh
NM_FILE= config/mips/nm-mips.h
NDEP_FILES= mips-nat.c
# From gdb/config/mips/decstation.mt
TM_FILE= config/mips/tm-mips.h
TDEP_FILES= mips-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _ns32k.mk,v 1.2 1997/09/29 15:37:24 gwr Exp $
# gdb/config/ns32k/nbsd.mh
NM_FILE= config/ns32k/nm-nbsd.h
NDEP_FILES= ns32knbsd-nat.c
# gdb/config/ns32k/nbsd.mt
TM_FILE= config/ns32k/tm-nbsd.h
TDEP_FILES= ns32k-tdep.c solib.c

View File

@ -1,9 +0,0 @@
# $NetBSD: _powerpc.mk,v 1.1 1997/10/17 21:30:18 gwr Exp $
# From gdb/config/powerpc/nbsd.mh
NM_FILE= config/powerpc/nm-nbsd.h
NDEP_FILES= rs6000-nat.c
# From gdb/config/powerpc/nbsd.mt
TM_FILE= config/powerpc/tm-nbsd.h
TDEP_FILES= rs6000-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _sparc.mk,v 1.2 1997/09/29 15:37:25 gwr Exp $
# From gdb/config/sparc/nbsd.mh
NM_FILE= config/sparc/nm-nbsd.h
NDEP_FILES= sparcnbsd-nat.c
# From gdb/config/sparc/nbsd.mt
TM_FILE= config/sparc/tm-nbsd.h
TDEP_FILES= sparc-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _vax.mk,v 1.2 1997/09/29 15:37:26 gwr Exp $
# From gdb/config/vax/nbsd.mh
NM_FILE= config/vax/nm-nbsd.h
NDEP_FILES= vaxnbsd-nat.c
# From gdb/config/vax/nbsd.mt
TM_FILE= config/vax/tm-nbsd.h
TDEP_FILES= vax-tdep.c solib.c

View File

@ -1,91 +0,0 @@
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* 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 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 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 "%Lg" format works to print long doubles. */
#define PRINTF_HAS_LONG_DOUBLE 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the sbrk function. */
#define HAVE_SBRK 1
/* Define if you have the setpgid function. */
#define HAVE_SETPGID 1
/* Define if you have the valloc function. */
#define HAVE_VALLOC 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 <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 <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 */

View File

@ -1,46 +0,0 @@
#!/bin/sh
#
# $NetBSD: mkinit.sh,v 1.1.1.1 1997/09/26 04:37:02 gwr 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}
# 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

View File

@ -1,5 +0,0 @@
/* $NetBSD: version.c,v 1.1.1.1 1997/09/26 04:37:02 gwr Exp $ */
char *version = "4.16";
char *host_name = HOST_NAME;
char *target_name = TARGET_NAME;

View File

@ -1,3 +0,0 @@
/* $NetBSD: xm.h,v 1.1.1.1 1997/09/26 04:37:02 gwr Exp $ */
#include "xm-nbsd.h"