public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Sync config/ from GCC:
@ 2009-08-16 17:28 jkratoch
  0 siblings, 0 replies; only message in thread
From: jkratoch @ 2009-08-16 17:28 UTC (permalink / raw)
  To: archer-commits

The branch, master has been updated
       via  0ad8a5906cd65758e6050bdf59b893a0b1c20bc9 (commit)
       via  c6cbb4c87a8a8903e4f7e2d4d037beae680fe5bc (commit)
       via  99a1bce6066d10c5559be4243c64e886a92687aa (commit)
       via  dd87a5db41262aab0329681424c8d8a1edc6b12d (commit)
       via  11715aed715d97aed37e850e6aed85c041c547b5 (commit)
       via  1b42f8399e862443ca8d7d5d37ecfd66c18a7aeb (commit)
       via  c727449bc8cdba5f6dfcf740e6c11e4cebc179b8 (commit)
       via  e183d2cfa59f743c78af6709f65fd2c12b151ad6 (commit)
       via  caf5aafaa5dde02dedc24b18bf82be878fda61d6 (commit)
       via  f110b5c19bb171d4893376e6e4b731683f2fc31a (commit)
       via  013c637ee0cd488e79d73206a0347df969d2f33a (commit)
       via  a9e8bba767b606fbc72af7fc3dddf01342b70143 (commit)
       via  1269417bec740667b9112ed1077973236f89ac9f (commit)
       via  309a0bf052482b2dfaf80805361e1c50121f3809 (commit)
       via  444b5d7ba1da7e5f8e5855e45cd0f97a27ed6660 (commit)
       via  2d0c1b4a85e6ce82b3346bd055009f2f83fbc5a0 (commit)
      from  ec6ee3bdbdf3dab75cbb2695cf5daf8672d2b97a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 0ad8a5906cd65758e6050bdf59b893a0b1c20bc9
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Aug 16 12:49:48 2009 +0000

    Sync config/ from GCC:
    
    --- config/ChangeLog
    +++ config/ChangeLog
    @@ -19,6 +19,10 @@
     	* tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
     	cross-compiling.
    
    +2009-06-25  Olivier Hainque  <hainque@adacore.com>
    +
    +	* config/mh-ppc-aix (BOOT_ADAFLAGS): Remove -mminimal-toc.
    +
     2009-05-26  Rafael Avila de Espindola  <espindola@google.com>
    
     	* plugins.m4: New.
    @@ -39,6 +43,27 @@
     	"# no Tcl configs found".
     	(SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR.
    
    +2009-04-09  Jakub Jelinek  <jakub@redhat.com>
    +
    +	* lead-dot.m4: Change copyright header to refer to version
    +	3 of the GNU General Public License and to point readers at the
    +	COPYING3 file and the FSF's license web page.
    +	* warnings.m4: Likewise.
    +
    +2009-02-11  Kai Tietz  <kai.tietz@onevision.com>
    +
    +	* mh-cygwin (LDFLAGS): Add linker option to increase stack limit
    +	up to 8MB.
    +
    +2009-01-23  Jie Zhang  <jie.zhang@analog.com>
    +
    +	* tls.m4 (GCC_CHECK_EMUTLS): Define.
    +
    +2008-12-21  Andrew Pinski  <pinskia@gmail.com>
    +
    +	PR target/38300
    +	* unwind_ipinfo.m4: Darwin before 9 does not have _Unwind_GetIPInfo.
    +
     2008-11-21  Kai Tietz  <kai.tietz@onevision.com>
    
     	Fix PR/25502

commit c6cbb4c87a8a8903e4f7e2d4d037beae680fe5bc
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Aug 16 12:06:21 2009 +0000

    Sync include/ChangeLog-9103 from GCC to fix invalid UTF-8.

commit 99a1bce6066d10c5559be4243c64e886a92687aa
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sun Aug 16 00:00:05 2009 +0000

    daily update

commit dd87a5db41262aab0329681424c8d8a1edc6b12d
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sun Aug 16 00:00:03 2009 +0000

    *** empty log message ***

commit 11715aed715d97aed37e850e6aed85c041c547b5
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Aug 15 00:00:33 2009 +0000

    *** empty log message ***

commit 1b42f8399e862443ca8d7d5d37ecfd66c18a7aeb
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sat Aug 15 00:00:08 2009 +0000

    daily update

commit c727449bc8cdba5f6dfcf740e6c11e4cebc179b8
Author: Doug Evans <dje@google.com>
Date:   Fri Aug 14 23:35:32 2009 +0000

    	* symfile.c (find_separate_debug_file): Remove double free of
    	canon_name.

commit e183d2cfa59f743c78af6709f65fd2c12b151ad6
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Aug 14 14:28:12 2009 +0000

    2009-08-14  Pedro Alves  <pedro@codesourcery.com>
    
    	gdb/
    	* top.c (any_thread_of): Delete.
    	(kill_or_detach): Use any_thread_of_process.
    	* top.c (print_inferior_quit_action): New.
    	(quit_confirm): Rewrite to print info about all inferiors.
    	* target.c (dispose_inferior): New.
    	(target_preopen): Use it.
    
    2009-08-14  Pedro Alves  <pedro@codesourcery.com>
    
    	gdb/testsuite/
    	* gdb.threads/killed.exp, gdb.threads/manythreads.exp,
    	gdb.threads/staticthreads.exp: Adjust to "quit" output changes.

commit caf5aafaa5dde02dedc24b18bf82be878fda61d6
Author: DJ Delorie <dj@delorie.com>
Date:   Fri Aug 14 04:24:30 2009 +0000

    * configure.in: Check for sys/select.h, termios.h, sys/socket.h,
    netinet/in.h, and netinet/tcp.h.
    * configure: Regenerate.
    * config.in: Add those headers.
    * main.c: Check for them.
    (setup_tcp_console): Disable if no networking.
    (main): Note missing networking or termios.
    * mem.c: Check for those headers.
    (stdin_ready): Disable if no termios.
    (m32c_sim_restore_console): Disable if no termios.
    (mem_get_byte): Disable console input if no termios.

commit f110b5c19bb171d4893376e6e4b731683f2fc31a
Author: DJ Delorie <dj@delorie.com>
Date:   Fri Aug 14 03:44:21 2009 +0000

    * elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes
    if needed.

commit 013c637ee0cd488e79d73206a0347df969d2f33a
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Aug 14 00:32:31 2009 +0000

    	* ui-file.h (ui_file_xstrdup): Mention that the length argument
    	may be NULL.
    	* ui-file.c (ui_file_xstrdup): Don't dereference LENGTH if it is
    	NULL.
    	* aix-thread.c (aix_thread_extra_thread_info): Pass NULL as length
    	parameter to ui_file_xstrdup.
    	* arm-tdep.c (_initialize_arm_tdep): Ditto.
    	* infrun.c (print_target_wait_results): Ditto.
    	* language.c (add_language): Ditto.
    	* linespec.c (cplusplus_error): Ditto.
    	* remote.c (escape_buffer): Ditto.
    	* typeprint.c (type_to_string): Ditto.
    	* utils.c (error_stream): Ditto.
    	* varobj.c (value_get_print_value): Ditto.
    	* xtensa-tdep.c (xtensa_verify_config): Replace `dummy' local with
    	`length' local.  Pass it to ui_file_xstrdup, and avoid an strlen
    	call.
    	* gdbarch.sh (verify_gdbarch): Ditto.
    	* gdbarch.c: Regenerate.
    	* cli/cli-setshow.c (do_setshow_command): Pass NULL as length
    	parameter to ui_file_xstrdup.
    	* python/python-frame.c (frapy_str): Ditto.
    	* python/python-type.c (typy_str): Use the length local instead of
    	calling strlen.
    	* python/python-value.c (valpy_str): Pass NULL as length parameter
    	to ui_file_xstrdup.

commit a9e8bba767b606fbc72af7fc3dddf01342b70143
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Aug 14 00:00:05 2009 +0000

    daily update

commit 1269417bec740667b9112ed1077973236f89ac9f
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Fri Aug 14 00:00:03 2009 +0000

    *** empty log message ***

commit 309a0bf052482b2dfaf80805361e1c50121f3809
Author: Doug Evans <dje@google.com>
Date:   Thu Aug 13 22:35:29 2009 +0000

    	* utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int
    	instead of unsigned long.

commit 444b5d7ba1da7e5f8e5855e45cd0f97a27ed6660
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Aug 13 18:39:19 2009 +0000

    	* varobj.c (update_dynamic_varobj_children): Don't use
    	value_copy.
    	* value.h: (preserve_one_value): Declare.
    	(value_prepend_to_list, value_remove_from_list): Remove.
    	* value.c (preserve_one_value): No longer static.
    	(preserve_values): Call preserve_python_values.
    	(value_prepend_to_list): Remove.
    	(value_remove_from_list): Remove.
    	* python/python.h (values_in_python): Don't declare.
    	(preserve_python_values): Declare.
    	* python/python-value.c (values_in_python): Change type.  Move
    	lower.  Now static.
    	(struct value_object): Add struct tag.
    	<next, prev>: New fields.
    	(valpy_dealloc): Update.
    	(note_value): New function.
    	(valpy_new): Use value_incref, note_value.
    	(preserve_python_values): New function.
    	(valpy_positive): Don't use value_copy.
    	(value_to_value_object): Use value_incref, note_value.
    	(convert_value_from_python): Update comment.

commit 2d0c1b4a85e6ce82b3346bd055009f2f83fbc5a0
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 13 18:27:56 2009 +0000

    	* remote.c (remote_pid_to_str): If printing a process id and we
    	don't know what the remote pid could be, output "Remote target";
    	otherwise, use normal_pid_to_str.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                               |    5 +
 bfd/elf32-m32c.c                            |   31 +++++-
 bfd/version.h                               |    2 +-
 config/ChangeLog                            |   25 +++++
 config/lead-dot.m4                          |    9 +-
 config/mh-cygwin                            |    3 +
 config/mh-ppc-aix                           |   13 +--
 config/tls.m4                               |   18 +++
 config/unwind_ipinfo.m4                     |    8 ++-
 config/warnings.m4                          |    9 +-
 gdb/ChangeLog                               |   78 ++++++++++++++
 gdb/aix-thread.c                            |    3 +-
 gdb/arm-tdep.c                              |    2 +-
 gdb/cli/cli-setshow.c                       |    3 +-
 gdb/gdbarch.c                               |    6 +-
 gdb/gdbarch.sh                              |    6 +-
 gdb/infrun.c                                |    3 +-
 gdb/language.c                              |    3 +-
 gdb/linespec.c                              |    7 +-
 gdb/python/python-frame.c                   |    3 +-
 gdb/python/python-type.c                    |    4 +-
 gdb/python/python-value.c                   |   82 ++++++++++----
 gdb/python/python.h                         |    4 +-
 gdb/remote.c                                |   46 +++++---
 gdb/symfile.c                               |    1 -
 gdb/target.c                                |   30 +++++-
 gdb/testsuite/ChangeLog                     |    5 +
 gdb/testsuite/gdb.threads/killed.exp        |    2 +-
 gdb/testsuite/gdb.threads/manythreads.exp   |    2 +-
 gdb/testsuite/gdb.threads/staticthreads.exp |    2 +-
 gdb/top.c                                   |  107 +++++++++++--------
 gdb/typeprint.c                             |    3 +-
 gdb/ui-file.c                               |    6 +-
 gdb/ui-file.h                               |    4 +-
 gdb/utils.c                                 |    5 +-
 gdb/value.c                                 |   30 +-----
 gdb/value.h                                 |    7 +-
 gdb/varobj.c                                |   14 +--
 gdb/version.in                              |    2 +-
 gdb/xtensa-tdep.c                           |    6 +-
 include/ChangeLog-9103                      |    2 +-
 sim/m32c/ChangeLog                          |   14 +++
 sim/m32c/config.in                          |   15 +++
 sim/m32c/configure                          |  155 +++++++++++++++++++++++++++
 sim/m32c/configure.in                       |    2 +
 sim/m32c/main.c                             |   29 +++++-
 sim/m32c/mem.c                              |   16 +++
 47 files changed, 631 insertions(+), 201 deletions(-)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fd54cb9..ecca9ca 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-13  DJ Delorie  <dj@redhat.com>
+
+	* elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes
+	if needed.
+
 2009-08-12  Nick Clifton  <nickc@redhat.com>
 
 	* po/fi.po: Updated Finnish translation.
diff --git a/bfd/elf32-m32c.c b/bfd/elf32-m32c.c
index 5f45784..8805d61 100644
--- a/bfd/elf32-m32c.c
+++ b/bfd/elf32-m32c.c
@@ -1951,13 +1951,24 @@ m32c_elf_relax_delete_bytes
 
   for (; isym < isymend; isym++, shndx = (shndx ? shndx + 1 : NULL))
     {
-
+      /* If the symbol is in the range of memory we just moved, we
+	 have to adjust its value.  */
       if ((int) isym->st_shndx == sec_shndx
 	  && isym->st_value > addr
 	  && isym->st_value < toaddr)
 	{
 	  isym->st_value -= count;
 	}
+      /* If the symbol *spans* the bytes we just deleted (i.e. it's
+	 *end* is in the moved bytes but it's *start* isn't), then we
+	 must adjust its size.  */
+      if ((int) isym->st_shndx == sec_shndx
+	    && isym->st_value < addr
+	  && isym->st_value + isym->st_size > addr
+	  && isym->st_value + isym->st_size < toaddr)
+	{
+	  isym->st_size -= count;
+	}
     }
 
   /* Now adjust the global symbols defined in this section.  */
@@ -1972,13 +1983,21 @@ m32c_elf_relax_delete_bytes
       struct elf_link_hash_entry * sym_hash = * sym_hashes;
 
       if (sym_hash &&
-	  (   sym_hash->root.type == bfd_link_hash_defined
+	  (sym_hash->root.type == bfd_link_hash_defined
 	   || sym_hash->root.type == bfd_link_hash_defweak)
-	  && sym_hash->root.u.def.section == sec
-	  && sym_hash->root.u.def.value > addr
-	  && sym_hash->root.u.def.value < toaddr)
+	  && sym_hash->root.u.def.section == sec)
 	{
-	  sym_hash->root.u.def.value -= count;
+	  if (sym_hash->root.u.def.value > addr
+	      && sym_hash->root.u.def.value < toaddr)
+	    {
+	      sym_hash->root.u.def.value -= count;
+	    }
+	  if (sym_hash->root.u.def.value < addr
+	      && sym_hash->root.u.def.value + sym_hash->size > addr
+	      && sym_hash->root.u.def.value + sym_hash->size < toaddr)
+	    {
+	      sym_hash->size -= count;
+	    }
 	}
     }
 
