OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
19 years ago* configure.host: Add arm*-*-openbsd*.
kettenis [Sun, 22 May 2005 19:11:42 +0000 (19:11 +0000)]
* configure.host: Add arm*-*-openbsd*.
* configure.tgt: Add arm*-*-openbsd*.

19 years ago* configure.host: Add arm*-*-openbsd*.
kettenis [Sun, 22 May 2005 19:11:33 +0000 (19:11 +0000)]
* configure.host: Add arm*-*-openbsd*.
* configure.tgt: Add arm*-*-openbsd*.

19 years ago2005-05-22 Andrew Cagney <cagney@gnu.org>
cagney [Sun, 22 May 2005 14:53:29 +0000 (14:53 +0000)]
2005-05-22  Andrew Cagney  <cagney@gnu.org>

* frame.h (frame_register_unwind, frame_unwind_register)
(get_frame_register, frame_register, put_frame_register)
(get_frame_memory, safe_frame_unwind_memory)
(frame_register_read): Use gdb_byte for byte buffer parameters.
* trad-frame.h (trad_frame_get_register)
(frame_get_prev_register): Ditto.
* frame-unwind.h (frame_prev_register_ftype): Ditto.
* frame.c (frame_pop, frame_register, frame_unwind_register)
(get_frame_register, frame_unwind_register_signed)
(frame_unwind_register_unsigned, frame_unwind_unsigned_register)
(frame_register_read, get_frame_memory): Update.
* trad-frame.c (trad_frame_get_prev_register): Update.
(trad_frame_get_register): Update.
* gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto.
* breakpoint.c (deprecated_read_memory_nobpt): Update.
* corefile.c (read_memory): Update.
* tramp-frame.c (tramp_frame_prev_register): Update.
* valops.c (value_assign): Update.
* sentinel-frame.c (sentinel_frame_prev_register): Update.
* std-regs.c (value_of_builtin_frame_fp_reg)
(value_of_builtin_frame_pc_reg): Update.
* infcmd.c (default_print_registers_info): Update
* dummy-frame.c (dummy_frame_prev_register): Update.
* findvar.c (value_of_register, value_from_register): Update.
* tui/tui-regs.c (tui_register_format, tui_get_register): Update.
* mi/mi-main.c (register_changed_p, get_register): Update.

19 years agoFix typo
nickc [Sun, 22 May 2005 05:55:13 +0000 (05:55 +0000)]
Fix typo

19 years ago* spawn.cc (find_exec): Accept a PATH-like string in place of an environment
cgf [Sun, 22 May 2005 03:54:28 +0000 (03:54 +0000)]
* spawn.cc (find_exec): Accept a PATH-like string in place of an environment
variable.
* dlfcn.cc (get_full_path_of_dll): Search /usr/bin (for windows compatibility)
and /usr/lib (for UNIX compatibility) when looking for shared libraries.
* environ.cc (conv_envvars): Put back LD_LIBRARY_PATH since it is used by
get_full_path_of_dll().
* errno.cc (errmap): Map MOD_NOT_FOUND to ENOENT.
* cygmagic: Remove debugging cruft.

19 years ago * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
danglin [Sun, 22 May 2005 01:40:25 +0000 (01:40 +0000)]
* config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
only if an instruction match is found.

