Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@delorie.com>
To: ac131313@cygnus.com
Cc: gdb-patches@sourceware.cygnus.com
Subject: Re: [rfa/5?] fix refsheet when PS and A4 and separate build dir
Date: Tue, 23 May 2000 13:41:00 -0000	[thread overview]
Message-ID: <200005232041.QAA29178@indy.delorie.com> (raw)
In-Reply-To: <392A890A.16796AF1@cygnus.com>

> Date: Tue, 23 May 2000 23:35:06 +1000
> From: Andrew Cagney <ac131313@cygnus.com>
> 
> The attached fixes the fairly obscure case of generating a reference
> card for an A4 PS printer when building from a separate directory. 
> ``for f in "a.sed b.sed" ; do'' doesn't work very well.
> 
> Ok?

Yes, okay.
From kettenis@wins.uva.nl Tue May 23 16:53:00 2000
From: Mark Kettenis <kettenis@wins.uva.nl>
To: gdb-patches@sourceware.cygnus.com
Subject: [PATCH] New i387 native files.
Date: Tue, 23 May 2000 16:53:00 -0000
Message-id: <200005232353.e4NNr3j00396@delius.kettenis.local>
X-SW-Source: 2000-05/msg00358.html
Content-length: 6224

When I found myself writing yet another way of moving data from an
i387 FSAVE area to GDB's register array for FreeBSD/i386 I decided
that it would be useful to have a generic pair of functions to do
this.  Hence the birth of two new files.  The FreeBSD/i386 port will
use this, and it is my intention to convert the other i386 native
configurations to use them too.

Mark


2000-05-24  Mark Kettenis  <kettenis@gnu.org>

	* i387-nat.h, i387-nat.c: New files.


