Binutils with MCST patches
Go to file
Andrew Cagney 0d509538cb 2005-05-19 Andrew Cagney <cagney@gnu.org>
* defs.h (extract_signed_integer, extract_unsigned_integer)
	(extract_long_unsigned_integer, extract_typed_address)
	(store_signed_integer, store_unsigned_integer)
	(store_typed_address): Use gdb_byte for byte buffer parameters.
	(push_bytes, push_word): Delete declaration.
	* valops.c (push_bytes, push_word): Delete function.
	* findvar.c (extract_signed_integer, extract_unsigned_integer)
	(extract_typed_address, store_signed_integer)
	(store_unsigned_integer): Update.

Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.185
diff -p -u -r1.185 defs.h
--- defs.h	9 May 2005 17:20:18 -0000	1.185
+++ defs.h	19 May 2005 17:54:12 -0000
@@ -1042,27 +1042,25 @@ enum { MAX_REGISTER_SIZE = 16 };

 /* In findvar.c.  */

-extern LONGEST extract_signed_integer (const void *, int);
+extern LONGEST extract_signed_integer (const gdb_byte *, int);

-extern ULONGEST extract_unsigned_integer (const void *, int);
+extern ULONGEST extract_unsigned_integer (const gdb_byte *, int);

-extern int extract_long_unsigned_integer (const void *, int, LONGEST *);
+extern int extract_long_unsigned_integer (const gdb_byte *, int, LONGEST *);

-extern CORE_ADDR extract_typed_address (const void *buf, struct type *type);
+extern CORE_ADDR extract_typed_address (const gdb_byte *buf,
+					struct type *type);

-extern void store_signed_integer (void *, int, LONGEST);
+extern void store_signed_integer (gdb_byte *, int, LONGEST);

-extern void store_unsigned_integer (void *, int, ULONGEST);
+extern void store_unsigned_integer (gdb_byte *, int, ULONGEST);

-extern void store_typed_address (void *buf, struct type *type, CORE_ADDR addr);
+extern void store_typed_address (gdb_byte *buf, struct type *type,
+				 CORE_ADDR addr);

 
 /* From valops.c */

-extern CORE_ADDR push_bytes (CORE_ADDR, char *, int);
-
-extern CORE_ADDR push_word (CORE_ADDR, ULONGEST);
-
 extern int watchdog;

 /* Hooks for alternate command interfaces.  */
Index: findvar.c
===================================================================
RCS file: /cvs/src/src/gdb/findvar.c,v
retrieving revision 1.91
diff -p -u -r1.91 findvar.c
--- findvar.c	14 May 2005 06:07:41 -0000	1.91
+++ findvar.c	19 May 2005 17:54:12 -0000
@@ -49,7 +49,7 @@ you lose
 #endif

 LONGEST
-extract_signed_integer (const void *addr, int len)
+extract_signed_integer (const gdb_byte *addr, int len)
 {
   LONGEST retval;
   const unsigned char *p;
@@ -83,7 +83,7 @@ That operation is not available on integ
 }

 ULONGEST