diff --git a/bfd/version.h b/bfd/version.h
index f5c88b4..b19ea97 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20090813
+#define BFD_VERSION_DATE 20090816
 #define BFD_VERSION @bfd_version@
 #define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@
diff --git a/config/ChangeLog b/config/ChangeLog
index 809275e..c9a51dc 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -19,6 +19,10 @@
 	* tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
 	cross-compiling.
 
+2009-06-25  Olivier Hainque  <hainque@adacore.com>
+
+	* config/mh-ppc-aix (BOOT_ADAFLAGS): Remove -mminimal-toc.
+
 2009-05-26  Rafael Avila de Espindola  <espindola@google.com>
 
 	* plugins.m4: New.
@@ -39,6 +43,27 @@
 	"# no Tcl configs found".
 	(SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR.
 
+2009-04-09  Jakub Jelinek  <jakub@redhat.com>
+
+	* lead-dot.m4: Change copyright header to refer to version
+	3 of the GNU General Public License and to point readers at the
+	COPYING3 file and the FSF's license web page.
+	* warnings.m4: Likewise.
+
+2009-02-11  Kai Tietz  <kai.tietz@onevision.com>
+
+	* mh-cygwin (LDFLAGS): Add linker option to increase stack limit
+	up to 8MB.
+
+2009-01-23  Jie Zhang  <jie.zhang@analog.com>
+
+	* tls.m4 (GCC_CHECK_EMUTLS): Define.
+
+2008-12-21  Andrew Pinski  <pinskia@gmail.com>
+
+	PR target/38300
+	* unwind_ipinfo.m4: Darwin before 9 does not have _Unwind_GetIPInfo.
+
 2008-11-21  Kai Tietz  <kai.tietz@onevision.com>
 
 	Fix PR/25502
diff --git a/config/lead-dot.m4 b/config/lead-dot.m4
index e019030..123f541 100644
--- a/config/lead-dot.m4
+++ b/config/lead-dot.m4
@@ -1,9 +1,9 @@
 #                                                          -*- Autoconf -*-
-# Copyright (C) 2003  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2009  Free Software Foundation, Inc.
 
 # 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, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 
 # This program is distributed in the hope that it will be useful,
@@ -12,9 +12,8 @@
 # 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., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program; see the file COPYING3.  If not see
+# <http://www.gnu.org/licenses/>.
 
 # serial 1
 
diff --git a/config/mh-cygwin b/config/mh-cygwin
index 6c3ab80..3a9698b 100644
--- a/config/mh-cygwin
+++ b/config/mh-cygwin
@@ -1,6 +1,9 @@
 EXTRA_TARGET_HOST_ALL_MODULES=maybe-all-libtermcap
 EXTRA_TARGET_HOST_INSTALL_MODULES=maybe-install-libtermcap
 
+# Increase stack limit to same as Linux default.
+LDFLAGS += -Wl,--stack,8388608
+
 all-gdb: maybe-all-libtermcap
 
 install-gdb: maybe-all-libtermcap
diff --git a/config/mh-ppc-aix b/config/mh-ppc-aix
index a56985f..4a97d81 100644
--- a/config/mh-ppc-aix
+++ b/config/mh-ppc-aix
@@ -1,9 +1,8 @@
-
-# Compile Ada files with minimal-toc in addition to the default flags (at
-# least -gnatg is required to compile language defined units).  The primary
-# focus is gnatlib, so that the library does not use nearly the entire TOC of
-# applications until gnatlib is built as a shared library on AIX.  Compiling
-# the compiler with -mminimal-toc does not cause any harm.
-BOOT_ADAFLAGS = -gnatapg -mminimal-toc
+# To prevent the Ada static runtime library from using nearly the entire
+# TOC, we used to compile Ada files with minimal-toc in addition to -gnatg
+# (mandatory to compile language defined units).  This incured a performance
+# penalty and is not required with section anchors enabled by default so we
+# don't do it any more.
+BOOT_ADAFLAGS = -gnatapg
 BOOT_LDFLAGS = -Wl,-bbigtoc
 LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;`
diff --git a/config/tls.m4 b/config/tls.m4
index 79cf382..ef7e6d0 100644
--- a/config/tls.m4
+++ b/config/tls.m4
@@ -104,3 +104,21 @@ AC_DEFUN([GCC_CHECK_CC_TLS], [
     AC_DEFINE(HAVE_CC_TLS, 1,
 	      [Define to 1 if the target assembler supports thread-local storage.])
   fi])
+
+dnl Check whether TLS is emulated.
+AC_DEFUN([GCC_CHECK_EMUTLS], [
+  AC_CACHE_CHECK([whether the thread-local storage support is from emutls],
+  		 gcc_cv_use_emutls, [
+    gcc_cv_use_emutls=no
+    echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
+    if AC_TRY_COMMAND(${CC-cc} -Werror -S -o conftest.s conftest.c 1>&AS_MESSAGE_LOG_FD); then
+      if grep __emutls_get_address conftest.s > /dev/null; then
+	gcc_cv_use_emutls=yes
+      fi
+    fi
+    rm -f conftest.*
+    ])
+  if test "$gcc_cv_use_emutls" = "yes" ; then
+    AC_DEFINE(USE_EMUTLS, 1,
+      	      [Define to 1 if the target use emutls for thread-local storage.])
+  fi])
diff --git a/config/unwind_ipinfo.m4 b/config/unwind_ipinfo.m4
index a1dc635..efc7990 100644
--- a/config/unwind_ipinfo.m4
+++ b/config/unwind_ipinfo.m4
@@ -22,7 +22,13 @@ AC_DEFUN([GCC_CHECK_UNWIND_GETIPINFO], [
       *) have_unwind_getipinfo=yes ;;
     esac
   else
-     have_unwind_getipinfo=yes
+    # Darwin before version 9 does not have _Unwind_GetIPInfo.
+    changequote(,)
+    case ${target} in
+      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
+      *) have_unwind_getipinfo=yes ;;
+    esac
+    changequote([,])
   fi
 
   if test x$have_unwind_getipinfo = xyes; then
diff --git a/config/warnings.m4 b/config/warnings.m4
index d3358b6..3801c85 100644
--- a/config/warnings.m4
+++ b/config/warnings.m4
@@ -1,12 +1,12 @@
 # Autoconf include file defining macros related to compile-time warnings.
 
-# Copyright 2004, 2005, 2007 Free Software Foundation, Inc.
+# Copyright 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
 
 #This file is part of GCC.
 
 #GCC 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, or (at your option) any later
+#Software Foundation; either version 3, or (at your option) any later
 #version.
 
 #GCC is distributed in the hope that it will be useful, but WITHOUT
@@ -15,9 +15,8 @@
 #for more details.
 
 #You should have received a copy of the GNU General Public License
-#along with GCC; see the file COPYING.  If not, write to the Free
-#Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
-#02110-1301, USA.
+#along with GCC; see the file COPYING3.  If not see
+#<http://www.gnu.org/licenses/>.
 
 # ACX_PROG_CC_WARNING_OPTS(WARNINGS, [VARIABLE = WARN_CFLAGS)
 #   Sets @VARIABLE@ to the subset of the given options which the
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7f960f9..4215476 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,81 @@
+2009-08-14  Doug Evans  <dje@google.com>
+
+	* symfile.c (find_separate_debug_file): Remove double free of
+	canon_name.
+
+2009-08-14  Pedro Alves  <pedro@codesourcery.com>
+
+	* top.c (any_thread_of): Delete.
+	(kill_or_detach): Use any_thread_of_process.
+	* top.c (print_inferior_quit_action): New.
+	(quit_confirm): Rewrite to print info about all inferiors.
+	* target.c (dispose_inferior): New.
+	(target_preopen): Use it.
+
+2009-08-14  Pedro Alves  <pedro@codesourcery.com>
+
+	* ui-file.h (ui_file_xstrdup): Mention that the length argument
+	may be NULL.
+	* ui-file.c (ui_file_xstrdup): Don't dereference LENGTH if it is
+	NULL.
+	* aix-thread.c (aix_thread_extra_thread_info): Pass NULL as length
+	parameter to ui_file_xstrdup.
+	* arm-tdep.c (_initialize_arm_tdep): Ditto.
+	* infrun.c (print_target_wait_results): Ditto.
+	* language.c (add_language): Ditto.
+	* linespec.c (cplusplus_error): Ditto.
+	* remote.c (escape_buffer): Ditto.
+	* typeprint.c (type_to_string): Ditto.
+	* utils.c (error_stream): Ditto.
+	* varobj.c (value_get_print_value): Ditto.
+	* xtensa-tdep.c (xtensa_verify_config): Replace `dummy' local with
+	`length' local.  Pass it to ui_file_xstrdup, and avoid an strlen
+	call.
+	* gdbarch.sh (verify_gdbarch): Ditto.
+	* gdbarch.c: Regenerate.
+	* cli/cli-setshow.c (do_setshow_command): Pass NULL as length
+	parameter to ui_file_xstrdup.
+	* python/python-frame.c (frapy_str): Ditto.
+	* python/python-type.c (typy_str): Use the length local instead of
+	calling strlen.
+	* python/python-value.c (valpy_str): Pass NULL as length parameter
+	to ui_file_xstrdup.
+
+2009-08-13  Doug Evans  <dje@google.com>
+
+	* utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int
+	instead of unsigned long.
+
+2009-08-13  Tom Tromey  <tromey@redhat.com>
+
+	* varobj.c (update_dynamic_varobj_children): Don't use
+	value_copy.
+	* value.h: (preserve_one_value): Declare.
+	(value_prepend_to_list, value_remove_from_list): Remove.
+	* value.c (preserve_one_value): No longer static.
+	(preserve_values): Call preserve_python_values.
+	(value_prepend_to_list): Remove.
+	(value_remove_from_list): Remove.
+	* python/python.h (values_in_python): Don't declare.
+	(preserve_python_values): Declare.
+	* python/python-value.c (values_in_python): Change type.  Move
+	lower.  Now static.
+	(struct value_object): Add struct tag.
+	<next, prev>: New fields.
+	(valpy_dealloc): Update.
+	(note_value): New function.
+	(valpy_new): Use value_incref, note_value.
+	(preserve_python_values): New function.
+	(valpy_positive): Don't use value_copy.
+	(value_to_value_object): Use value_incref, note_value.
+	(convert_value_from_python): Update comment.
+
+2009-08-13  Pedro Alves  <pedro@codesourcery.com>
+
+	* remote.c (remote_pid_to_str): If printing a process id and we
+	don't know what the remote pid could be, output "Remote target";
+	otherwise, use normal_pid_to_str.
+
 2009-08-13  Tom Tromey  <tromey@redhat.com>
 
 	* language.h (longest_raw_hex_string): Remove unused declaration.
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 92e434c..f1b34d5 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -1734,7 +1734,6 @@ aix_thread_extra_thread_info (struct thread_info *thread)
   pthdb_suspendstate_t suspendstate;
   pthdb_detachstate_t detachstate;
   int cancelpend;
-  long length;
   static char *ret = NULL;
 
   if (!PD_TID (thread->ptid))
@@ -1775,7 +1774,7 @@ aix_thread_extra_thread_info (struct thread_info *thread)
 
   xfree (ret);			/* Free old buffer.  */
 
-  ret = ui_file_xstrdup (buf, &length);
+  ret = ui_file_xstrdup (buf, NULL);
   ui_file_delete (buf);
 
   return ret;
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 30b1df6..a2523f5 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -6081,7 +6081,7 @@ _initialize_arm_tdep (void)
 		      _("The valid values are:\n"),
 		      regdesc,
 		      _("The default is \"std\"."));
-  helptext = ui_file_xstrdup (stb, &length);
+  helptext = ui_file_xstrdup (stb, NULL);
   ui_file_delete (stb);
 
   add_setshow_enum_cmd("disassembler", no_class,
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c
index 851f042..ab422a4 100644
--- a/gdb/cli/cli-setshow.c
+++ b/gdb/cli/cli-setshow.c
@@ -383,8 +383,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
 	ui_out_field_stream (uiout, "value", stb);
       else
 	{
-	  long length;
-	  char *value = ui_file_xstrdup (stb->stream, &length);
+	  char *value = ui_file_xstrdup (stb->stream, NULL);
 	  make_cleanup (xfree, value);
 	  if (c->show_value_func != NULL)
 	    c->show_value_func (gdb_stdout, from_tty, c, value);
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index db71a5c..a20df00 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -507,7 +507,7 @@ verify_gdbarch (struct gdbarch *gdbarch)
 {
   struct ui_file *log;
   struct cleanup *cleanups;
-  long dummy;
+  long length;
   char *buf;
   log = mem_fileopen ();
   cleanups = make_cleanup_ui_file_delete (log);
@@ -639,9 +639,9 @@ verify_gdbarch (struct gdbarch *gdbarch)
   /* Skip verify of record_special_symbol, has predicate */
   /* Skip verify of has_global_solist, invalid_p == 0 */
   /* Skip verify of has_global_breakpoints, invalid_p == 0 */
-  buf = ui_file_xstrdup (log, &dummy);
+  buf = ui_file_xstrdup (log, &length);
   make_cleanup (xfree, buf);
-  if (strlen (buf) > 0)
+  if (length > 0)
     internal_error (__FILE__, __LINE__,
                     _("verify_gdbarch: the following are invalid ...%s"),
                     buf);
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 51b8004..491efce 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -1417,7 +1417,7 @@ verify_gdbarch (struct gdbarch *gdbarch)
 {
   struct ui_file *log;
   struct cleanup *cleanups;
-  long dummy;
+  long length;
   char *buf;
   log = mem_fileopen ();
   cleanups = make_cleanup_ui_file_delete (log);
@@ -1463,9 +1463,9 @@ do
     fi
 done
 cat <<EOF
-  buf = ui_file_xstrdup (log, &dummy);
+  buf = ui_file_xstrdup (log, &length);
   make_cleanup (xfree, buf);
-  if (strlen (buf) > 0)
+  if (length > 0)
     internal_error (__FILE__, __LINE__,
                     _("verify_gdbarch: the following are invalid ...%s"),
                     buf);
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 0bc9fb3..e3eddce 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1943,7 +1943,6 @@ print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid,
   char *status_string = target_waitstatus_to_string (ws);
   struct ui_file *tmp_stream = mem_fileopen ();
   char *text;
-  long len;
 
   /* The text is split over several lines because it was getting too long.
      Call fprintf_unfiltered (gdb_stdlog) once so that the text is still
@@ -1963,7 +1962,7 @@ print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid,
 		      "infrun:   %s\n",
 		      status_string);
 
-  text = ui_file_xstrdup (tmp_stream, &len);
+  text = ui_file_xstrdup (tmp_stream, NULL);
 
   /* This uses %s in part to handle %'s in the text, but also to avoid
      a gcc error: the format attribute requires a string literal.  */
diff --git a/gdb/language.c b/gdb/language.c
index c1c0bcf..d975f23 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -888,7 +888,6 @@ add_language (const struct language_defn *lang)
 
   int i;
   struct ui_file *tmp_stream;
-  long len;
 
   if (lang->la_magic != LANG_MAGIC)
     {
@@ -945,7 +944,7 @@ local or auto    Automatic setting based on source file\n"));
     }
 
   xfree (language_set_doc);
-  language_set_doc = ui_file_xstrdup (tmp_stream, &len);
+  language_set_doc = ui_file_xstrdup (tmp_stream, NULL);
   ui_file_delete (tmp_stream);
 
   add_setshow_enum_cmd ("language", class_support,
diff --git a/gdb/linespec.c b/gdb/linespec.c
index debe86f..3e943a1 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -150,7 +150,6 @@ static NORETURN void
 cplusplus_error (const char *name, const char *fmt, ...)
 {
   struct ui_file *tmp_stream;
-  long len;
   char *message;
   tmp_stream = mem_fileopen ();
   make_cleanup_ui_file_delete (tmp_stream);
@@ -169,9 +168,9 @@ cplusplus_error (const char *name, const char *fmt, ...)


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-16 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-16 17:28 [SCM] master: Sync config/ from GCC: jkratoch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).