--- /dev/null	Thu Feb 19 16:30:24 1998
+++ i387-nat.h	Wed May 24 01:35:31 2000
@@ -0,0 +1,37 @@
+/* Native-dependent code for the i387.
+   Copyright (C) 2000 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 I387_NAT_H
+#define I387_NAT_H
+
+/* Fill GDB's register array with the floating-point register values
+   in *FSAVE.  This function masks off any of the reserved
+   bits in *FSAVE.  */
+
+void i387_supply_fsave (char *fsave);
+
+/* Fill register REGNO (if it is a floating-point register) in *FSAVE
+   with the value in GDB's register array.  If REGNO is -1, do this
+   for all registers.  This function doesn't touch any of the reserved
+   bits in *FSAVE.  */
+
+void i387_fill_fsave (char *fsave, int regno);
+
+#endif /* i387-nat.h */
--- /dev/null	Thu Feb 19 16:30:24 1998
+++ i387-nat.c	Mon May 22 02:23:55 2000
@@ -0,0 +1,125 @@
+/* Native-dependent code for the i387.
+   Copyright (C) 2000 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.  */
+
+#include "defs.h"
+#include "inferior.h"
+#include "value.h"
+
+/* FIXME: kettenis/2000-05-21: Right now more than a few i386 targets
+   define their own routines to manage the floating-point registers in
+   GDB's register array.  Most (if not all) of these targets use the
+   format used by the "fsave" instruction in their communication with
+   the OS.  They should all be converted to use the routines below.  */
+
+/* At fsave_offset[REGNO] you'll find the offset to the location in
+   the data structure used by the "fsave" instruction where GDB
+   register REGNO is stored.  */
+
+static int fsave_offset[] =
+{
+  28 + 0 * FPU_REG_RAW_SIZE,	/* FP0_REGNUM through ...  */
+  28 + 1 * FPU_REG_RAW_SIZE,  
+  28 + 2 * FPU_REG_RAW_SIZE,  
+  28 + 3 * FPU_REG_RAW_SIZE,  
+  28 + 4 * FPU_REG_RAW_SIZE,  
+  28 + 5 * FPU_REG_RAW_SIZE,  
+  28 + 6 * FPU_REG_RAW_SIZE,  
+  28 + 7 * FPU_REG_RAW_SIZE,	/* ... FP7_REGNUM.  */
+  0,				/* FCTRL_REGNUM (16 bits).  */
+  4,				/* FSTAT_REGNUM (16 bits).  */
+  8,				/* FTAG_REGNUM (16 bits).  */
+  16,				/* FCS_REGNUM (16 bits).  */
+  12,				/* FCOFF_REGNUM.  */
+  24,				/* FDS_REGNUM.  */
+  20,				/* FDOFF_REGNUM.  */
+  18				/* FOP_REGNUM (bottom 11 bits).  */
+};
+
+#define FSAVE_ADDR(fsave, regnum) (fsave + fsave_offset[regnum - FP0_REGNUM])
+\f
+
+/* Fill GDB's register array with the floating-point register values
+   in *FSAVE.  This function masks off any of the reserved
+   bits in *FSAVE.  */
+
+void
+i387_supply_fsave (char *fsave)
+{
+  int i;
+
+  for (i = FP0_REGNUM; i <= LAST_FPU_CTRL_REGNUM; i++)
+    {
+      /* Most of the FPU control registers occupy only 16 bits in
+	 the fsave area.  Give those a special treatment.  */
+      if (i >= FIRST_FPU_CTRL_REGNUM
+	  && i != FCOFF_REGNUM && i != FDOFF_REGNUM)
+	{
+	  unsigned val = *(unsigned short *) (FSAVE_ADDR (fsave, i));
+
+	  if (i == FOP_REGNUM)
+	    {
+	      val &= ((1 << 11) - 1);
+	      supply_register (i, (char *) &val);
+	    }
+	  else
+	    supply_register (i, (char *) &val);
+	}
+      else
+	supply_register (i, FSAVE_ADDR (fsave, i));
+    }
+}
+
+/* Fill register REGNO (if it is a floating-point register) in *FSAVE
+   with the value in GDB's register array.  If REGNO is -1, do this
+   for all registers.  This function doesn't touch any of the reserved
+   bits in *FSAVE.  */
+
+void
+i387_fill_fsave (char *fsave, int regno)
+{
+  int i;
+
+  for (i = FP0_REGNUM; i <= LAST_FPU_CTRL_REGNUM; i++)
+    if (regno == -1 || regno == i)
+      {
+	/* Most of the FPU control registers occupy only 16 bits in
+           the fsave area.  Give those a special treatment.  */
+	if (i >= FIRST_FPU_CTRL_REGNUM
+	    && i != FCOFF_REGNUM && i != FDOFF_REGNUM)
+	  {
+	    if (i == FOP_REGNUM)
+	      {
+		unsigned short oldval, newval;
+
+		/* The opcode occupies only 11 bits.  */
+		oldval = (*(unsigned short *) (FSAVE_ADDR (fsave, i)));
+		newval = *(unsigned short *) &registers[REGISTER_BYTE (i)];
+		newval &= ((1 << 11) - 1);
+		newval |= oldval & ~((1 << 11) - 1);
+		memcpy (FSAVE_ADDR (fsave, i), &newval, 2);
+	      }
+	    else
+	      memcpy (FSAVE_ADDR (fsave, i), &registers[REGISTER_BYTE (i)], 2);
+	  }
+	else
+	  memcpy (FSAVE_ADDR (fsave, i), &registers[REGISTER_BYTE (i)],
+		  REGISTER_RAW_SIZE (i));
+      }
+}
From ac131313@cygnus.com Tue May 23 20:22:00 2000
From: Andrew Cagney <ac131313@cygnus.com>
To: Jimmy Guo <guo@cup.hp.com>
Cc: gdb-patches@sourceware.cygnus.com
Subject: Re: [rfa/tui] Convert TUI to MI Makefile configury
Date: Tue, 23 May 2000 20:22:00 -0000
Message-id: <392B4A26.2439B81D@cygnus.com>
References: <Pine.LNX.4.10.10005230933500.4218-100000@hpcll168.cup.hp.com>
X-SW-Source: 2000-05/msg00359.html
Content-length: 16049

