Source-Changes-HG archive

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

[src/trunk]: src add PSIM support to gdb and install the stand alone in /usr/...



details:   https://anonhg.NetBSD.org/src/rev/0e81bc56b9f2
branches:  trunk
changeset: 521054:0e81bc56b9f2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jan 22 16:55:19 2002 +0000

description:
add PSIM support to gdb and install the stand alone in /usr/bin/psim.  this
fixes the rest of port-powerpc/14307.

diffstat:

 distrib/sets/lists/comp/ad.powerpc     |    3 +-
 gnu/usr.bin/gdb/arch/powerpc/defs.mk   |    1 +
 gnu/usr.bin/gdb/gdb.new/Makefile       |   11 +-
 gnu/usr.bin/sim/Makefile               |   14 +
 gnu/usr.bin/sim/Makefile.inc           |    5 +
 gnu/usr.bin/sim/arch/powerpc/config.h  |  363 +++++++++++++++++++++++++++++++++
 gnu/usr.bin/sim/arch/powerpc/subdir.mk |    1 +
 gnu/usr.bin/sim/ppc/Makefile           |  249 ++++++++++++++++++++++
 gnu/usr.bin/sim/ppc/Makefile.inc       |    5 +
 gnu/usr.bin/sim/ppc/psim/Makefile      |   29 ++
 10 files changed, 678 insertions(+), 3 deletions(-)

diffs (truncated from 745 to 300 lines):

diff -r 0df3d65126b1 -r 0e81bc56b9f2 distrib/sets/lists/comp/ad.powerpc
--- a/distrib/sets/lists/comp/ad.powerpc        Tue Jan 22 16:27:51 2002 +0000
+++ b/distrib/sets/lists/comp/ad.powerpc        Tue Jan 22 16:55:19 2002 +0000
@@ -1,4 +1,5 @@
-# $NetBSD: ad.powerpc,v 1.21 2001/07/15 23:29:13 wiz Exp $
+# $NetBSD: ad.powerpc,v 1.22 2002/01/22 16:55:19 mrg Exp $
+./usr/bin/psim         comp-debug-bin
 ./usr/bin/elf2aout     comp-sysutil-bin
 ./usr/include/powerpc  comp-c-include
 ./usr/include/powerpc/ansi.h   comp-c-include
diff -r 0df3d65126b1 -r 0e81bc56b9f2 gnu/usr.bin/gdb/arch/powerpc/defs.mk
--- a/gnu/usr.bin/gdb/arch/powerpc/defs.mk      Tue Jan 22 16:27:51 2002 +0000
+++ b/gnu/usr.bin/gdb/arch/powerpc/defs.mk      Tue Jan 22 16:55:19 2002 +0000
@@ -3,5 +3,6 @@
 #
 G_INTERNAL_CFLAGS=-g -O2     -I. -I${DIST}/gdb -I${DIST}/gdb/config -DHAVE_CONFIG_H -I${DIST}/gdb/../include/opcode -I${DIST}/gdb/../readline/..  -I../bfd -I${DIST}/gdb/../bfd  
-I${DIST}/gdb/../include  -I../intl -I${DIST}/gdb/../intl -I${DIST}/gdb/tui   -DUSE_INCLUDED_REGEX  
 G_LIBGDB_OBS=version.o blockframe.o breakpoint.o findvar.o stack.o thread.o  source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o  symtab.o symfile.o symmisc.o infcmd.o infrun.o 