-extract_unsigned_integer (const void *addr, int len)
+extract_unsigned_integer (const gdb_byte *addr, int len)
 {
   ULONGEST retval;
   const unsigned char *p;
@@ -117,16 +117,18 @@ That operation is not available on integ
    function returns 1 and sets *PVAL.  Otherwise it returns 0.  */

 int
-extract_long_unsigned_integer (const void *addr, int orig_len, LONGEST *pval)
+extract_long_unsigned_integer (const gdb_byte *addr, int orig_len,
+			       LONGEST *pval)
 {
-  char *p, *first_addr;
+  const gdb_byte *p;
+  const gdb_byte *first_addr;
   int len;

   len = orig_len;
   if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
     {
-      for (p = (char *) addr;
-	   len > (int) sizeof (LONGEST) && p < (char *) addr + orig_len;
+      for (p = addr;
+	   len > (int) sizeof (LONGEST) && p < addr + orig_len;
 	   p++)
 	{
 	  if (*p == 0)
@@ -138,9 +140,9 @@ extract_long_unsigned_integer (const voi
     }
   else
     {
-      first_addr = (char *) addr;
-      for (p = (char *) addr + orig_len - 1;
-	   len > (int) sizeof (LONGEST) && p >= (char *) addr;
+      first_addr = addr;
+      for (p = addr + orig_len - 1;
+	   len > (int) sizeof (LONGEST) && p >= addr;
 	   p--)
 	{
 	  if (*p == 0)
@@ -164,7 +166,7 @@ extract_long_unsigned_integer (const voi
 /* Treat the bytes at BUF as a pointer of type TYPE, and return the
    address it represents.  */
 CORE_ADDR
-extract_typed_address (const void *buf, struct type *type)
+extract_typed_address (const gdb_byte *buf, struct type *type)
 {
   if (TYPE_CODE (type) != TYPE_CODE_PTR
       && TYPE_CODE (type) != TYPE_CODE_REF)
@@ -177,11 +179,11 @@ extract_typed_address (const void *buf,


 void
-store_signed_integer (void *addr, int len, LONGEST val)
+store_signed_integer (gdb_byte *addr, int len, LONGEST val)
 {
-  unsigned char *p;
-  unsigned char *startaddr = (unsigned char *) addr;
-  unsigned char *endaddr = startaddr + len;
+  gdb_byte *p;
+  gdb_byte *startaddr = addr;
+  gdb_byte *endaddr = startaddr + len;

   /* Start at the least significant end of the integer, and work towards
      the most significant.  */
@@ -204,7 +206,7 @@ store_signed_integer (void *addr, int le
 }

 void
-store_unsigned_integer (void *addr, int len, ULONGEST val)
+store_unsigned_integer (gdb_byte *addr, int len, ULONGEST val)
 {
   unsigned char *p;
   unsigned char *startaddr = (unsigned char *) addr;
@@ -233,7 +235,7 @@ store_unsigned_integer (void *addr, int
 /* Store the address ADDR as a pointer of type TYPE at BUF, in target
    form.  */
 void
-store_typed_address (void *buf, struct type *type, CORE_ADDR addr)
+store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr)
 {
   if (TYPE_CODE (type) != TYPE_CODE_PTR
       && TYPE_CODE (type) != TYPE_CODE_REF)
Index: valops.c
===================================================================
RCS file: /cvs/src/src/gdb/valops.c,v
retrieving revision 1.157
diff -p -u -r1.157 valops.c
--- valops.c	9 May 2005 21:20:35 -0000	1.157
+++ valops.c	19 May 2005 17:54:12 -0000
@@ -933,54 +933,6 @@ value_ind (struct value *arg1)
   return 0;			/* For lint -- never reached */
 }
 
-/* Pushing small parts of stack frames.  */
-
-/* Push one word (the size of object that a register holds).  */
-
-CORE_ADDR
-push_word (CORE_ADDR sp, ULONGEST word)
-{
-  int len = DEPRECATED_REGISTER_SIZE;
-  char buffer[MAX_REGISTER_SIZE];
-
-  store_unsigned_integer (buffer, len, word);
-  if (INNER_THAN (1, 2))
-    {
-      /* stack grows downward */
-      sp -= len;
-      write_memory (sp, buffer, len);
-    }
-  else
-    {
-      /* stack grows upward */
-      write_memory (sp, buffer, len);
-      sp += len;
-    }
-
-  return sp;
-}
-
-/* Push LEN bytes with data at BUFFER.  */
-
-CORE_ADDR
-push_bytes (CORE_ADDR sp, char *buffer, int len)
-{
-  if (INNER_THAN (1, 2))
-    {
-      /* stack grows downward */
-      sp -= len;
-      write_memory (sp, buffer, len);
-    }
-  else
-    {
-      /* stack grows upward */
-      write_memory (sp, buffer, len);
-      sp += len;
-    }
-
-  return sp;
-}
-
 /* Create a value for an array by allocating space in the inferior, copying
    the data into that space, and then setting up an array value.
2005-05-19 17:55:53 +00:00
bfd * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and 2005-05-19 08:26:56 +00:00
binutils binutils/ChangeLog 2005-05-18 22:42:09 +00:00
config 2005-05-19 Kelley Cook <kcook@gcc.gnu.org> 2005-05-19 03:50:19 +00:00
contrib New directory. Created to contain a copy of the texi2pod.pl script so that 2002-07-03 11:20:13 +00:00
cpu Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
etc Replace i[3456]86 with i[3-7]86 2003-05-16 16:30:27 +00:00
gas * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL. 2005-05-19 08:27:34 +00:00
gdb 2005-05-19 Andrew Cagney <cagney@gnu.org> 2005-05-19 17:55:53 +00:00
gprof Update the address of the FSF 2005-05-09 06:55:25 +00:00
include * ppc.h (PPC_OPCODE_POWER5): Define. 2005-05-19 06:59:36 +00:00
intl Update the address and telephone number of the FSF organization 2005-05-13 08:04:31 +00:00
ld include/elf: 2005-05-18 05:40:12 +00:00
libiberty merge from gcc 2005-05-16 18:02:47 +00:00
mmalloc gdb/ 2003-08-08 17:30:37 +00:00
opcodes * ppc-dis.c (powerpc_dialect): Handle "-Mpower5". 2005-05-19 07:00:40 +00:00
readline Fix typos in ChangeLog 2005-05-09 21:07:02 +00:00
sim Update copyright years for last commit. 2005-05-18 01:55:46 +00:00
texinfo 2004-02-23 Andrew Cagney <cagney@redhat.com> 2004-02-23 19:37:48 +00:00
.cvsignore Add MMIX support 2001-10-30 15:20:14 +00:00
COPYING 19990502 sourceware import 1999-05-03 07:29:11 +00:00
COPYING.LIB 19990502 sourceware import 1999-05-03 07:29:11 +00:00
COPYING.LIBGLOSS 2002-12-20 Jeff Johnston <jjohnstn@redhat.com> 2002-12-20 21:36:01 +00:00
COPYING.NEWLIB 2004-02-02 Jeff Johnston <jjohnstn@redhat.com> 2004-02-03 00:05:49 +00:00
ChangeLog ./ 2005-05-15 18:19:45 +00:00
MAINTAINERS 2005-02-08 Andrew Cagney <cagney@gnu.org> 2005-02-08 22:37:35 +00:00
Makefile.def 2005-02-28 Paolo Bonzini <bonzini@gnu.org> 2005-03-30 08:39:18 +00:00
Makefile.in 2005-05-04 Paolo Bonzini <bonzini@gnu.org> 2005-05-04 15:42:05 +00:00
Makefile.tpl 2005-05-04 Paolo Bonzini <bonzini@gnu.org> 2005-05-04 15:42:05 +00:00
README 19990502 sourceware import 1999-05-03 07:29:11 +00:00
README-maintainer-mode Update URL 2003-05-30 07:30:26 +00:00
compile 2004-11-15 Kelley Cook <kcook@gcc.gnu.org> 2004-11-16 01:18:39 +00:00
config-ml.in * config-ml.in: Pass FCFLAGS for multilibs, handle GFORTRAN 2004-11-08 15:28:01 +00:00
config.guess 2004-11-15 Kelley Cook <kcook@gcc.gnu.org> 2004-11-16 01:18:39 +00:00
config.sub 2005-04-29 Paolo Bonzini <bonzini@gnu.org> 2005-04-29 14:00:03 +00:00
configure * configure.in: Always pass --target to target configures as 2005-05-05 01:36:32 +00:00
configure.in * configure.in: Always pass --target to target configures as 2005-05-05 01:36:32 +00:00
depcomp Merge from gcc: 2004-09-23 19:54:49 +00:00
djunpack.bat * djunpack.bat: Change the Sed script to replace @V@ in fnchange.lst 2000-05-08 15:13:30 +00:00
gettext.m4 2005-01-31 Andrew Cagney <cagney@gnu.org> 2005-01-31 20:32:45 +00:00
install-sh 2005-01-17 Kelley Cook <kcook@gcc.gnu.org> 2005-01-19 00:34:56 +00:00
libtool.m4 knetbsd/kfreebsd patches from Robert Millan. 2004-07-21 19:21:41 +00:00
ltcf-c.sh 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com> 2004-10-05 13:34:42 +00:00
ltcf-cxx.sh 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com> 2004-10-05 13:34:42 +00:00
ltcf-gcj.sh knetbsd/kfreebsd patches from Robert Millan. 2004-07-21 19:21:41 +00:00
ltconfig 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com> 2004-10-05 13:34:42 +00:00
ltmain.sh PR libgcj/20160 2005-03-01 22:33:54 +00:00
makefile.vms 19990502 sourceware import 1999-05-03 07:29:11 +00:00
missing 2004-09-07 Paolo Bonzini <bonzini@gnu.org> 2004-09-07 08:34:06 +00:00
mkdep * mkdep: New file. 1999-08-08 17:46:02 +00:00
mkinstalldirs PR bootstrap/11932 2004-02-20 02:05:00 +00:00
move-if-change 19990502 sourceware import 1999-05-03 07:29:11 +00:00
setup.com 19990502 sourceware import 1999-05-03 07:29:11 +00:00
src-release Remove config.if. 2004-12-03 10:30:13 +00:00
symlink-tree * config-ml.in, symlink-tree: Add license. 2003-08-14 20:44:13 +00:00
ylwrap ./ 2005-05-15 18:19:45 +00:00

README

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.