Jimmy Guo wrote:
> 
> Andrew,
> 
> You didn't include the configure.in part of the changes ... I will look
> at it again when you have the complete diff.

Oops.  Try the attached.  The configury is fairly under exciting :-)

	Andrew
Index: ChangeLog
Mon May 15 16:55:22 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* configure.in (AC_OUTPUT): Do not generate tui/Makefile.
	(enable-tui): Convert Makefile configury to use the same mechanism
 	as MI.

	* Makefile.in (BUILD_TUI, TUI_LIBRARY, TUI_DIR, TUI_SRC,
 	TUI_CFLAGS): Delete
	(all-tui): Delete target.
	(tuiWin.o, tuiStack.o, tuiSourceWin.o, tuiSource.o, tuiRegs.o,
 	tuiLayout.o, tuiIO.o, tuiGeneralWin.o, tuiDisassem.o,
 	tuiDataWin.o, tuiData.o, tuiCommand.o, tui.o): New targets.
	(SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_TUI_DEPS,
 	SUBDIR_TUI_INITS, SUBDIR_TUI_LDFLAGS, SUBDIR_TUI_CFLAGS,
 	SUBDIR_TUI_ALL, SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL,
 	SUBDIR_TUI_UNINSTALL): Define.

Index: tui/ChangeLog
Mon May 15 17:16:10 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* Makefile.in: Delete.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.30
diff -p -r1.30 Makefile.in
*** Makefile.in	2000/05/10 20:07:24	1.30
--- Makefile.in	2000/05/15 10:50:54
*************** DLLTOOL = @DLLTOOL@
*** 62,75 ****
  WINDRES = @WINDRES@
  MIG = @MIG@
  
- # If the user configured GDB to include the TUI, the name of the tui
- # library goes here.
- TUI_LIBRARY = @TUI_LIBRARY@
- 
- # If the user configured GDB to include the TUI, the all-tui 
- # target goes here.
- BUILD_TUI = @BUILD_TUI@
- 
  # Flags that describe where you can find the termcap library.
  # This can be overridden in the host Makefile fragment file.
  TERMCAP = @TERM_LIB@
--- 62,67 ----
*************** INTL_DEPS = @INTLDEPS@
*** 142,152 ****
  INTL_SRC = $(srcdir)/$(INTL_DIR)
  INTL_CFLAGS = -I$(INTL_DIR) -I$(INTL_SRC)
  
- # Where is the TUI library?  Typically in tui/.
- TUI_DIR=tui
- TUI_SRC = $(srcdir)/$(TUI_DIR)
- TUI_CFLAGS= -I$(TUI_SRC)
- 
  #
  # MI sub directory definitons
  #
--- 134,139 ----
*************** SUBDIR_MI_CLEAN=
*** 172,177 ****
--- 159,191 ----
  SUBDIR_MI_INSTALL=
  SUBDIR_MI_UNINSTALL=
  
+ #
+ # TUI sub directory definitions
+ #
+ SUBDIR_TUI_OBS = \
+ 	tui.o tuiData.o tuiSource.o tuiStack.o tuiIO.o \
+ 	tuiGeneralWin.o tuiLayout.o tuiWin.o tuiCommand.o \
+ 	tuiDisassem.o tuiSourceWin.o tuiRegs.o tuiDataWin.o
+ SUBDIR_TUI_SRCS = \
+ 	tui/tui.c tui/tuiData.c tui/tuiSource.c \
+ 	tui/tuiStack.c tui/tuiIO.c \
+ 	tui/tuiGeneralWin.c tui/tuiLayout.c \
+ 	tui/tuiWin.c tui/tuiCommand.c \
+ 	tui/tuiDisassem.c tui/tuiSourceWin.c \
+ 	tui/tuiRegs.c tui/tuiDataWin.c
+ SUBDIR_TUI_DEPS =
+ SUBDIR_TUI_INITS = \
+ 	$(SUBDIR_TUI_SRCS)
+ SUBDIR_TUI_LDFLAGS=
+ SUBDIR_TUI_CFLAGS= \
+ 	-DTUI=1 -I${srcdir}/tui
+ SUBDIR_TUI_ALL=
+ SUBDIR_TUI_CLEAN=
+ SUBDIR_TUI_INSTALL=
+ SUBDIR_TUI_UNINSTALL=
+ 
+ 
+ 
  # Opcodes currently live in one of two places.  Either they are in the
  # opcode library, typically ../opcodes, or they are in a header file
  # in INCLUDE_DIR.