command.o  expprint.o environ.o  event-loop.o event-top.o inf-loop.o  gdbarch.o arch-utils.o gdbtypes.o copying.o rs6000-tdep.o solib.o ser-tcp.o ser-unix.o ser-pipe.o infptrace.o inftarg.o 
fork-child.o corelow.o kcore-nbsd.o ppcnbsd-nat.o  remote.o dcache.o remote-utils.o tracepoint.o ax-general.o ax-gdb.o    mem-break.o target.o parse.o language.o c-exp.tab.o  jv-exp.tab.o  
f-exp.tab.o m2-exp.tab.o buildsym.o  kod.o kod-cisco.o  gdb-events.o  exec.o bcache.o objfiles.o minsyms.o maint.o demangle.o  dbxread.o coffread.o elfread.o  dwarfread.o dwarf2read.o mipsread.o 
stabsread.o corefile.o  c-lang.o ch-exp.o ch-lang.o f-lang.o  ui-out.o cli-out.o  varobj.o wrapper.o  jv-lang.o jv-valprint.o jv-typeprint.o  m2-lang.o  scm-exp.o scm-lang.o scm-valprint.o 
complaints.o typeprint.o  c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o  c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o  nlmread.o serial.o mdebugread.o os9kread.o 
top.o utils.o  ui-file.o tui-file.o annotate.o inflow.o gnu-regex.o    init.o
+G_SIM_OBS = remote-sim.o
 G_CCFLAGS=-DHAVE_CONFIG_H   -I. -I${DIST}/readline -I/usr/local/include -DRL_LIBRARY_VERSION='"4.0"' -g -O2
 G_OBJECTS=readline.o vi_mode.o funmap.o keymaps.o parens.o search.o  rltty.o complete.o bind.o isearch.o display.o signals.o  util.o kill.o undo.o macro.o input.o callback.o terminal.o  nls.o 
xmalloc.o history.o histexpand.o histfile.o histsearch.o shell.o tilde.o
diff -r 0df3d65126b1 -r 0e81bc56b9f2 gnu/usr.bin/gdb/gdb.new/Makefile
--- a/gnu/usr.bin/gdb/gdb.new/Makefile  Tue Jan 22 16:27:51 2002 +0000
+++ b/gnu/usr.bin/gdb/gdb.new/Makefile  Tue Jan 22 16:55:19 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2001/12/31 23:04:12 thorpej Exp $
+#      $NetBSD: Makefile,v 1.7 2002/01/22 16:55:21 mrg Exp $
 
 # XXX - This gdb.new directory should be renamed to "gdb" after all platforms
 # have been migrated to the new toolchain.
@@ -14,7 +14,7 @@
 
 PROG=          gdb
 
-SRCS=          ${G_LIBGDB_OBS:.o=.c} ${G_OBJECTS:Nxmalloc.o:.o=.c} main.c
+SRCS=          ${G_LIBGDB_OBS:.o=.c} ${G_OBJECTS:Nxmalloc.o:.o=.c} ${G_SIM_OBS:.o=.c} main.c
 CPPFLAGS=      -I${.CURDIR}/../arch/${MACHINE_ARCH} \
                ${G_INTERNAL_CFLAGS:M-[ID]*:N*readline*:N*intl*:N-I.*} \
                ${G_CCFLAGS:M-DRL_*} \
@@ -41,5 +41,12 @@
 LDADD+=                -L${IBERTYOBJ} -liberty
 DPADD+=                ${IBERTYOBJ}/libiberty.a
 
+# PSIM support for PowerPC.
+.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
+PSIMOBJ!=      cd ${TOP}/usr.bin/sim/ppc && ${PRINTOBJDIR}
+LDADD+=                -L${PSIMOBJ} -lsim
+DPADD+=                ${PSIMOBJ}/libsim.a
+.endif
+
 .PATH: ${DIST}/gdb ${DIST}/gdb/tui ${DIST}/gdb/doc \
        ${DIST}/readline ${.CURDIR}/../arch/${MACHINE_ARCH}
diff -r 0df3d65126b1 -r 0e81bc56b9f2 gnu/usr.bin/sim/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/sim/Makefile  Tue Jan 22 16:55:19 2002 +0000
@@ -0,0 +1,14 @@
+#      $NetBSD: Makefile,v 1.1 2002/01/22 16:55:20 mrg Exp $
+
+.include <bsd.own.mk>
+
+.if defined(USE_NEW_TOOLCHAIN)
+
+# PSIM support for PowerPC.
+.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
+SUBDIR+=       ppc .WAIT ppc/psim
+.endif
+
+.include <bsd.subdir.mk>
+
+.endif
diff -r 0df3d65126b1 -r 0e81bc56b9f2 gnu/usr.bin/sim/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/sim/Makefile.inc      Tue Jan 22 16:55:19 2002 +0000
@@ -0,0 +1,5 @@
+#      $NetBSD: Makefile.inc,v 1.1 2002/01/22 16:55:20 mrg Exp $
+
+DIST=           ${TOP}/dist/toolchain
+
+.include "../../Makefile.inc"
diff -r 0df3d65126b1 -r 0e81bc56b9f2 gnu/usr.bin/sim/arch/powerpc/config.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/usr.bin/sim/arch/powerpc/config.h     Tue Jan 22 16:55:19 2002 +0000
@@ -0,0 +1,363 @@
+/* config.h.  Generated automatically by configure.  */
+/* config.in.  Generated automatically from configure.in by autoheader.  */
+
+/* Define if using alloca.c.  */
+/* #undef C_ALLOCA */
+
+/* Define to empty if the keyword does not work.  */
+/* #undef const */
+
+/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
+   This function is required for alloca.c support on those systems.  */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define to the type of elements in the array set by `getgroups'.
+   Usually this is either `int' or `gid_t'.  */
+#define GETGROUPS_T gid_t
+
+/* Define to `int' if <sys/types.h> doesn't define.  */
+/* #undef gid_t */
+
+/* Define if you have alloca, as a function or macro.  */
+#define HAVE_ALLOCA 1
+
+/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define if you have a working `mmap' system call.  */
+#define HAVE_MMAP 1
+
+/* Define if your struct stat has st_blksize.  */
+#define HAVE_ST_BLKSIZE 1
+
+/* Define if your struct stat has st_blocks.  */
+#define HAVE_ST_BLOCKS 1
+
+/* Define if your struct stat has st_rdev.  */
+#define HAVE_ST_RDEV 1
+
+/* Define if your struct tm has tm_zone.  */
+#define HAVE_TM_ZONE 1
+
+/* Define if you don't have tm_zone but do have the external array
+   tzname.  */
+/* #undef HAVE_TZNAME */
+
+/* Define as __inline if that's what the C compiler calls it.  */
+/* #undef inline */
+
+/* Define to `int' if <sys/types.h> doesn't define.  */
+/* #undef mode_t */
+
+/* Define to `long' if <sys/types.h> doesn't define.  */
+/* #undef off_t */
+
+/* Define to `int' if <sys/types.h> doesn't define.  */
+/* #undef pid_t */
+
+/* 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 to `unsigned' if <sys/types.h> doesn't define.  */
+/* #undef size_t */
+
+/* If using the C implementation of alloca, define if you know the
+   direction of stack growth for your system; otherwise it will be
+   automatically deduced at run-time.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown
+ */
+/* #undef STACK_DIRECTION */
+
+/* Define if you have the ANSI C header files.  */
+#define STDC_HEADERS 1
+
+/* Define if your <sys/time.h> declares struct tm.  */
+/* #undef TM_IN_SYS_TIME */
+
+/* Define to `int' if <sys/types.h> doesn't define.  */
+/* #undef uid_t */
+
+/* Define if your processor stores words with the most significant
+   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
+/* #undef WORDS_BIGENDIAN */
+
+/* Define to 1 if NLS is requested.  */
+#define ENABLE_NLS 1
+
+/* Define as 1 if you have gettext and don't want to use GNU gettext.  */
+/* #undef HAVE_GETTEXT */
+
+/* Define as 1 if you have the stpcpy function.  */
+/* #undef HAVE_STPCPY */
+
+/* Define if your locale.h file contains LC_MESSAGES.  */
+#define HAVE_LC_MESSAGES 1
+
+/* Define if you have the __argz_count function.  */
+/* #undef HAVE___ARGZ_COUNT */
+
+/* Define if you have the __argz_next function.  */
+/* #undef HAVE___ARGZ_NEXT */
+
+/* Define if you have the __argz_stringify function.  */
+/* #undef HAVE___ARGZ_STRINGIFY */
+
+/* Define if you have the access function.  */
+#define HAVE_ACCESS 1
+
+/* Define if you have the cfgetispeed function.  */
+#define HAVE_CFGETISPEED 1
+
+/* Define if you have the cfgetospeed function.  */
+#define HAVE_CFGETOSPEED 1
+
+/* Define if you have the cfsetispeed function.  */
+#define HAVE_CFSETISPEED 1
+
+/* Define if you have the cfsetospeed function.  */
+#define HAVE_CFSETOSPEED 1
+
+/* Define if you have the chdir function.  */
+#define HAVE_CHDIR 1
+
+/* Define if you have the chmod function.  */
+#define HAVE_CHMOD 1
+
+/* Define if you have the chown function.  */
+#define HAVE_CHOWN 1
+
+/* Define if you have the dcgettext function.  */
+/* #undef HAVE_DCGETTEXT */
+
+/* Define if you have the dup function.  */
+#define HAVE_DUP 1
+
+/* Define if you have the dup2 function.  */
+#define HAVE_DUP2 1
+
+/* Define if you have the fchmod function.  */
+#define HAVE_FCHMOD 1
+
+/* Define if you have the fchown function.  */
+#define HAVE_FCHOWN 1
+
+/* Define if you have the fcntl function.  */
+#define HAVE_FCNTL 1
+
+/* Define if you have the fstat function.  */
+#define HAVE_FSTAT 1
+
+/* Define if you have the fstatfs function.  */
+#define HAVE_FSTATFS 1
+
+/* Define if you have the getcwd function.  */
+#define HAVE_GETCWD 1
+
+/* Define if you have the getdirentries function.  */
+#define HAVE_GETDIRENTRIES 1
+
+/* Define if you have the getegid function.  */
+#define HAVE_GETEGID 1
+
+/* Define if you have the geteuid function.  */
+#define HAVE_GETEUID 1
+
+/* Define if you have the getgid function.  */
+#define HAVE_GETGID 1
+
+/* Define if you have the getpagesize function.  */
+#define HAVE_GETPAGESIZE 1
+
+/* Define if you have the getpid function.  */
+#define HAVE_GETPID 1
+
+/* Define if you have the getppid function.  */
+#define HAVE_GETPPID 1
+
+/* Define if you have the getrusage function.  */
+#define HAVE_GETRUSAGE 1
+
+/* Define if you have the gettimeofday function.  */
+#define HAVE_GETTIMEOFDAY 1
+
+/* Define if you have the getuid function.  */
+#define HAVE_GETUID 1
+
+/* Define if you have the ioctl function.  */
+#define HAVE_IOCTL 1
+
+/* Define if you have the kill function.  */
+#define HAVE_KILL 1
+
+/* Define if you have the link function.  */
+#define HAVE_LINK 1
+
+/* Define if you have the lseek function.  */
+#define HAVE_LSEEK 1
+
+/* Define if you have the lstat function.  */
+#define HAVE_LSTAT 1
+
+/* Define if you have the mkdir function.  */
+#define HAVE_MKDIR 1
+
+/* Define if you have the munmap function.  */
+#define HAVE_MUNMAP 1
+
+/* Define if you have the pipe function.  */
+#define HAVE_PIPE 1
+
+/* Define if you have the putenv function.  */
+#define HAVE_PUTENV 1
+
+/* Define if you have the readlink function.  */



Home | Main Index | Thread Index | Old Index