19 years agodaily update
amodra [Sun, 22 May 2005 00:00:04 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Sun, 22 May 2005 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
hjl [Sat, 21 May 2005 23:43:58 +0000 (23:43 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Revert the last 2 changes.
(info-recursive): Depend on ld.1.
* Makefile.in: Regenerated.

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
hjl [Sat, 21 May 2005 22:22:19 +0000 (22:22 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Depend on "info" instead of
"configdoc.texi ldver.texi".
* Makefile.in: Regenerated.

19 years ago2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
hjl [Sat, 21 May 2005 21:31:13 +0000 (21:31 +0000)]
2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ld.1): Depend on "info".
* Makefile.in: Regenerated.

19 years agodaily update
amodra [Sat, 21 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Sat, 21 May 2005 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
drow [Fri, 20 May 2005 22:02:05 +0000 (22:02 +0000)]
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
copy relocations for VxWorks.

19 years agobfd/
drow [Fri, 20 May 2005 21:57:08 +0000 (21:57 +0000)]
bfd/
* bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
has_sda_refs.
(ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
(ppc_elf_check_relocs): Set has_sda_refs.
(ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
copy relocations.  Use has_sda_refs to place variables in .sbss.
(ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
.sbss.
ld/testsuite/
* ld-powerpc/sdalib.s, ld-powerpc/sdadyn.s, ld-powerpc/sdadyn.d: New
files.
* ld-powerpc/powerpc.exp: Run the new test.

19 years ago * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
bwilson [Fri, 20 May 2005 19:53:15 +0000 (19:53 +0000)]
* elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
xtensa_default_isa is initialized.

19 years ago * ld-undefined/undefined.exp: Revert xfail for xtensa-*-*.
bwilson [Fri, 20 May 2005 19:09:52 +0000 (19:09 +0000)]
* ld-undefined/undefined.exp: Revert xfail for xtensa-*-*.

19 years ago * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
bwilson [Fri, 20 May 2005 19:01:52 +0000 (19:01 +0000)]
* config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
to addition in argument to xtensa_dwarf2_emit_insn.

19 years ago * configure.ac: Fix bad description of _MSE_INT_H that caused each
eliz [Fri, 20 May 2005 18:17:47 +0000 (18:17 +0000)]
* configure.ac: Fix bad description of _MSE_INT_H that caused each
word in config.in to be enclosed in [].
* config.in: Regenerate.

19 years ago*** empty log message ***
eliz [Fri, 20 May 2005 18:07:12 +0000 (18:07 +0000)]
*** empty log message ***

19 years ago * configure, config.in: Regenerate.
eliz [Fri, 20 May 2005 18:06:36 +0000 (18:06 +0000)]
* configure, config.in: Regenerate.

19 years ago* cygcheck.cc (load_cygwin): Remove debugging statement.
cgf [Fri, 20 May 2005 16:50:39 +0000 (16:50 +0000)]
* cygcheck.cc (load_cygwin): Remove debugging statement.

19 years ago* cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not set.
cgf [Fri, 20 May 2005 16:38:41 +0000 (16:38 +0000)]
* cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not set.
(nuke): Fix off by one error in allocation of environment variable.
(load_cygwin): Always set PATH even if cygwin environment is empty.

19 years ago * arm/elf-redboot.ld, iq2000/sim.ld, m68hc11/sim-valid-m68hc11.ld,
corinna [Fri, 20 May 2005 15:45:42 +0000 (15:45 +0000)]
* arm/elf-redboot.ld, iq2000/sim.ld, m68hc11/sim-valid-m68hc11.ld,
* m68hc11/sim-valid-m68hc12.ld, mcore/elf-cmb.ld, mips/cfe.ld,
* mips/ddb-kseg0.ld, mips/ddb.ld, mips/dve.ld, mips/idt.ld,
* mips/idt32.ld, mips/idt64.ld, mips/jmr3904app-java.ld,
* mips/jmr3904app.ld, mips/jmr3904dram-java.ld, mips/jmr3904dram.ld,
* mips/nullmon.ld, mips/pmon.ld, mn10200/eval.ld, mn10200/sim.ld,
* mn10300/asb2303.ld, mn10300/asb2305.ld, mn10300/eval.ld,
* mn10300/sim.ld, rs6000/ads.ld, rs6000/mbx.ld, rs6000/yellowknife.ld,
* sh/sh1lcevb.ld, sh/sh2lcevb.ld, sh/sh3bb.ld, sh/sh3lcevb.ld,
* sparc/elfsim.ld, sparc/ex930.ld, sparc/ex931.ld, sparc/ex934.ld,
* sparc/sparc86x.ld, xstormy16/eva_app.ld, xstormy16/eva_stub.ld,
* xstormy16/sim_high.ld, xstormy16/sim_rom.ld: Add .debug_ranges
section.

19 years ago*** empty log message ***
eliz [Fri, 20 May 2005 14:59:59 +0000 (14:59 +0000)]
*** empty log message ***

19 years ago * gdb.texinfo (Numbers): Explain the example and make the wording
eliz [Fri, 20 May 2005 14:58:38 +0000 (14:58 +0000)]
* gdb.texinfo (Numbers): Explain the example and make the wording
more acurate.

19 years ago * configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS.
eliz [Fri, 20 May 2005 11:32:50 +0000 (11:32 +0000)]
* configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS.

19 years ago2005-05-20 Paolo Bonzini <bonzini@gnu.org>
bonzini [Fri, 20 May 2005 07:16:11 +0000 (07:16 +0000)]
2005-05-20  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def (configure-gcc): Depend on binutils having been built.
(all-gcc): No need to do it here.
* Makefile.in: Regenerate.

19 years ago2005-05-20 Paolo Bonzini <bonzini@gnu.org>
bonzini [Fri, 20 May 2005 07:16:02 +0000 (07:16 +0000)]
2005-05-20  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def (configure-gcc): Depend on binutils having been built.
(all-gcc): No need to do it here.
* Makefile.in: Regenerate.

19 years ago * alpha-tdep.c (fp_register_zero_p): New function.
brobecke [Fri, 20 May 2005 06:56:00 +0000 (06:56 +0000)]
    * alpha-tdep.c (fp_register_zero_p): New function.
        (fp_register_sign_bit): New function.
        (alpha_next_pc): Add support for floating-point control instructions.

19 years ago * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
amodra [Fri, 20 May 2005 02:37:19 +0000 (02:37 +0000)]
* elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
for second and subsequent list entries.  Only allocate multiple
glink stubs when shared or pie.
(ppc_elf_finish_dynamic_symbol): Break out early when only one
glink stub is needed.

19 years ago*** empty log message ***
gdbadmin [Fri, 20 May 2005 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Fri, 20 May 2005 00:00:07 +0000 (00:00 +0000)]
daily update

19 years ago * bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
zack [Thu, 19 May 2005 23:49:37 +0000 (23:49 +0000)]
* bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
* gas/Makefile.am: Have 'all' depend on 'info'.
* ld/Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
* bfd/Makefile.in, binutils/Makefile.in, gas/Makefile.in
* ld/Makefile.in: Regenerate.

19 years ago * crt1.c (_gnu_exception_handler): Handle illegal instruction
dannysmith [Thu, 19 May 2005 22:44:12 +0000 (22:44 +0000)]
* crt1.c (_gnu_exception_handler): Handle illegal instruction
OS exception as a signal if user has defined a SIGILL handler.

19 years ago * include/cygwin/in.h: Add comment.
corinna [Thu, 19 May 2005 21:22:34 +0000 (21:22 +0000)]
* include/cygwin/in.h: Add comment.

19 years ago * include/cygwin/in.h: Define IPPROTO_xxx values as macros to
corinna [Thu, 19 May 2005 21:18:15 +0000 (21:18 +0000)]
* include/cygwin/in.h: Define IPPROTO_xxx values as macros to
accomodate SUSv3.

19 years agofix comment
cgf [Thu, 19 May 2005 20:37:51 +0000 (20:37 +0000)]
fix comment

19 years agofix comment
cgf [Thu, 19 May 2005 20:34:42 +0000 (20:34 +0000)]
fix comment

19 years ago2005-05-19 Paul Brook <paul@codesourcery.com>
pbrook [Thu, 19 May 2005 20:25:21 +0000 (20:25 +0000)]
2005-05-19  Paul Brook  <paul@codesourcery.com>

* configure.in: Rewrite misleading error message when requested
language cannot be built.
* configure: Regenerate.

19 years ago* include/limits.h: Include features.h, as on linux.
cgf [Thu, 19 May 2005 19:45:27 +0000 (19:45 +0000)]
* include/limits.h: Include features.h, as on linux.

19 years ago* include/endian.h: New file.
cgf [Thu, 19 May 2005 19:44:25 +0000 (19:44 +0000)]
* include/endian.h: New file.

19 years ago2005-05-19 Andrew Cagney <cagney@gnu.org>
cagney [Thu, 19 May 2005 17:55:53 +0000 (17:55 +0000)]
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);

 \f
 /* 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 */
 }
 \f
-/* 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.

19 years ago2005-05-19 Andrew Cagney <cagney@gnu.org>
cagney [Thu, 19 May 2005 17:55:44 +0000 (17:55 +0000)]
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);

 \f
 /* 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 */
 }
 \f
-/* 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.

19 years ago * cygwin.sc: Add Dwarf-2 debug sections.
corinna [Thu, 19 May 2005 17:04:28 +0000 (17:04 +0000)]
* cygwin.sc: Add Dwarf-2 debug sections.

19 years ago2005-05-19 Andrew Cagney <cagney@gnu.org>
cagney [Thu, 19 May 2005 16:37:04 +0000 (16:37 +0000)]
2005-05-19  Andrew Cagney  <cagney@gnu.org>

* regcache.h (regcache_raw_read, regcache_raw_write)
(regcache_raw_read_part, regcache_raw_write_part)
(regcache_cooked_read_part, regcache_cooked_write_part)
(regcache_cooked_read, regcache_cooked_write)
(regcache_raw_supply, regcache_raw_collect)
(regcache_cooked_read_ftype, regcache_save, regcache_restore)
(deprecated_read_register_gen, deprecated_write_register_gen)
(deprecated_read_register_bytes, deprecated_write_register_bytes)
(deprecated_grub_regcache_for_registers): Use gdb_byte for byte
buffer parameters.
* ia64-tdep.c (ia64_extract_return_value): Update.
* frame.c (do_frame_register_read): Update.
* regcache.c (deprecated_grub_regcache_for_registers)
(struct regcache, regcache_save, regcache_restore, regcache_cpy)
(do_cooked_read, regcache_xmalloc, register_buffer)
(deprecated_read_register_bytes, regcache_raw_read)
(regcache_raw_read_signed, regcache_raw_read_unsigned)
(deprecated_read_register_gen, regcache_cooked_read)
(regcache_cooked_read_signed, regcache_cooked_read_unsigned)
(deprecated_write_register_gen, regcache_cooked_write)
(deprecated_write_register_bytes, regcache_raw_read_part)
(regcache_raw_write_part, regcache_cooked_read_part)
(regcache_cooked_write_part, read_register, regcache_raw_supply):

19 years ago * mmap.cc (mmap64): Make granularity an automatic variable.
corinna [Thu, 19 May 2005 08:43:11 +0000 (08:43 +0000)]
* mmap.cc (mmap64): Make granularity an automatic variable.

19 years ago * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
amodra [Thu, 19 May 2005 08:27:29 +0000 (08:27 +0000)]
* config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.

19 years ago * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
amodra [Thu, 19 May 2005 08:26:45 +0000 (08:26 +0000)]
* elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
init_offset.  Add init_got_refcount, init_plt_refcount,
init_got_offset and init_plt_offset.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
(_bfd_elf_link_hash_hide_symbol): Likewise.
(_bfd_elf_link_hash_table_init): Likewise.
* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
(bfd_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
(LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
(ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
(struct plt_entry): New.
(ppc_elf_link_hash_table_create): Set new init_plt fields.
(ppc_elf_copy_indirect_symbol): Handle merge of plt plist.  Don't
use _bfd_elf_link_hash_copy_indirect.
(update_plt_info, find_plt_ent): New functions.
(ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
and adjust for use of plt list rather than refcount.
(ppc_elf_gc_sweep_hook): Likewise.
(ppc_elf_tls_optimize): Likewise.
(ppc_elf_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.  Adjust R_PPC_PLTREL24 addends
when performing a relocatable link.
(ppc_elf_finish_dynamic_symbol): Likewise.  Write .glink stubs here..
(ppc_elf_finish_dynamic_sections): ..rather than here.  Use new
pic resolver stub.

19 years ago * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
amodra [Thu, 19 May 2005 07:02:11 +0000 (07:02 +0000)]
* config/tc-ppc.c (parse_cpu): Handle "-mpower5".
(md_show_usage): Document it.
(ppc_setup_opcodes): Insert POWER5 mnemonics.
* doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".

19 years ago * ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
amodra [Thu, 19 May 2005 07:00:38 +0000 (07:00 +0000)]
* ppc-dis.c (powerpc_dialect): Handle "-Mpower5".
(print_ppc_disassembler_options): Document it.
* ppc-opc.c (SCV_LEV): Define.
(LEV): Allow optional operand.
(POWER5): Define.
(powerpc_opcodes): Extend "sc".  Adjust "svc" and "svcl".  Add
"hrfid", "popcntb", "fsqrtes", "fsqrtes.", "fre" and "fre.".

19 years ago * ppc.h (PPC_OPCODE_POWER5): Define.
amodra [Thu, 19 May 2005 06:59:36 +0000 (06:59 +0000)]
* ppc.h (PPC_OPCODE_POWER5): Define.

19 years ago * elf.c (assign_file_positions_for_segments): Use maximum of
amodra [Thu, 19 May 2005 06:50:57 +0000 (06:50 +0000)]
* elf.c (assign_file_positions_for_segments): Use maximum of
maxpagesize and section alignment when adjusting initial
segment offset and section offsets.

19 years agogas/
jbeulich [Thu, 19 May 2005 06:31:57 +0000 (06:31 +0000)]
gas/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
relocations in unwind section.

gas/testsuite/
2005-05-19  Jan Beulich  <jbeulich@novell.com>

* gas/ia64/reloc-uw.s: New.
* gas/ia64/reloc-uw.d: New.
* gas/ia64/reloc-uw-ilp32.d: New.
* gas/ia64/ia64.exp: Run new test.

19 years ago* fhandler.h (fhandler_cygdrive::seekdir): Delete declaration.
cgf [Thu, 19 May 2005 05:43:51 +0000 (05:43 +0000)]
* fhandler.h (fhandler_cygdrive::seekdir): Delete declaration.
(fhandler_cygdrive::seekdir): Delete.
* fhandler.h (fhandler_cygdrive::iscygdrive_root): Delete method.
(fhandler_cygdrive::telldir): Delete declaration.
* fhandler_disk_file.cc: Remove all uses of fhandler_cygdrive::iscygdrive_root.
(fhandler_disk_file::mkdir): New method.
(fhandler_disk_file::rmdir): Ditto.
(fhandler_cygdrive::telldir): Delete.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
kcook [Thu, 19 May 2005 03:50:19 +0000 (03:50 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* accross.m4: Delete file.

19 years ago2005-05-19 Kelley Cook <kcook@gcc.gnu.org>
kcook [Thu, 19 May 2005 03:18:03 +0000 (03:18 +0000)]
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in:  Regenerate.

19 years ago* external.cc: Move pids declaration to file scope and use less enthusiastic
cgf [Thu, 19 May 2005 01:25:14 +0000 (01:25 +0000)]
* external.cc: Move pids declaration to file scope and use less enthusiastic
constructor.
* pinfo.h (winpids::winpids): Remove default setting.
* fhandler_fifo.cc (fhandler_fifo::open_not_mine): Accommodate removal of
default setting.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.

19 years ago*** empty log message ***
gdbadmin [Thu, 19 May 2005 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Thu, 19 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago* cygtls.h (_local_storage::unknown_thread_name): New buffer.
cgf [Wed, 18 May 2005 23:30:00 +0000 (23:30 +0000)]
* cygtls.h (_local_storage::unknown_thread_name): New buffer.
* tlsoffsets.h: Regenerate.
* cygthread.cc (cygthread::name): Use new thread-local buffer.
* exceptions.cc (handle_exceptions): Avoid unnecessary initialization of static
variables to zero.
* fork.cc (slow_pid_reuse) Ditto.

19 years agobinutils/ChangeLog
bje [Wed, 18 May 2005 22:42:07 +0000 (22:42 +0000)]
binutils/ChangeLog
* readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
value of DW_ATE_GNU_decimal_float.

include/elf/ChangeLog
* dwarf2.h (enum dwarf_type): Assign DW_ATE_GNU_decimal_float from
the user-defined encoding space pending inclusion in the standard.

19 years ago2005-05-18 Dave Brolley <brolley@redhat.com>
brolley [Wed, 18 May 2005 21:52:57 +0000 (21:52 +0000)]
2005-05-18  Dave Brolley  <brolley@redhat.com>

        * utils-sim.scm (-gen-decode-default-entry): New function.
        (-gen-decode-insn-entry): Now takes 'invalid-insn' argument. Generate
        code to check that all opcodes bits match.
        (-gen-decoder-switch): Use -gen-decode-default-entry.

19 years ago * mmap.cc (mmap64): Avoid compiler warning.
corinna [Wed, 18 May 2005 17:23:16 +0000 (17:23 +0000)]
* mmap.cc (mmap64): Avoid compiler warning.
* ntea.cc (NTReadEA): Ditto.
* hires.h (hires_base): Remove useless usecs function.

19 years ago * bfd/elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
zack [Wed, 18 May 2005 16:48:09 +0000 (16:48 +0000)]
* bfd/elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
unconditional.
* include/elf/arm.h: Make all #ifndef OLD_ARM_ABI blocks
unconditional, delete all #ifdef OLD_ARM_ABI blocks.

19 years ago2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 18 May 2005 13:41:59 +0000 (13:41 +0000)]
2005-05-18  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (group_signature): Check if the symbol table section is
correct.

19 years ago2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 18 May 2005 13:41:49 +0000 (13:41 +0000)]
2005-05-18  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (group_signature): Check if the symbol table section is
correct.

19 years ago2005-05-18 Brian Dessent <brian@dessent.net>
briand [Wed, 18 May 2005 11:56:27 +0000 (11:56 +0000)]
2005-05-18  Brian Dessent  <brian@dessent.net>

* install.texinfo ("How do I uninstall..."): Rewrite to cover
removing services, dealing with permissions, and other common
tasks for removing Cygwin completely.

19 years ago * fhandler_netdrive.cc (fhandler_netdrive::telldir): Remove since it's
corinna [Wed, 18 May 2005 10:32:35 +0000 (10:32 +0000)]
* fhandler_netdrive.cc (fhandler_netdrive::telldir): Remove since it's
equivalent to fhandler_virtual::telldir now anyway.
* fhandler.h (class fhandler_netdrive): Remove telldir.

19 years ago * fhandler_netdrive.cc (fhandler_netdrive::telldir): Implement.
corinna [Wed, 18 May 2005 10:23:37 +0000 (10:23 +0000)]
* fhandler_netdrive.cc (fhandler_netdrive::telldir): Implement.
(fhandler_netdrive::seekdir): Implement.
(fhandler_netdrive::closedir): Call rewinddir to have only one point
of calling WNetCloseEnum.

19 years ago(md_apply_fix3): Only use the insertion routine if one exists.
nickc [Wed, 18 May 2005 09:42:12 +0000 (09:42 +0000)]
(md_apply_fix3): Only use the insertion routine if one exists.
Ignore any error messages it may produce, just allow it to perform the insertion.

19 years ago * MAINTAINERS: Undelete v850.
corinna [Wed, 18 May 2005 08:52:16 +0000 (08:52 +0000)]
* MAINTAINERS: Undelete v850.
* Makefile.in: Re-add v850-tdep.o dependencies.
* configure.tgt: Re-add v850.
* v850-tdep.c: Reorder code slightly.  Add register number enumerator.
(struct v850_frame_cache): New structure.
(v850_processor_type_table): Remove. Move functionality into
v850_register_name, v850e_register_name and v850_gdbarch_init.
(v850_register_name): New function.
(v850e_register_name): New function.
(struct prologue_info): Remove definition.
(v850_register_type): New function.
(v850_type_is_scalar): New function.
(v850_use_struct_convention): Align to gcc behaviour.
(v850_handle_prepare): Renamed from handle_prepare. Change third
parameter to struct v850_frame_cache *.
(v850_handle_pushm): Renamed from handle_pushm. Change third parameter
to struct v850_frame_cache *.
(v850_is_save_register): New function to evaluate if a register is
caller-save.
(v850_analyze_prologue): Replace v850_scan_prologue.  Change to support
new frame code.
(v850_init_extra_frame_info): Remove.
(v850_frame_chain): Remove.
(v850_find_callers_reg): Remove.
(v850_skip_prologue): Make static.
(v850_pop_frame): Remove.
(v850_frame_align): New function.
(v850_push_dummy_call): Replace v850_push_arguments.
(v850_push_return_address): Remove.
(v850_extract_return_value): New function.
(v850_store_return_value): New function.
(v850_return_value): New function.
(v850_frame_saved_pc): Remove.
(v850_breakpoint_from_pc): New function.
(v850_alloc_frame_cache): New function.
(v850_fix_call_dummy): Remove.
(v850_frame_cache): New function.
(v850_target_architecture_hook): Remove.
(v850_frame_prev_register): New function.
(v850_frame_this_id): New function.
(v850_frame_unwind): New structure.
(v850_frame_sniffer): New function.
(v850_unwind_sp): New function.
(v850_unwind_pc): New function.
(v850_unwind_dummy_id): New function.
(v850_frame_base_address): New function.
(v850_frame_base): New structure.
(v850_gdbarch_init): New function.
* config/v850/v850.mt: Undelete.  Drop TM_FILE.

19 years ago * MAINTAINERS: Undelete v850.
corinna [Wed, 18 May 2005 08:52:01 +0000 (08:52 +0000)]
* MAINTAINERS: Undelete v850.
* Makefile.in: Re-add v850-tdep.o dependencies.
* configure.tgt: Re-add v850.
* v850-tdep.c: Reorder code slightly.  Add register number enumerator.
(struct v850_frame_cache): New structure.
(v850_processor_type_table): Remove. Move functionality into
v850_register_name, v850e_register_name and v850_gdbarch_init.
(v850_register_name): New function.
(v850e_register_name): New function.
(struct prologue_info): Remove definition.
(v850_register_type): New function.
(v850_type_is_scalar): New function.
(v850_use_struct_convention): Align to gcc behaviour.
(v850_handle_prepare): Renamed from handle_prepare. Change third
parameter to struct v850_frame_cache *.
(v850_handle_pushm): Renamed from handle_pushm. Change third parameter
to struct v850_frame_cache *.
(v850_is_save_register): New function to evaluate if a register is
caller-save.
(v850_analyze_prologue): Replace v850_scan_prologue.  Change to support
new frame code.
(v850_init_extra_frame_info): Remove.
(v850_frame_chain): Remove.
(v850_find_callers_reg): Remove.
(v850_skip_prologue): Make static.
(v850_pop_frame): Remove.
(v850_frame_align): New function.
(v850_push_dummy_call): Replace v850_push_arguments.
(v850_push_return_address): Remove.
(v850_extract_return_value): New function.
(v850_store_return_value): New function.
(v850_return_value): New function.
(v850_frame_saved_pc): Remove.
(v850_breakpoint_from_pc): New function.
(v850_alloc_frame_cache): New function.
(v850_fix_call_dummy): Remove.
(v850_frame_cache): New function.
(v850_target_architecture_hook): Remove.
(v850_frame_prev_register): New function.
(v850_frame_this_id): New function.
(v850_frame_unwind): New structure.
(v850_frame_sniffer): New function.
(v850_unwind_sp): New function.
(v850_unwind_pc): New function.
(v850_unwind_dummy_id): New function.
(v850_frame_base_address): New function.
(v850_frame_base): New structure.
(v850_gdbarch_init): New function.
* config/v850/v850.mt: Undelete.  Drop TM_FILE.

19 years agogas/testsuite/
jbeulich [Wed, 18 May 2005 06:12:06 +0000 (06:12 +0000)]
gas/testsuite/
2005-05-18  Jan Beulich  <jbeulich@novell.com>

* gas/all/altmacro.s: Parenthesize operand of %.

19 years agoinclude/elf:
zack [Wed, 18 May 2005 05:40:04 +0000 (05:40 +0000)]
include/elf:
* arm.h: Import complete list of official relocation names
and numbers from AAELF.  Define FAKE_RELOCs for old names.
Remove a few old names no longer used anywhere.

bfd:
* elf32-arm.c: Wherever possible, use official reloc names
from AAELF.
(elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
(elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
(elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
(elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
(elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
(elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
Add many new relocations from AAELF.
(elf32_arm_howto_from_type): Update to match.
(elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
(elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
(elf32_arm_final_link_relocate): Add support for
R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6.  Remove
case entries redundant with default.

* reloc.c: Reorganize ARM relocations.  Add Thumb
assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
* bfd-in2.h, libbfd.h: Regenerate.

opcodes:
* arm-dis.c (thumb_opcodes): Add disassembly for V6T2 16-bit
instructions.  Adjust disassembly of some opcodes to match
unified syntax.
(thumb32_opcodes): New table.
(print_insn_thumb): Rename print_insn_thumb16; don't handle
two-halfword branches here.
(print_insn_thumb32): New function.
(print_insn): Choose among print_insn_arm, print_insn_thumb16,
and print_insn_thumb32.  Be consistent about order of
halfwords when printing 32-bit instructions.

gas:
* hash.c (hash_lookup): Add len parameter.  All callers changed.
(hash_find_n): New interface.
* hash.h: Prototype hash_find_n.
* sb.c: Include as.h.
(scrub_from_sb, sb_to_scrub, scrub_position): New statics.
(sb_scrub_and_add_sb): New interface.
* sb.h: Prototype sb_scrub_and_add_sb.
* input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.

* config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
reference to BFD_RELOC_ARM_GOT12 which is never generated.
* config/tc-arm.c: Rewrite, adding Thumb-2 support.

gas/testsuite:
* gas/arm/arm.exp: Convert all existing "gas_test" tests to
"run_dump_test" tests.  Run more tests unconditionally.  Run new tests.
* gas/arm/arch4t.s, gas/arm/arch6zk.s, gas/arm/arm3.s, gas/arm/arm6.s
* gas/arm/arm7dm.s, gas/arm/bignum1.s, gas/arm/float.s
* gas/arm/immed.s, gas/arm/iwmmxt.s, gas/arm/offset.s, gas/arm/thumb.s:
Adjust to work as a dump test.
* gas/arm/arch4t.d, gas/arm/arch6zk.d, gas/arm/arm3.d, gas/arm/arm6.d
* gas/arm/arm7dm.d, gas/arm/bignum1.d, gas/arm/float.d
* gas/arm/immed.d, gas/arm/iwmmxt.d, gas/arm/offset.d, gas/arm/thumb.d:
New files.

* gas/arm/armv1-bad.l, gas/arm/armv1-bad.s: Remove tests for
diagnostics that don't happen in the first pass anymore.

* gas/arm/iwmmxt-bad.l, gas/arm/r15-bad.l, gas/arm/req.l
* gas/arm/vfp-bad.l:
Update expected diagnostics.
* gas/arm/pic.d: Update expected reloc name.
* gas/arm/thumbv6.d: CPY no longer appears in disassembly.
* gas/arm/r15-bad.s: Avoid two-argument mul.
* gas/arm/req.s: Adjust comments.
* gas/arm/maverick.d, gas/arm/maverick.s: Avoid inappropriate
use of PC.

* gas/arm/macro-1.d, gas/arm/macro1.s
* gas/arm/t16-bad.l, gas/arm/t16-bad.s
* gas/arm/tcompat.d, gas/arm/tcompat.s
* gas/arm/tcompat2.d, gas/arm/tcompat2.s
* gas/arm/thumb32.d, gas/arm/thumb32.s
New test pair.

ld/testsuite:
* ld-arm/mixed-app.d: Adjust expected disassembly a little.

19 years ago2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
drow [Wed, 18 May 2005 03:41:55 +0000 (03:41 +0000)]
2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
    Dennis Brueni  <dennis@slickedit.com>

gdb/
* stack.c (print_frame): In MI mode, output a fullname attribute
with the stack frame.
gdb/doc/
* gdb.texinfo (GDB/MI Breakpoint Table Commands)
(GDB/MI Data Manipulation, GDB/MI Program Control)
(GDB/MI Stack Manipulation): Update examples to include the fullname
attribute in stack frames.
gdb/testsuite/
* gdb.mi/mi-cli.exp, gdb.mi/mi-return.exp, gdb.mi/mi-stack.exp,
gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp,
gdb.mi/mi-var-display.exp, gdb.mi/mi-watch.exp, gdb.mi/mi2-cli.exp,
gdb.mi/mi2-return.exp, gdb.mi/mi2-stack.exp,
gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp,
gdb.mi/mi2-var-display.exp: Expect fullname field in stack frames.
* lib/mi-support.exp (mi_runto, mi_execute_to_helper): Likewise.

19 years agoUpdate copyright years for last commit.
drow [Wed, 18 May 2005 01:55:46 +0000 (01:55 +0000)]
Update copyright years for last commit.

19 years ago * Make-common.in (install-common, installdirs): Honor $DESTDIR.
drow [Wed, 18 May 2005 01:54:38 +0000 (01:54 +0000)]
* Make-common.in (install-common, installdirs): Honor $DESTDIR.

19 years ago * gdb.base/shreloc.exp: Use gdb_compile_shlib. Add support for
drow [Wed, 18 May 2005 01:38:45 +0000 (01:38 +0000)]
* gdb.base/shreloc.exp: Use gdb_compile_shlib.  Add support for
IBM's xlc compiler.
* gdb.base/shreloc1.c (fn_1): Reference variable static_var_1.
* gdb.base/shreloc2.c (fn_2): Reference variable static_var_2.

19 years ago2005-05-17 Brian Dessent <brian@dessent.net>
briand [Wed, 18 May 2005 01:10:03 +0000 (01:10 +0000)]
2005-05-17  Brian Dessent  <brian@dessent.net>

* winsup.api/signal-into-win32-api.c (main): Use 'NULL' instead of '0'
in argument list to avoid compiler warning with gcc4.
* winsup.api/ltp/execle01.c (main): Ditto.
* winsup.api/ltp/execlp01.c (main): Ditto.
* winsup.api/ltp/fcntl07.c (do_exec): Ditto.
* winsup.api/ltp/fcntl07B.c (do_exec): Ditto.

19 years agodaily update
amodra [Wed, 18 May 2005 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago*** empty log message ***
gdbadmin [Wed, 18 May 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago * fhandler.h (class fhandler_netdrive): Add method rewinddir.
corinna [Tue, 17 May 2005 20:34:13 +0000 (20:34 +0000)]
* fhandler.h (class fhandler_netdrive): Add method rewinddir.
* fhandler_netdrive.cc (struct netdriveinf): New structure to
store thread arguments.
(thread_netdrive): Thread handling all potentially blocking
WNet... calls.
(create_thread_and_wait): Start and wait for above thread.
(fhandler_netdrive::exists): Change to call create_thread_and_wait
instead of calling WNet... function.
(fhandler_netdrive::readdir): Ditto.  Fix error handling.
(fhandler_netdrive::rewinddir): New method.

19 years ago * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
drow [Tue, 17 May 2005 19:44:49 +0000 (19:44 +0000)]
* elf.c (_bfd_elf_write_object_contents): Check for non-NULL
elf_shstrtab.
* format.c (bfd_check_format_matches): Set output_has_begun
for both_direction.
* section.c (bfd_set_section_contents): Use bfd_write_p.  Remove
special case for both_direction.

19 years agobinutils/
drow [Tue, 17 May 2005 19:43:37 +0000 (19:43 +0000)]
binutils/
* doc/Makefile.am (config.texi): Don't use $<.
* doc/Makefile.in: Regenerated.
ld/
* Makefile.am (ldver.texi): Don't use $<.
* Makefile.in: Regenerated.
gas/
* doc/Makefile.am (gasver.texi): Don't use $<.
* doc/Makefile.in: Regenerated.

19 years ago * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
drow [Tue, 17 May 2005 19:41:27 +0000 (19:41 +0000)]
* Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
$(srcdir) before $(BFDDIR)/doc.
* Makefile.in: Regenerated.

19 years ago(group_signature): Check for a group section which is actually a (corrupt)
nickc [Tue, 17 May 2005 18:08:07 +0000 (18:08 +0000)]
(group_signature): Check for a group section which is actually a (corrupt)
symbol table section in disguise and prevent an infinite loop from occurring.

19 years ago2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
hjl [Tue, 17 May 2005 17:26:27 +0000 (17:26 +0000)]
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
2005-02-16.

19 years ago2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
hjl [Tue, 17 May 2005 17:26:18 +0000 (17:26 +0000)]
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
2005-02-16.

19 years ago2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
hjl [Tue, 17 May 2005 17:23:32 +0000 (17:23 +0000)]
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

* elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
predicate on slot 0 only if slot 0 isn't br.

19 years agobfd/
hjl [Tue, 17 May 2005 16:42:46 +0000 (16:42 +0000)]
bfd/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

PR 797
* elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
empty sdynbss section.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.

ld/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

PR 797
* ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
take take a bfd_boolean, mark_used. Ignore assert failure if
mark_used is TRUE.
(exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
(exp_fold_tree_no_dot): Updated to take a bfd_boolean,
mark_used and pass down.
(fold_unary): Likewise.
(fold_binary): Likewise.
(fold_trinary): Likewise.
(exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
(exp_trinop): Likewise.
(exp_unop): Likewise.
(exp_nameop): Likewise.
(exp_get_vma): Likewise.
(exp_get_fill): Likewise.
(exp_get_abs_int): Likewise.
(fold_name): Likewise. Set SEC_KEEP in output section flags.
(exp_mark_used_section): New.

* ldexp.h (exp_mark_used_section): New.

* ldlang.c (lang_output_section_statement_lookup_1): Set the
ignored field to FALSE.
(lang_mark_used_section_1): New.
(lang_mark_used_section): Call lang_mark_used_section_1.
(strip_excluded_output_sections): Call lang_mark_used_section
and check for unused sections.
(lang_size_sections_1): Skip an output section if it should
be ignored.
(lang_do_assignments_1): Likewise.
(lang_process): Don't call lang_mark_used_section here.

* ldlang.h (lang_output_section_statement_type): Change
all_input_readonly to bitfield. Add ignored.

ld/testsuite/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

PR 797
* empty-aligned.d: New file.
* empty-aligned.exp: Likewise.
* empty-aligned.s: Likewise.
* empty-aligned.t: Likewise.

19 years agobfd/
hjl [Tue, 17 May 2005 16:42:42 +0000 (16:42 +0000)]
bfd/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

PR 797
* elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
empty sdynbss section.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.

ld/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

PR 797
* ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
take take a bfd_boolean, mark_used. Ignore assert failure if
mark_used is TRUE.
(exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
(exp_fold_tree_no_dot): Updated to take a bfd_boolean,
mark_used and pass down.
(fold_unary): Likewise.
(fold_binary): Likewise.
(fold_trinary): Likewise.
(exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
(exp_trinop): Likewise.
(exp_unop): Likewise.
(exp_nameop): Likewise.
(exp_get_vma): Likewise.
(exp_get_fill): Likewise.
(exp_get_abs_int): Likewise.
(fold_name): Likewise. Set SEC_KEEP in output section flags.
(exp_mark_used_section): New.

* ldexp.h (exp_mark_used_section): New.

* ldlang.c (lang_output_section_statement_lookup_1): Set the
ignored field to FALSE.
(lang_mark_used_section_1): New.
(lang_mark_used_section): Call lang_mark_used_section_1.
(strip_excluded_output_sections): Call lang_mark_used_section
and check for unused sections.
(lang_size_sections_1): Skip an output section if it should
be ignored.
(lang_do_assignments_1): Likewise.
(lang_process): Don't call lang_mark_used_section here.

* ldlang.h (lang_output_section_statement_type): Change
all_input_readonly to bitfield. Add ignored.

ld/testsuite/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

PR 797
* empty-aligned.d: New file.
* empty-aligned.exp: Likewise.
* empty-aligned.s: Likewise.
* empty-aligned.t: Likewise.

19 years ago(bfd_section_from_shdr): Add sanity check when parsing dynamic sections.
nickc [Tue, 17 May 2005 16:23:20 +0000 (16:23 +0000)]
(bfd_section_from_shdr): Add sanity check when parsing dynamic sections.

19 years agoIgnore CRs
nickc [Tue, 17 May 2005 16:08:53 +0000 (16:08 +0000)]
Ignore CRs

19 years agoAdfd entry for patch to symbols.c that was accidentally omitted.
nickc [Tue, 17 May 2005 15:59:38 +0000 (15:59 +0000)]
Adfd entry for patch to symbols.c that was accidentally omitted.

19 years ago(GENERATE_PIE_SCRIPT): Define as "yes".
nickc [Tue, 17 May 2005 15:16:51 +0000 (15:16 +0000)]
(GENERATE_PIE_SCRIPT): Define as "yes".

19 years agoldlang.c (print_assignment): Do not rely upon a valid result having a section
nickc [Tue, 17 May 2005 14:39:08 +0000 (14:39 +0000)]
ldlang.c (print_assignment): Do not rely upon a valid result having a section
  associated with it.
elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle the situation
  where a symbols's section is not known but a section relative R_ARM_RELATIVE
  reloc has to be generated for the Symbian OS.

19 years agoldlang.c (print_assignment): Do not rely upon a valid result having a section
nickc [Tue, 17 May 2005 14:39:01 +0000 (14:39 +0000)]
ldlang.c (print_assignment): Do not rely upon a valid result having a section
  associated with it.
elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle the situation
  where a symbols's section is not known but a section relative R_ARM_RELATIVE
  reloc has to be generated for the Symbian OS.

19 years ago* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
nickc [Tue, 17 May 2005 14:35:20 +0000 (14:35 +0000)]
* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
see if the same value is being used on the rhs as on the lhs.
(print_assignment): Call scan_for_self_assignment and if it
returns true, do no display the result of the computation but
instead just the final value of the symbol on the lhs.
* ld.texinfo: Document this behaviour and provide an example of
when it will happen.

19 years ago * configure.ac: Add igen to v850 build.
corinna [Tue, 17 May 2005 14:11:23 +0000 (14:11 +0000)]
* configure.ac: Add igen to v850 build.
* configure: Regenerate.