*************** INTERNAL_WARN_CFLAGS = \
*** 275,281 ****
  	$(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
  	$(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
  	$(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
! 	$(INTL_CFLAGS) $(TUI_CFLAGS) $(ENABLE_CFLAGS) \
  	$(GDB_WARN_CFLAGS)
  INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
  
--- 289,295 ----
  	$(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
  	$(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
  	$(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
! 	$(INTL_CFLAGS) $(ENABLE_CFLAGS) \
  	$(GDB_WARN_CFLAGS)
  INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
  
*************** kdb:	$(NTSSTART) $(OBS) $(NTSOBS) $(ADD_
*** 837,849 ****
  	ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \
  	  -lc $(CLIBS)
  
- # Have the TUI library depend on a phony target, so we'll always
- # recurse and make sure it's up to date.  If it is, then the file will
- # be unchanged, and we won't rebuild it.
- # .PHONY: check-tui
- all-tui: 
- 	@(cd tui; ${MAKE} ${FLAGS_TO_PASS} all)
- 
  # Put the proper machine-specific files first, so M-. on a machine
  # specific routine gets the one for the correct machine.  (FIXME: those
  # files go in twice; we should be removing them from the main list).
--- 851,856 ----
*************** mi-parse.o: $(srcdir)/mi/mi-parse.c $(de
*** 1986,1990 ****
--- 1993,2062 ----
  	$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-parse.c
  mi-getopt.o: $(srcdir)/mi/mi-getopt.c $(mi_getopt_h) $(defs_h)
  	$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-getopt.c
+ 
+ #
+ # TUI dependencies
+ #
+ # Need to explicitly specify the compile rule as make will do nothing
+ # or try to compile the object file into the mi directory.
+ 
+ tui.o: $(srcdir)/tui/tui.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiLayout.h $(srcdir)/tui/tuiIO.h \
+ 		$(srcdir)/tui/tuiRegs.h $(srcdir)/tui/tuiWin.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tui.c
+ tuiCommand.o: $(srcdir)/tui/tuiCommand.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiWin.h $(srcdir)/tui/tuiIO.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiCommand.c
+ tuiData.o: $(srcdir)/tui/tuiData.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiData.c
+ tuiDataWin.o: $(srcdir)/tui/tuiDataWin.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiRegs.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiDataWin.c
+ tuiDisassem.o: $(srcdir)/tui/tuiDisassem.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiLayout.h $(srcdir)/tui/tuiSourceWin.h \
+ 		$(srcdir)/tui/tuiStack.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiDisassem.c
+ tuiGeneralWin.o: $(srcdir)/tui/tuiGeneralWin.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiGeneralWin.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiGeneralWin.c
+ tuiIO.o: $(srcdir)/tui/tuiIO.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiIO.h $(srcdir)/tui/tuiCommand.h \
+ 		$(srcdir)/tui/tuiWin.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiIO.c
+ tuiLayout.o: $(srcdir)/tui/tuiLayout.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiGeneralWin.h $(srcdir)/tui/tuiStack.h \
+ 		$(srcdir)/tui/tuiRegs.h $(srcdir)/tui/tuiDisassem.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiLayout.c
+ tuiRegs.o: $(srcdir)/tui/tuiRegs.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiLayout.h $(srcdir)/tui/tuiWin.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiRegs.c
+ tuiSource.o: $(srcdir)/tui/tuiSource.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiStack.h $(srcdir)/tui/tuiSourceWin.h \
+ 		$(srcdir)/tui/tuiSource.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiSource.c
+ tuiSourceWin.o: $(srcdir)/tui/tuiSourceWin.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiStack.h $(srcdir)/tui/tuiSourceWin.h \
+ 		$(srcdir)/tui/tuiSource.h $(srcdir)/tui/tuiDisassem.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiSourceWin.c
+ tuiStack.o: $(srcdir)/tui/tuiStack.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiStack.h $(srcdir)/tui/tuiSourceWin.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiStack.c
+ tuiWin.o: $(srcdir)/tui/tuiWin.c \
+ 		$(srcdir)/tui/tui.h $(srcdir)/tui/tuiData.h \
+ 		$(srcdir)/tui/tuiGeneralWin.h $(srcdir)/tui/tuiStack.h \
+ 		$(srcdir)/tui/tuiSourceWin.h $(srcdir)/tui/tuiDataWin.h
+ 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/tui/tuiWin.c
  
  ### end of the gdb Makefile.in.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.22
diff -p -r1.22 configure.in
*** configure.in	2000/05/12 04:37:00	1.22
--- configure.in	2000/05/24 03:15:07
*************** AC_ARG_ENABLE(tui,
*** 456,472 ****
  ])
  case ${enable_tui} in
    "yes" )
!     AC_DEFINE(TUI)
!     BUILD_TUI=all-tui
!     TUI_LIBRARY=tui/libtui.a
!   ;;
!   * )
!     BUILD_TUI=
!     TUI_LIBRARY=
!   ;;
  esac
- AC_SUBST(BUILD_TUI)
- AC_SUBST(TUI_LIBRARY)
  
  AC_ARG_ENABLE(netrom,
  [  --enable-netrom         Enable NetROM support],
--- 456,474 ----
  ])
  case ${enable_tui} in
    "yes" )
!     if test -d "${srcdir}/tui" ; then
!       CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
!       CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
!       CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_TUI_SRCS)"
!       CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
!       ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
!       CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
!       CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
!       CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
!       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
!     fi
!     ;;
  esac
  
  AC_ARG_ENABLE(netrom,
  [  --enable-netrom         Enable NetROM support],
*************** dnl Check for exe extension set on certa
*** 1008,1014 ****
  AC_EXEEXT
  
  AC_CONFIG_SUBDIRS($configdirs)
! AC_OUTPUT(Makefile tui/Makefile .gdbinit:gdbinit.in,
  [
  dnl Autoconf doesn't provide a mechanism for modifying definitions 
  dnl provided by makefile fragments.
--- 1010,1016 ----
  AC_EXEEXT
  
  AC_CONFIG_SUBDIRS($configdirs)
! AC_OUTPUT(Makefile .gdbinit:gdbinit.in,
  [
  dnl Autoconf doesn't provide a mechanism for modifying definitions 
  dnl provided by makefile fragments.
Index: tui/Makefile.in
===================================================================
RCS file: Makefile.in
diff -N Makefile.in
*** /sourceware/cvs-tmp/cvsJHuOny	Mon May 15 03:50:55 2000
--- /dev/null	Tue May  5 13:32:27 1998
***************
*** 1,171 ****
- # Copyright 1998 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.
- 
- all: libtui.a
- 
- srcdir=@srcdir@
- VPATH = @srcdir@
- 
- SHELL = @SHELL@
- 
- CC=@CC@
- CFLAGS=@CFLAGS@
- AR=@AR@
- RANLIB=@RANLIB@
- 
- # Host and target-dependent makefile fragments come in here.
- @host_makefile_frag@
- @target_makefile_frag@
- # End of host and target-dependent makefile fragments
- 
- # Where is our "include" directory?  Typically $(srcdir)/../include.
- # This is essentially the header file directory for the library
- # routines in libiberty.
- INCLUDE_DIR =  $(srcdir)/../../include
- INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
- 
- # Configured by the --with-mmalloc option to configure.
- MMALLOC = @MMALLOC@
- MMALLOC_CFLAGS = @MMALLOC_CFLAGS@
- 
- # Where is the BFD library?  Typically in ../bfd.
- BFD_DIR = ../../bfd
- BFD_SRC = $(srcdir)/$(BFD_DIR)
- BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
- 
- # Where is the READLINE library?  Typically in ../readline.
- READLINE_DIR = ../../readline
- READLINE_SRC = $(srcdir)/$(READLINE_DIR)
- READLINE_CFLAGS = -I$(READLINE_SRC)
- 
- # Where is the INTL library?  Typically in ../intl.
- INTL_DIR = ../../intl
- INTL_SRC = $(srcdir)/$(INTL_DIR)
- INTL_CFLAGS = -I$(INTL_DIR) -I$(INTL_SRC)
- 
- # Where is the TCL library?  Typically in ../tcl.
- TCL_CFLAGS = @TCLHDIR@
- 
- # Where is the TK library?  Typically in ../tk.
- TK_CFLAGS = @TKHDIR@ @TK_BUILD_INCLUDES@
- 
- # Where is Itcl?  Typically in ../itcl.
- ITCL_CFLAGS = @ITCLHDIR@
- 
- # Where is Tix?  Typically in ../tix.
- TIX_CFLAGS = @TIXHDIR@
- 
- X11_CFLAGS = @TK_XINCLUDES@
- 
- ENABLE_IDE= @ENABLE_IDE@
- 
- GUI_CFLAGS_X = -I$(srcdir)/../../libgui/src
- 
- IDE_CFLAGS_X = -I$(srcdir)/../../libidetcl/src -I$(srcdir)/../../libide/src \
-   `if [ x"$(ENABLE_IDE)" != x ] ; then \
-     echo -DIDE -I$(srcdir)/../../ilu/runtime/mainloop;\
-   fi`
- 
- IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
- 
- ENABLE_CFLAGS= @ENABLE_CFLAGS@
- 
- # -I. for config files.
- # -I$(srcdir) for gdb internal headers and possibly for gnu-regex.h also.
- # -I$(srcdir)/config for more generic config files.
- 
- # It is also possible that you will need to add -I/usr/include/sys if
- # your system doesn't have fcntl.h in /usr/include (which is where it
- # should be according to Posix).
- DEFS = @DEFS@
- GDB_CFLAGS = -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config $(DEFS)
- 
- # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
- # from the config directory.
- GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS)
- #PROFILE_CFLAGS = -pg
- 
- # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
- INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
- 	$(GDB_CFLAGS) $(READLINE_CFLAGS) $(BFD_CFLAGS) \
- 	$(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) $(INTL_CFLAGS) \
- 	$(ENABLE_CFLAGS)
- 
- HEADERS = tuiIO.h tuiData.h tuiGeneralWin.h tuiLayout.h tuiStack.h \
- 	  tuiSource.h tuiCommand.h tuiWin.h tuiDisassem.h \
- 	  tuiSourceWin.h tuiRegs.h tuiDataWin.h
- 
- SOURCES = tui.c tuiData.c tuiSource.c tuiStack.c tuiIO.c \
- 	  tuiGeneralWin.c tuiLayout.c tuiWin.c tuiCommand.c \
- 	  tuiDisassem.c tuiSourceWin.c tuiRegs.c tuiDataWin.c
- 
- OBJECTS = tui.o tuiData.o tuiSource.o tuiStack.o tuiIO.o \
- 	  tuiGeneralWin.o tuiLayout.o tuiWin.o tuiCommand.o \
- 	  tuiDisassem.o tuiSourceWin.o tuiRegs.o tuiDataWin.o \
- 	  tuiInit.o
- 
- 
- # Prevent Sun make from putting in the machine type.  Setting
- # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
- .c.o:
- 	$(CC) -c $(INTERNAL_CFLAGS) $<
- .SUFFIXES: .cpp
- .c.cpp:
- 	$(CC) -E $(INTERNAL_CFLAGS) $< > $@
- 
- libtui.a: $(OBJECTS)
- 	rm -f libtui.a
- 	$(AR) rc libtui.a $(OBJECTS)
- 	$(RANLIB) libtui.a
- 
- tui.o: tui.c tui.h tuiData.h tuiLayout.h tuiIO.h tuiRegs.h tuiWin.h
- tuiCommand.o: tui.h tuiData.h tuiWin.h tuiIO.h
- tuiData.o: tui.h tuiData.h
- tuiDataWin.o: tui.h tuiData.h tuiRegs.h
- tuiDisassem.o: tui.h tuiData.h tuiLayout.h tuiSourceWin.h tuiStack.h
- tuiGeneralWin.o: tui.h tuiData.h tuiGeneralWin.h
- tuiIO.o: tui.h tuiData.h tuiIO.h tuiCommand.h tuiWin.h
- tuiLayout.o: tui.h tuiData.h tuiGeneralWin.h tuiStack.h tuiRegs.h \
- 	tuiDisassem.h
- tuiRegs.o: tui.h tuiData.h tuiLayout.h tuiWin.h
- tuiSource.o: tui.h tuiData.h tuiStack.h tuiSourceWin.h tuiSource.h
- tuiSourceWin.o: tui.h tuiData.h tuiStack.h tuiSourceWin.h tuiSource.h \
- 	tuiDisassem.h
- tuiStack.o: tui.h tuiData.h tuiStack.h tuiSourceWin.h
- tuiWin.o: tui.h tuiData.h tuiGeneralWin.h tuiStack.h tuiSourceWin.h \
- 	tuiDataWin.h
- 
- tuiInit.o: tuiInit.c
- tuiInit.c: $(SOURCES)
- 	@echo Making tuiInit.c
- 	@rm -f init.c-tmp
- 	@echo '/* Do not modify this file.  */' >init.c-tmp
- 	@echo '/* It is created automatically by the Makefile.	*/'>>init.c-tmp
- 	@echo '#include "ansidecl.h"' >>init.c-tmp
- 	@echo 'extern void initialize_tui_files PARAMS ((void));' >>init.c-tmp
- 	@echo 'void initialize_tui_files PARAMS ((void)) {' >>init.c-tmp
- 	@-( cd $(srcdir) ; grep '^_initialize_[a-z_0-9A-Z]* *(' $(SOURCES) ) 2>/dev/null \
- 	| sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/  {extern void \1 PARAMS ((void)); \1 ();}/' >>init.c-tmp
- 	@echo '}' >>init.c-tmp
- 	@mv init.c-tmp tuiInit.c
- 
- clean mostlyclean:
- 	-rm -f *.o *.a
- 
- distclean maintainer-clean realclean: clean
- 	-rm -f Makefile config.log config.cache
--- 0 ----
From ac131313@cygnus.com Tue May 23 21:39:00 2000
From: Andrew Cagney <ac131313@cygnus.com>
To: GDB Patches <gdb-patches@sourceware.cygnus.com>
Subject: [patch/sim] Enable profiling by default
Date: Tue, 23 May 2000 21:39:00 -0000
Message-id: <392B5CDE.EE84D16C@cygnus.com>
X-SW-Source: 2000-05/msg00360.html
Content-length: 1068

FYI,

I've committed the attatched, it enables the simulator profiling code by
default.  If someone doesn't want profiling support then it can be
compiled out using --disable-sim-profile.

	enjoy,
		Andrew
Tue May 23 21:35:53 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* aclocal.m4 (sim-profile): Enable the profiler by default.

Index: common/aclocal.m4
===================================================================
RCS file: /cvs/src/src/sim/common/aclocal.m4,v
retrieving revision 1.2
diff -p -r1.2 aclocal.m4
*** aclocal.m4	2000/03/30 20:49:27	1.2
--- aclocal.m4	2000/05/23 11:48:19
*************** AC_ARG_ENABLE(sim-profile,
*** 199,205 ****
  esac
  if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
    echo "Setting sim profile = $sim_profile" 6>&1
! fi],[sim_profile=""])dnl
  AC_SUBST(sim_profile)
  
  
--- 199,205 ----
  esac
  if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
    echo "Setting sim profile = $sim_profile" 6>&1
! fi],[sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"])dnl
  AC_SUBST(sim_profile)
  
  
From jtc@redback.com Tue May 23 21:42:00 2000
From: jtc@redback.com (J.T. Conklin)
To: gdb-patches@sourceware.cygnus.com
Subject: FYI: netbsd config cleanup, powerpc gdbserver
Date: Tue, 23 May 2000 21:42:00 -0000
Message-id: <5mr9asblvl.fsf@jtc.redback.com>
X-SW-Source: 2000-05/msg00361.html
Content-length: 956

I have committed the following changes:

2000-05-23  J.T. Conklin  <jtc@redback.com>

        * config/i386/nbsd.mt (TDEPFILES): Move solib.o from here...
        * config/i386/nbsd.mh (NATDEPFILES): ...to here.
        * config/m68k/nbsd.mt (TDEPFILES): Move solib.o from here...
        * config/m68k/nbsd.mh (NATDEPFILES): ...to here.
        * config/ns32k/nbsd.mt (TDEPFILES): Move solib.o from here...
        * config/ns32k/nbsd.mh (NATDEPFILES): ...to here.

        * config/powerpc/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o.
        * configure.tgt (powerpc-*-netbsd*): add gdbserver to configdirs.
        * gdbserver/low-nbsd.c (initialize_arch): Define for PPC.
        (fetch_inferior_registers): Likewise.
        (store_inferior_registers): Likewise.

        * gdbserver/low-nbsd.c (fetch_inferior_registers): Handle X86
        floating point registers.
        (store_inferior_registers): Likewise.

-- 
J.T. Conklin
RedBack Networks
From ac131313@cygnus.com Wed May 24 04:41:00 2000
From: Andrew Cagney <ac131313@cygnus.com>
To: Brian Youmans <3diff@paschal.gnu.ai.mit.edu>
Cc: gdb-patches@sourceware.cygnus.com
Subject: Re: bug report
Date: Wed, 24 May 2000 04:41:00 -0000
Message-id: <392BBFD0.31906521@cygnus.com>
References: <200005230018.UAA29653@paschal.gnu.ai.mit.edu>
X-SW-Source: 2000-05/msg00362.html
Content-length: 541

Brian Youmans wrote:
> 
> et al. has no period after the "et" - "et" is the
> complete Latin word, it is not abbreviated.

FYI, I've committed this. Thanks.

> Karl Berry will be submitting a diff after cleaning up
> some Texinfo problems.  The big one is eliminating
> the duplicate @syncodeindex statements at the beginning
> of gdb.texinfo. Those were preventing the index from printing.
> :-(  Thanks to Karl, our published edition will have one...

Hmm, this probably explains why my ``make gdb.ps'' didn't create an
index :-(

	Andrew
From aoliva@cygnus.com Wed May 24 06:44:00 2000
From: Alexandre Oliva <aoliva@cygnus.com>
To: binutils@sourceware.cygnus.com, gdb-patches@sourceware.cygnus.com
Subject: 64-bit clean-up in mn10300 disassembler
Date: Wed, 24 May 2000 06:44:00 -0000
Message-id: <or8zx083ly.fsf@tamanduatei.dcc.unicamp.br>
X-SW-Source: 2000-05/msg00363.html
Content-length: 16

Ok to install?


      reply	other threads:[~2000-05-23 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-23  6:35 Andrew Cagney
2000-05-23 13:41 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200005232041.QAA29178@indy.delorie.com \
    --to=eliz@delorie.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb-patches@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox