public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-05 18:35 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-05 18:35 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  110ae17b1e9a3803811ad5c97955d4348565a1fe (commit)
       via  da44d15c57a7a10dd54b4440635a7f5cda6943c8 (commit)
       via  6cff2a168b1d623a98224acab97b26d7452b20e9 (commit)
       via  f1a415a89d1094828b7ced032443eb39b06a3b8d (commit)
       via  927b5a006e14502927fb67d7f4141462649b31ca (commit)
       via  b4f63a2cb0931ab3a5148b078d73eb5b12869b45 (commit)
       via  e1529c0d555cabbc469d98684fcdda83938258a3 (commit)
       via  ff6623237cb959ad350cc24918ebe466fa760418 (commit)
       via  914154c96229ca494cd8fe8f02690306aae3a8e0 (commit)
       via  4d3778d202bbeff0811e415ae06d4af3492d3ab4 (commit)
       via  156ec04c92e224ffb710e9195cbd96ad020521a9 (commit)
       via  27c28fe1d48497a00fd8d0b55d2551180a90d252 (commit)
       via  9059d37e18a4e1d9b10acb977998ffd35e90913f (commit)
       via  a79ab0d640b54e10e2ea9d7e570a8aade84882c1 (commit)
       via  f6882df63f26847961d6bfd5b1ea152450e09342 (commit)
       via  2fa2f74066a3855b779e05069ced92d51cc2bfd9 (commit)
       via  a03b2a19f7404deddc24e11ae7719852d3732d9d (commit)
       via  71bc2b40408f0e64af29e6e5e5cc3864005072af (commit)
       via  16c3d856ccd841733a12f0b03bb8986647f4b8d3 (commit)
       via  16cdaf6b29a89dc13fd92c6aca6ad965f8e46cf0 (commit)
       via  6d622d1440380dfb3e3532cf8808a284ca3da045 (commit)
       via  0bb06c58fcb183269acd83d0990ff4098af8cbec (commit)
       via  02c07dfcef2d2ec5764f5983854feeff2ea2823d (commit)
       via  803cf548486ab0fb592e67c98dad739bfef11c01 (commit)
       via  beb222f49131cfba7fbc54d7383d1a90e81d42d7 (commit)
       via  5886f28ed05f4cafcca634f8e2d699ecb53700c2 (commit)
       via  a8bd82d58ec5b90a545413893d6b88cc4a464265 (commit)
      from  d79b077ec588f6e87cff07aa0002b22e5e8c9161 (commit)

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

- Log -----------------------------------------------------------------
commit 110ae17b1e9a3803811ad5c97955d4348565a1fe
Merge: 927b5a0 da44d15
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:35:17 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit da44d15c57a7a10dd54b4440635a7f5cda6943c8
Merge: b4f63a2 6cff2a1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:35:17 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 6cff2a168b1d623a98224acab97b26d7452b20e9
Merge: 914154c f1a415a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:35:16 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit f1a415a89d1094828b7ced032443eb39b06a3b8d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:35:14 2012 +0200

    .

commit 927b5a006e14502927fb67d7f4141462649b31ca
Merge: e1529c0 b4f63a2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:33:35 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit b4f63a2cb0931ab3a5148b078d73eb5b12869b45
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:33:16 2012 +0200

    .

commit e1529c0d555cabbc469d98684fcdda83938258a3
Merge: f6882df ff66232
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:40 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit ff6623237cb959ad350cc24918ebe466fa760418
Merge: 2fa2f74 914154c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:40 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 914154c96229ca494cd8fe8f02690306aae3a8e0
Merge: a03b2a1 4d3778d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:39 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 4d3778d202bbeff0811e415ae06d4af3492d3ab4
Merge: 71bc2b4 156ec04
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:39 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 156ec04c92e224ffb710e9195cbd96ad020521a9
Merge: 16c3d85 27c28fe
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:39 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit 27c28fe1d48497a00fd8d0b55d2551180a90d252
Merge: c33e0d9 9059d37
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:39 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit 9059d37e18a4e1d9b10acb977998ffd35e90913f
Merge: 838c848 a79ab0d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:39 2012 +0200

    Merge branch 'pathvec0' into pathvec0-1

commit a79ab0d640b54e10e2ea9d7e570a8aade84882c1
Merge: 637f93e 0bb06c5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:39 2012 +0200

    Merge remote-tracking branch 'gdb/master' into pathvec0

commit f6882df63f26847961d6bfd5b1ea152450e09342
Merge: 16cdaf6 2fa2f74
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:16 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 2fa2f74066a3855b779e05069ced92d51cc2bfd9
Merge: 6d622d1 a03b2a1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:16 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit a03b2a19f7404deddc24e11ae7719852d3732d9d
Merge: 1f006e4 71bc2b4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:15 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 71bc2b40408f0e64af29e6e5e5cc3864005072af
Merge: dc67b40 16c3d85
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:30:13 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 16c3d856ccd841733a12f0b03bb8986647f4b8d3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 20:29:46 2012 +0200

    .

commit 16cdaf6b29a89dc13fd92c6aca6ad965f8e46cf0
Merge: d79b077 6d622d1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 18:51:42 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 6d622d1440380dfb3e3532cf8808a284ca3da045
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 18:51:38 2012 +0200

    .

commit 0bb06c58fcb183269acd83d0990ff4098af8cbec
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Apr 5 11:20:50 2012 +0000

    2012-04-05  Pedro Alves  <palves@redhat.com>
    
    	-Werror=strict-aliasing
    
    	* spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
    	pointer.

commit 02c07dfcef2d2ec5764f5983854feeff2ea2823d
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Thu Apr 5 00:00:05 2012 +0000

    daily update

commit 803cf548486ab0fb592e67c98dad739bfef11c01
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Thu Apr 5 00:00:02 2012 +0000

    *** empty log message ***

commit beb222f49131cfba7fbc54d7383d1a90e81d42d7
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Apr 4 14:42:15 2012 +0000

    2012-04-04  Pedro Alves  <palves@redhat.com>
    
    	* linux-sparc-low.c (sparc_fill_gregset_to_stack)
    	(sparc_store_gregset_from_stack, sparc_store_gregset)
    	(sparc_breakpoint_at): Fix formatting.

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

Summary of changes:
 bfd/version.h                   |    2 +-
 gdb/doc/gdb.texinfo             |   26 +++++++++++++-------------
 gdb/gdbserver/ChangeLog         |   13 +++++++++++++
 gdb/gdbserver/linux-sparc-low.c |   26 +++++++++++++++-----------
 gdb/gdbserver/spu-low.c         |    6 +++---
 gdb/main.c                      |    4 ++++
 gdb/version.in                  |    2 +-
 7 files changed, 50 insertions(+), 29 deletions(-)

First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index ab9eeed..7ec4f3e 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120403
+#define BFD_VERSION_DATE 20120405
 #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/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 1137665..2959310 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1294,7 +1294,7 @@ init file, one generic in your home directory, and another, specific
 to the program you are debugging, in the directory where you invoke
 @value{GDBN}.
 
-This feature is deprecated, please use @ref{@var{objfile}-gdb.gdb file}
+This feature is deprecated, please use @ref{objfile-gdb.gdb file}
 instead.  The canned sequence of commands will be then specific for loaded
 @var{objfile}---typically the main executable---after converting an init file in
 the current directory into the @var{objfile}-gdb.gdb file..
@@ -20775,9 +20775,9 @@ Yes     /home/user/gdb/gdb-gdb.py
 These are various kinds of files @value{GDBN} can automatically load:
 
 @multitable {@xref{dotdebug_gdb_scripts section}.} {See @ref{set auto-load python-scripts}}
-@item @xref{@var{objfile}-gdb.py file}.
+@item @xref{objfile-gdb.py file}.
 @tab See @ref{set auto-load python-scripts}.
-@item @xref{@var{objfile}-gdb.gdb file}.
+@item @xref{objfile-gdb.gdb file}.
 @tab See @ref{set auto-load gdb-scripts}.
 @item @xref{dotdebug_gdb_scripts section}.
 @tab See @ref{set auto-load python-scripts}.
@@ -20831,7 +20831,7 @@ These are @value{GDBN} control commands for the auto-loading:
 @menu
 * Init File in the Current Directory:: @samp{set/show/info auto-load local-gdbinit}
 * libthread_db.so.1 file::             @samp{set/show/info auto-load libthread-db}
-* @var{objfile}-gdb.gdb file::               @samp{set/show/info auto-load gdb-script}
+* objfile-gdb.gdb file::               @samp{set/show/info auto-load gdb-script}
 * Auto-loading safe path::             @samp{set/show/info auto-load safe-path}
 * Auto-loading verbose mode::          @samp{set/show debug auto-load}
 @xref{Python Auto-loading}.
@@ -20854,7 +20854,7 @@ Enable or disable the auto-loading of canned sequences of commands
 The options @samp{warn-and-X} give warning before loading
 (@samp{warn-and-yes}) or when declining to load (@samp{warn-and-no}) the file
 as the @samp{local-gdbinit} feature is deprecated in favor
-of @xref{@var{objfile}-gdb.gdb file}.
+of @xref{objfile-gdb.gdb file}.
 
 @anchor{show auto-load local-gdbinit}
 @kindex show auto-load local-gdbinit
@@ -20905,7 +20905,7 @@ Print the list of all loaded inferior specific thread debugging libraries and
 for each such library print list of inferior @var{pid}s using it.
 @end table
 
-@node @var{objfile}-gdb.gdb file
+@node objfile-gdb.gdb file
 @subsection The @file{@var{objfile}-gdb.gdb} file
 @cindex auto-loading @file{@var{objfile}-gdb.gdb}
 
@@ -20914,7 +20914,7 @@ canned sequences of commands (@pxref{Sequences}), as long as @samp{set
 auto-load gdb-scripts} is set to @samp{yes}.
 
 For more background refer to the similar Python scripts auto-loading
-description (@pxref{@var{objfile}-gdb.py file}).
+description (@pxref{objfile-gdb.py file}).
 
 @table @code
 @anchor{set auto-load gdb-scripts}
@@ -21030,8 +21030,8 @@ Disable auto-loading globally for the user
 use system init file instead (@pxref{System-wide configuration}).
 @end itemize
 
-This setting applies to the pathnames as entered by user.  If no entry matches
-@value{GDBN} tries as a last resort to also resolve all the pathnames into
+This setting applies to the file names as entered by user.  If no entry matches
+@value{GDBN} tries as a last resort to also resolve all the file names into
 their canonical form (typically resolving symbolic links) and compare the
 entries again.  @value{GDBN} already canonicalizes most of the filenames on its
 own before starting the comparison so a canonical form of directories is
@@ -25097,12 +25097,12 @@ writable.
 
 @node Python Auto-loading
 @subsection Python Auto-loading
-@cindex Python auto-loading, Python
+@cindex Python auto-loading
 
 When a new object file is read (for example, due to the @code{file}
 command, or because the inferior has loaded a shared library),
 @value{GDBN} will look for Python support scripts in several ways:
-@file{@var{objfile}-gdb.py} (@pxref{@var{objfile}-gdb.py file})
+@file{@var{objfile}-gdb.py} (@pxref{objfile-gdb.py file})
 and @code{.debug_gdb_scripts} section
 (@pxref{dotdebug_gdb_scripts section}).
 
@@ -25155,12 +25155,12 @@ function (@pxref{Objfiles In Python}).  This can be useful for
 registering objfile-specific pretty-printers.
 
 @menu
-* @var{objfile}-gdb.py file::          The @file{@var{objfile}-gdb.py} file
+* objfile-gdb.py file::          The @file{@var{objfile}-gdb.py} file
 * dotdebug_gdb_scripts section:: The @code{.debug_gdb_scripts} section
 * Which flavor to choose?::
 @end menu
 
-@node @var{objfile}-gdb.py file
+@node objfile-gdb.py file
 @subsubsection The @file{@var{objfile}-gdb.py} file
 @cindex @file{@var{objfile}-gdb.py}
 
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index cd53c66..25d9cb3 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,16 @@
+2012-04-05  Pedro Alves  <palves@redhat.com>
+
+	-Werror=strict-aliasing
+
+	* spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
+	pointer.
+
+2012-04-04  Pedro Alves  <palves@redhat.com>
+
+	* linux-sparc-low.c (sparc_fill_gregset_to_stack)
+	(sparc_store_gregset_from_stack, sparc_store_gregset)
+	(sparc_breakpoint_at): Fix formatting.
+
 2012-03-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
 
 	* configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
diff --git a/gdb/gdbserver/linux-sparc-low.c b/gdb/gdbserver/linux-sparc-low.c
index 0460587..78d5409 100644
--- a/gdb/gdbserver/linux-sparc-low.c
+++ b/gdb/gdbserver/linux-sparc-low.c
@@ -119,19 +119,21 @@ sparc_fill_gregset_to_stack (struct regcache *regcache, const void *buf)
   int i;
   CORE_ADDR addr = 0;
   unsigned char tmp_reg_buf[8];
-  const int l0_regno = find_regno("l0");
+  const int l0_regno = find_regno ("l0");
   const int i7_regno = l0_regno + 15;
 
   /* These registers have to be stored in the stack.  */
-  memcpy(&addr, ((char *) buf) + sparc_regmap[find_regno("sp")], sizeof(addr));
+  memcpy (&addr,
+	  ((char *) buf) + sparc_regmap[find_regno ("sp")],
+	  sizeof (addr));
 
   addr += BIAS;
 
   for (i = l0_regno; i <= i7_regno; i++)
     {
       collect_register (regcache, i, tmp_reg_buf);
-      (*the_target->write_memory) (addr, tmp_reg_buf, sizeof(tmp_reg_buf));
-      addr += sizeof(tmp_reg_buf);
+      (*the_target->write_memory) (addr, tmp_reg_buf, sizeof (tmp_reg_buf));
+      addr += sizeof (tmp_reg_buf);
     }
 }
 
@@ -169,19 +171,21 @@ sparc_store_gregset_from_stack (struct regcache *regcache, const void *buf)
   int i;
   CORE_ADDR addr = 0;
   unsigned char tmp_reg_buf[8];
-  const int l0_regno = find_regno("l0");
+  const int l0_regno = find_regno ("l0");
   const int i7_regno = l0_regno + 15;
 
   /* These registers have to be obtained from the stack.  */
-  memcpy(&addr, ((char *) buf) + sparc_regmap[find_regno("sp")], sizeof(addr));
+  memcpy (&addr,
+	  ((char *) buf) + sparc_regmap[find_regno ("sp")],
+	  sizeof (addr));
 
   addr += BIAS;
 
   for (i = l0_regno; i <= i7_regno; i++)
     {
-      (*the_target->read_memory) (addr, tmp_reg_buf, sizeof(tmp_reg_buf));
+      (*the_target->read_memory) (addr, tmp_reg_buf, sizeof (tmp_reg_buf));
       supply_register (regcache, i, tmp_reg_buf);
-      addr += sizeof(tmp_reg_buf);
+      addr += sizeof (tmp_reg_buf);
     }
 }
 
@@ -192,7 +196,7 @@ sparc_store_gregset (struct regcache *regcache, const void *buf)
   char zerobuf[8];
   int range;
 
-  memset (zerobuf, 0, sizeof(zerobuf));
+  memset (zerobuf, 0, sizeof (zerobuf));
 
   for (range = 0; range < N_GREGS_RANGES; range++)
     for (i = gregs_ranges[range].regno_start;
@@ -241,9 +245,9 @@ sparc_breakpoint_at (CORE_ADDR where)
 {
   unsigned char insn[INSN_SIZE];
 
-  (*the_target->read_memory) (where, (unsigned char *) insn, sizeof(insn));
+  (*the_target->read_memory) (where, (unsigned char *) insn, sizeof (insn));
 
-  if (memcmp(sparc_breakpoint, insn, sizeof(insn)) == 0)
+  if (memcmp (sparc_breakpoint, insn, sizeof (insn)) == 0)
     return 1;
 
   /* If necessary, recognize more trap instructions here.  GDB only
diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c
index 2a720ae..1ecd60c 100644
--- a/gdb/gdbserver/spu-low.c
+++ b/gdb/gdbserver/spu-low.c
@@ -206,14 +206,14 @@ store_ppc_memory (CORE_ADDR memaddr, char *myaddr, int len)
 static int
 parse_spufs_run (int *fd, CORE_ADDR *addr)
 {
-  char buf[4];
+  unsigned int insn;
   CORE_ADDR pc = fetch_ppc_register (32);  /* nip */
 
   /* Fetch instruction preceding current NIP.  */
-  if (fetch_ppc_memory (pc-4, buf, 4) != 0)
+  if (fetch_ppc_memory (pc-4, (char *) &insn, 4) != 0)
     return 0;
   /* It should be a "sc" instruction.  */
-  if (*(unsigned int *)buf != INSTR_SC)
+  if (insn != INSTR_SC)
     return 0;
   /* System call number should be NR_spu_run.  */
   if (fetch_ppc_register (0) != NR_spu_run)
diff --git a/gdb/main.c b/gdb/main.c
index 1c70229..a6dc2ab 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -974,6 +974,10 @@ captured_main (void *data)
 		  {
 		    struct stat statbuf;
 
+		    /* Ensure memcmp works even with fields padding.
+		       LOCAL_GDBINIT_STAT is already pre-cleared.  */
+		    memset (&statbuf, 0, sizeof (statbuf));
+
 		    if (fstat (fd, &statbuf) == 0
 			&& memcmp (&statbuf, &local_gdbinit_stat,
 				   sizeof (statbuf)) == 0)
diff --git a/gdb/version.in b/gdb/version.in
index 88cc241..233551e 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.4.50.20120403-cvs
+7.4.50.20120405-cvs


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-05 21:35 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-05 21:35 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  77dcb826019c7bd1461a18751ae6574a5880d8d9 (commit)
       via  af3c9923bce403157a641b6bfac8235219fc6b0f (commit)
       via  e3a092c6fa56516723e37755776e78f77f5b5699 (commit)
       via  5b63048e3b60db257b4da588b752a32bd6e0ccbc (commit)
       via  07c9286894d1ab7a74229b4c75112c3dd286fe24 (commit)
      from  2884fa97422df6e212a20600049aafa5d2c44fce (commit)

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

- Log -----------------------------------------------------------------
commit 77dcb826019c7bd1461a18751ae6574a5880d8d9
Merge: 2884fa9 af3c992
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 23:35:13 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit af3c9923bce403157a641b6bfac8235219fc6b0f
Merge: 56ccc93 e3a092c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 23:35:13 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit e3a092c6fa56516723e37755776e78f77f5b5699
Merge: 0781bae 5b63048
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 23:35:12 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 5b63048e3b60db257b4da588b752a32bd6e0ccbc
Merge: e77eb0e 07c9286
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 23:35:12 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 07c9286894d1ab7a74229b4c75112c3dd286fe24
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 23:35:01 2012 +0200

    .

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

Summary of changes:
 gdb/doc/gdb.texinfo |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

First 500 lines of diff:
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 34af8c5..8630e78 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20732,9 +20732,10 @@ $ @kbd{gdb -iex "set auto-load off" untrusted-executable corefile}
 
 Be aware that system init file (@pxref{System-wide configuration})
 and init files from your home directory (@pxref{Home Directory Init File})
-still get read still get read (as they come from generally trusted
-directories).  You could use also the @ref{-nx} option to prevent @value{GDBN}
-from reading any auto-loaded files instead.
+still get read (as they come from generally trusted directories).
+To prevent @value{GDBN} from auto-loading even those init files, use the
+@option{-nx} option (@pxref{Mode Options}), in addition to
+@code{set auto-load no}.
 
 @anchor{show auto-load}
 @kindex show auto-load


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-05 20:55 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-05 20:55 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  2884fa97422df6e212a20600049aafa5d2c44fce (commit)
       via  56ccc939673934166c51511609c423469569f98b (commit)
       via  0781baeb2b9116361ee880c32c8df5fecc145991 (commit)
       via  e77eb0e8c3c9345418c51d8b1f4ac7aabec0b5a2 (commit)
       via  b1ff8e085bc019f7baf267ae6e31cb7957375a9d (commit)
       via  a9bf39b303e4a777fcab2e14f3c8d8924ec5dd9e (commit)
       via  e66584fa39bd0f2bc298d6ffb586ea212aa93765 (commit)
       via  1cf6927fa932c708e3e98cdf4e4aec9bbed6ffa7 (commit)
       via  56f7621909c1248705575c903c4901185c8aa349 (commit)
       via  f535f02ff5da2fd2106314ada112c5252afb5f64 (commit)
       via  b1ffbb32847f7ac37ae3ae63e67fc73d4dcb98fa (commit)
       via  b6cd7d23c61d0ae128f062a9a3805d59b4e6de6c (commit)
       via  7858ec7d59cb5e54745a4dbf2a533d30ccba8e98 (commit)
       via  1a8d461500b062ba185b1bb548d24a0f666ae26b (commit)
       via  bce6bb3911069cb5cf3c1af43e8301980e8f9877 (commit)
       via  1d2d7a0bbdb7cff65dc19285a0d52f04c6b7224f (commit)
       via  4ffac4d4c5fd86244b492b3fe08ff3b8fa5c93df (commit)
       via  c5396af1a8133fc8ea0d067a2243803a8988eb20 (commit)
       via  cd44fce9613686ec4041a89e1638a081b465b159 (commit)
       via  09253d1f17f2ccb48450bbe51f898ba7c2bfce73 (commit)
       via  bf95c3f974bed4fdf06ed7a8ce70a4f88f7f95d7 (commit)
       via  edb062cb924ca8031eac65e27af7acc38f93dfc5 (commit)
       via  6fca6e215aeaee41a56411f67695fa201e3f6232 (commit)
       via  202dc2a265837b7beb22fde70eb981e1a8148df6 (commit)
       via  501a9ff7887f91881f25cc1342a6ce3089fbc034 (commit)
      from  110ae17b1e9a3803811ad5c97955d4348565a1fe (commit)

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

- Log -----------------------------------------------------------------
commit 2884fa97422df6e212a20600049aafa5d2c44fce
Merge: a9bf39b 56ccc93
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:55:45 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 56ccc939673934166c51511609c423469569f98b
Merge: e66584f 0781bae
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:54:21 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 0781baeb2b9116361ee880c32c8df5fecc145991
Merge: 1cf6927 e77eb0e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:53:58 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit e77eb0e8c3c9345418c51d8b1f4ac7aabec0b5a2
Merge: 56f7621 b1ff8e0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:53:32 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit b1ff8e085bc019f7baf267ae6e31cb7957375a9d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:53:28 2012 +0200

    .

commit a9bf39b303e4a777fcab2e14f3c8d8924ec5dd9e
Merge: 1a8d461 e66584f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:33 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit e66584fa39bd0f2bc298d6ffb586ea212aa93765
Merge: 1d2d7a0 1cf6927
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:33 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 1cf6927fa932c708e3e98cdf4e4aec9bbed6ffa7
Merge: cd44fce 56f7621
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:33 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 56f7621909c1248705575c903c4901185c8aa349
Merge: 09253d1 f535f02
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:33 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit f535f02ff5da2fd2106314ada112c5252afb5f64
Merge: 6fca6e2 b1ffbb3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:32 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit b1ffbb32847f7ac37ae3ae63e67fc73d4dcb98fa
Merge: 27c28fe b6cd7d2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:32 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit b6cd7d23c61d0ae128f062a9a3805d59b4e6de6c
Merge: 9059d37 7858ec7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:32 2012 +0200

    Merge branch 'pathvec0' into pathvec0-1

commit 7858ec7d59cb5e54745a4dbf2a533d30ccba8e98
Merge: a79ab0d 501a9ff
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 22:33:32 2012 +0200

    Merge remote-tracking branch 'gdb/master' into pathvec0

commit 1a8d461500b062ba185b1bb548d24a0f666ae26b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:17:58 2012 +0200

    .

commit bce6bb3911069cb5cf3c1af43e8301980e8f9877
Merge: 4ffac4d 1d2d7a0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:17:51 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 1d2d7a0bbdb7cff65dc19285a0d52f04c6b7224f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:15:48 2012 +0200

    .

commit 4ffac4d4c5fd86244b492b3fe08ff3b8fa5c93df
Merge: 110ae17 c5396af
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:14:59 2012 +0200

    .

commit c5396af1a8133fc8ea0d067a2243803a8988eb20
Merge: bf95c3f cd44fce
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:13:32 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit cd44fce9613686ec4041a89e1638a081b465b159
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:13:01 2012 +0200

    .

commit 09253d1f17f2ccb48450bbe51f898ba7c2bfce73
Merge: f1a415a 6fca6e2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:12:30 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit bf95c3f974bed4fdf06ed7a8ce70a4f88f7f95d7
Merge: 202dc2a edb062c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:12:30 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit edb062cb924ca8031eac65e27af7acc38f93dfc5
Merge: 6cff2a1 09253d1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:12:30 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 6fca6e215aeaee41a56411f67695fa201e3f6232
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:12:23 2012 +0200

    .

commit 202dc2a265837b7beb22fde70eb981e1a8148df6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Apr 5 21:10:41 2012 +0200

    .

commit 501a9ff7887f91881f25cc1342a6ce3089fbc034
Author: Keith Seitz <keiths@redhat.com>
Date:   Thu Apr 5 18:50:24 2012 +0000

    linespec rewrite:
    	* linespec.c (decode_compound): Remove.
    	(enum offset_relative_sign): New enum.
    	(struct line_offset): New struct.
    	(struct linespec): New struct.
    	(struct linespec_state): Move file_symtabs,
    	user_filename, and user_function into struct linespec.
    	Make result an anonymous struct holding vectors of
    	symbolp and minsym_and_objfile_d.
    	Add language member.
    	(enum ls_token_type): New enum.
    	(linespec_keywords): New array.
    	(struct ls_token): New struct.
    	(struct ls_parser): New struct.
    	(linespec_lexer_lex_number): New function.
    	(linespec_lexer_lex_keyword): New function.
    	(is_ada_operator): New function.
    	(skip_quote_char): New function.
    	(copy_token_string): New function.
    	(is_closing_quote_enclosed): New function.
    	(find_parameter_list_end): New function.
    	(linespec_lexer_lex_string): New function.
    	(linespec_lexer_lex_one): New function.
    	(linespec_lexer_consume_token): New function.
    	(linespec_lexer_peek_token): New function.
    	(cplusplus_error): Remove unused function.
    	(find_methods): Update comment.
    	(find_toplevel_char): Return const.
    	(is_objc_method_format): Remove unused function.
    	(find_toplevel_string): New function.
    	(is_linespec_boundary): Remove.
    	(symbol_not_found_error): New function.
    	(find_method_overload_end): Remove function.
    	(unexpected_linespec_error): New function.
    	(keep_name_info): Remove.
    	(linespec_parse_line_offset): New function.
    	(linespec_parse_basic): New function.
    	(canonicalize_linespec): New function.
    	(decode_line_internal): Remove.
    	(create_sals_line_offset): New function adapted from
    	decode_all_digits.
    	(convert_linespec_to_sals): New function.
    	(parse_linespec): New function.
    	(linespec_parser_new): New function.
    	(linespec_state_destructor): Change parameter type to
    	struct linespec_state *.
    	Add language parameter.
    	Remove freeing of moved members.
    	(linespec_parser_delete): New function.
    	(decode_line_full): Use parse_linespec and linespec_parser_new.
    	(decode_line_1): Likewise.
    	(decode_indirect): Rename to ...
    	(linespec_expression_to_pc): ... this and rewrite
    	to simply find CORE_ADDR, storing this result for later
    	conversion to SALs.
    	(locate_first_half): Remove.
    	(deocde_objc): Add parameter LS.
    	Initialize new struct collect_info members.
    	Handle minimal symbols, too.
    	(decode_compound): Delete.
    	(lookup_prefix_sym): Rewrite.
    	(compare_msymbols): New function.
    	(find_method): Rewrite.
    	Do not call cplusplus_error.
    	(symtabs_from_filename): Rewrite.
    	(collect_function_symbols): Delete.
    	(find_function_symbols): Rewrite without ARGPTR-style
    	processing.
    	(decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
    	(decode_dollar): Adapted and renamed to ...
    	(linespec_parse_variable): ... this.
    	(find_linespec_symbols): New function.
    	(decode_label): Adapted and renamed to ...
    	(find_label_symbols): ... this.
    	(decode_digits_list_mode): Add and use LS argument.
    	(decode_digits_ordinary): Likewise.
    	(collect_symbols): Do not collect SALs, just symbols and msymbols.
    	If in list mode, allow any symbol class.  Otherwise, only
    	permit LOC_BLOCK symbols.
    	(minsym_found): Update comments.
    	(search_minsyms_for_name): Do not convert the matching symbol
    	into a SAL.  Simply push the symbol and objfile into the
    	result vector.
    	(decode_variable): Delete. Contents adapted into
    	find_linespec_symbols.
    
    	* cp-support.c (SKIP_SPACE): Remove.
    	(operator_tokens): Remove unused global.
    	(cp_validate_operator): Remove.
    	* cp-support.h (cp_validate_operator): Remove declaration.
    
    	* gdb.base/advance.exp: Update error message for
    	"advance malformed" test.
    	* gdb.base/break.exp: Likewise for "breakpoint with
    	trailing garbage" test.
    	* gdb.base/hbreak2.exp: Likewise for "hardware breakpoint
    	with trailing garbage" test.
    	* gdb.base/jump.exp: Likewise for "jump with trailing
    	argument junk" test.
    	* gdb.base/sepdebug.exp: Likewise for "breakpoint with
    	trailng garbage" test.
    	* gdb.base/until.exp: Likewise for "malformed until" test.
    	* gdb.cp/ovldbreak.exp: Create the breakpoint table
    	for "breakpoint info (after setting on all)".
    	* gdb.cp/userdef.exp: Remove quoting for "break A2::operator+"
    	tests.
    	* gdb.cp/cplabel.cc: New file.
    	* gdb.cp/cplabel.exp: New test.
    	* gdb.linespec/ls-errs.c: New file.
    	* gdb.linespec/ls-errs.exp: New test.

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

Summary of changes:
 gdb/ChangeLog                          |   92 +
 gdb/NEWS                               |    7 +-
 gdb/auto-load.c                        |   69 +-
 gdb/auto-load.h                        |    7 +-
 gdb/cp-support.c                       |  117 -
 gdb/cp-support.h                       |    2 -
 gdb/doc/gdb.texinfo                    |   74 +-
 gdb/linespec.c                         | 3657 +++++++++++++++++---------------
 gdb/main.c                             |   17 +-
 gdb/testsuite/ChangeLog                |   20 +
 gdb/testsuite/gdb.base/advance.exp     |    3 +-
 gdb/testsuite/gdb.base/break.exp       |    2 +-
 gdb/testsuite/gdb.base/hbreak2.exp     |    2 +-
 gdb/testsuite/gdb.base/jump.exp        |    2 +-
 gdb/testsuite/gdb.base/sepdebug.exp    |    2 +-
 gdb/testsuite/gdb.base/until.exp       |    3 +-
 gdb/testsuite/gdb.cp/cplabel.cc        |   80 +
 gdb/testsuite/gdb.cp/cplabel.exp       |   40 +
 gdb/testsuite/gdb.cp/ovldbreak.exp     |   26 +-
 gdb/testsuite/gdb.cp/userdef.exp       |    4 +-
 gdb/testsuite/gdb.linespec/ls-errs.c   |   29 +
 gdb/testsuite/gdb.linespec/ls-errs.exp |  189 ++
 22 files changed, 2567 insertions(+), 1877 deletions(-)
 create mode 100644 gdb/testsuite/gdb.cp/cplabel.cc
 create mode 100644 gdb/testsuite/gdb.cp/cplabel.exp
 create mode 100644 gdb/testsuite/gdb.linespec/ls-errs.c
 create mode 100644 gdb/testsuite/gdb.linespec/ls-errs.exp

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bdfd9b7..4900388 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,95 @@
+2012-04-05  Keith Seitz  <keiths@redhat.com>
+
+	* linespec.c (decode_compound): Remove.
+	(enum offset_relative_sign): New enum.
+	(struct line_offset): New struct.
+	(struct linespec): New struct.
+	(struct linespec_state): Move file_symtabs,
+	user_filename, and user_function into struct linespec.
+	Make result an anonymous struct holding vectors of
+	symbolp and minsym_and_objfile_d.
+	Add language member.
+	(enum ls_token_type): New enum.
+	(linespec_keywords): New array.
+	(struct ls_token): New struct.
+	(struct ls_parser): New struct.
+	(linespec_lexer_lex_number): New function.
+	(linespec_lexer_lex_keyword): New function.
+	(is_ada_operator): New function.
+	(skip_quote_char): New function.
+	(copy_token_string): New function.
+	(is_closing_quote_enclosed): New function.
+	(find_parameter_list_end): New function.
+	(linespec_lexer_lex_string): New function.
+	(linespec_lexer_lex_one): New function.
+	(linespec_lexer_consume_token): New function.
+	(linespec_lexer_peek_token): New function.
+	(cplusplus_error): Remove unused function.
+	(find_methods): Update comment.
+	(find_toplevel_char): Return const.
+	(is_objc_method_format): Remove unused function.
+	(find_toplevel_string): New function.
+	(is_linespec_boundary): Remove.
+	(symbol_not_found_error): New function.
+	(find_method_overload_end): Remove function.
+	(unexpected_linespec_error): New function.
+	(keep_name_info): Remove.
+	(linespec_parse_line_offset): New function.
+	(linespec_parse_basic): New function.
+	(canonicalize_linespec): New function.
+	(decode_line_internal): Remove.
+	(create_sals_line_offset): New function adapted from
+	decode_all_digits.
+	(convert_linespec_to_sals): New function.
+	(parse_linespec): New function.
+	(linespec_parser_new): New function.
+	(linespec_state_destructor): Change parameter type to
+	struct linespec_state *.
+	Add language parameter.
+	Remove freeing of moved members.
+	(linespec_parser_delete): New function.
+	(decode_line_full): Use parse_linespec and linespec_parser_new.
+	(decode_line_1): Likewise.
+	(decode_indirect): Rename to ...
+	(linespec_expression_to_pc): ... this and rewrite
+	to simply find CORE_ADDR, storing this result for later
+	conversion to SALs.
+	(locate_first_half): Remove.
+	(deocde_objc): Add parameter LS.
+	Initialize new struct collect_info members.
+	Handle minimal symbols, too.
+	(decode_compound): Delete.
+	(lookup_prefix_sym): Rewrite.
+	(compare_msymbols): New function.
+	(find_method): Rewrite.
+	Do not call cplusplus_error.
+	(symtabs_from_filename): Rewrite.
+	(collect_function_symbols): Delete.
+	(find_function_symbols): Rewrite without ARGPTR-style
+	processing.
+	(decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
+	(decode_dollar): Adapted and renamed to ...
+	(linespec_parse_variable): ... this.
+	(find_linespec_symbols): New function.
+	(decode_label): Adapted and renamed to ...
+	(find_label_symbols): ... this.
+	(decode_digits_list_mode): Add and use LS argument.
+	(decode_digits_ordinary): Likewise.
+	(collect_symbols): Do not collect SALs, just symbols and msymbols.
+	If in list mode, allow any symbol class.  Otherwise, only
+	permit LOC_BLOCK symbols.
+	(minsym_found): Update comments.
+	(search_minsyms_for_name): Do not convert the matching symbol
+	into a SAL.  Simply push the symbol and objfile into the
+	result vector.
+	(decode_variable): Delete. Contents adapted into
+	find_linespec_symbols.
+
+	* cp-support.c (SKIP_SPACE): Remove.
+	(operator_tokens): Remove unused global.
+	(cp_validate_operator): Remove.
+	* cp-support.h (cp_validate_operator): Remove declaration.
+
 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	* cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
diff --git a/gdb/NEWS b/gdb/NEWS
index b93384a..79f6264 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -141,10 +141,15 @@ set auto-load python-scripts on|off
 show auto-load python-scripts
   Control auto-loading of Python script files.
 
-set auto-load local-gdbinit on|off|warn-and-on|warn-and-off
+set auto-load local-gdbinit on|off
 show auto-load local-gdbinit
   Control loading of init file (.gdbinit) from current directory.
 
+set auto-load local-gdbinit-warning on|off
+show auto-load local-gdbinit-warning
+  Control printing deprecation warning for loading of init file (.gdbinit) from
+  current directory.
+
 set auto-load libthread-db on|off
 show auto-load libthread-db
   Control auto-loading of inferior specific thread debugging shared library.
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 0acc21c..67df718 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -87,31 +87,12 @@ show_auto_load_gdb_scripts (struct ui_file *file, int from_tty,
    used to find the scripts.  */
 int global_auto_load = 1;
 
-/* Load current directory .gdbinit file automatically.  */
-const char auto_load_local_gdbinit_yes[] = "yes";
-
-/* Never load current directory .gdbinit file.  */
-const char auto_load_local_gdbinit_no[] = "no";
-
-/* Give deprecation warning and load current directory .gdbinit file
-   automatically.  */
-const char auto_load_local_gdbinit_warn_and_yes[] = "warn-and-yes";
-
-/* Give deprecation warning and do not load current directory .gdbinit file.  */
-const char auto_load_local_gdbinit_warn_and_no[] = "warn-and-no";
-
-/* Options for auto_load_local_gdbinit.  */
-static const char *const auto_load_local_gdbinit_enum[] =
-{
-  auto_load_local_gdbinit_yes,
-  auto_load_local_gdbinit_no,
-  auto_load_local_gdbinit_warn_and_yes,
-  auto_load_local_gdbinit_warn_and_no,
-  NULL
-};
-
 /* Auto-load .gdbinit file from the current directory?  */
-const char *auto_load_local_gdbinit = auto_load_local_gdbinit_warn_and_yes;
+int auto_load_local_gdbinit = 1;
+
+/* Print warning on attempted auto-load of .gdbinit file from the current
+   directory?  */
+int auto_load_local_gdbinit_warning = 1;
 
 /* Absolute pathname to the current directory .gdbinit, if it exists.  */
 char *auto_load_local_gdbinit_pathname = NULL;
@@ -130,6 +111,20 @@ show_auto_load_local_gdbinit (struct ui_file *file, int from_tty,
 		    value);
 }
 
+/* "show" command for the auto_load_local_gdbinit_warning configuration
+   variable.  */
+
+static void
+show_auto_load_local_gdbinit_warning (struct ui_file *file, int from_tty,
+				      struct cmd_list_element *c,
+				      const char *value)
+{
+  fprintf_filtered (file, _("Printing deprecation warning for attempted "
+                            "auto-loading of .gdbinit script from current "
+			    "directory is %s.\n"),
+		    value);
+}
+
 /* Directory list safe to hold auto-loaded files.  It is not checked for
    absolute paths but they are strongly recommended.  It is initialized by
    _initialize_auto_load.  */
@@ -1020,26 +1015,38 @@ This options has security implications for untrusted inferiors."),
 Usage: info auto-load gdb-scripts [REGEXP]"),
 	   auto_load_info_cmdlist_get ());
 
-  add_setshow_enum_cmd ("local-gdbinit", class_support,
-			auto_load_local_gdbinit_enum,
-			&auto_load_local_gdbinit, _("\
+  add_setshow_boolean_cmd ("local-gdbinit", class_support,
+			   &auto_load_local_gdbinit, _("\
 Enable or disable auto-loading of .gdbinit script in current directory."), _("\
 Show whether auto-loading .gdbinit script in current directory is enabled."),
 			   _("\
 If enabled, canned sequences of commands are loaded when debugger starts\n\
 from .gdbinit file in current directory.  Such files are deprecated,\n\
 use a script associated with inferior executable file instead.\n\
-You can optionally display a warning when such file is found.\n\
 This options has security implications for untrusted inferiors."),
-			NULL, show_auto_load_local_gdbinit,
-			auto_load_set_cmdlist_get (),
-			auto_load_show_cmdlist_get ());
+			   NULL, show_auto_load_local_gdbinit,
+			   auto_load_set_cmdlist_get (),
+			   auto_load_show_cmdlist_get ());
 
   add_cmd ("local-gdbinit", class_info, info_auto_load_local_gdbinit,
 	   _("Print whether current directory .gdbinit file has been loaded.\n\
 Usage: info auto-load local-gdbinit"),
 	   auto_load_info_cmdlist_get ());
 
+  add_setshow_boolean_cmd ("local-gdbinit-warning", class_support,
+			   &auto_load_local_gdbinit_warning, _("\
+Enable or disable printing warnings for .gdbinit script in current directory."),
+                                                             _("\
+Show whether printing warnings for .gdbinit script in current directory \
+is enabled."),
+			   _("\
+GDB prints a warning when it finds .gdbinit script in current directory\n\
+as these files have been deprecated.  Whether it is loaded or not depends\n\
+on 'set auto-load local-gdbinit'."),
+			   NULL, show_auto_load_local_gdbinit_warning,
+			   auto_load_set_cmdlist_get (),
+			   auto_load_show_cmdlist_get ());
+
   auto_load_safe_path = xstrdup (DEFAULT_AUTO_LOAD_SAFE_PATH);
   auto_load_safe_path_vec_update ();
   add_setshow_optional_filename_cmd ("safe-path", class_support,
diff --git a/gdb/auto-load.h b/gdb/auto-load.h
index 4958baf..11cee0d 100644
--- a/gdb/auto-load.h
+++ b/gdb/auto-load.h
@@ -32,11 +32,8 @@ struct script_language
 
 extern int global_auto_load;
 
-extern const char auto_load_local_gdbinit_yes[];
-extern const char auto_load_local_gdbinit_no[];
-extern const char auto_load_local_gdbinit_warn_and_yes[];
-extern const char auto_load_local_gdbinit_warn_and_no[];
-extern const char *auto_load_local_gdbinit;
+extern int auto_load_local_gdbinit;
+extern int auto_load_local_gdbinit_warning;
 extern char *auto_load_local_gdbinit_pathname;
 extern int auto_load_local_gdbinit_loaded;
 
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index a41bcec..025b4de 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -73,19 +73,6 @@ struct cmd_list_element *maint_cplus_cmd_list = NULL;
 static void maint_cplus_command (char *arg, int from_tty);
 static void first_component_command (char *arg, int from_tty);
 
-/* Operator validation.
-   NOTE: Multi-byte operators (usually the assignment variety
-   operator) must appear before the single byte version, i.e., "+="
-   before "+".  */
-static const char *operator_tokens[] =
-  {
-    "++", "+=", "+", "->*", "->", "--", "-=", "-", "*=", "*",
-    "/=", "/", "%=", "%", "!=", "==", "!", "&&", "<<=", "<<",
-    ">>=", ">>", "<=", "<", ">=", ">", "~", "&=", "&", "|=",
-    "||", "|", "^=", "^", "=", "()", "[]", ",", "new", "delete"
-    /* new[] and delete[] require special whitespace handling */
-  };
-
 /* A list of typedefs which should not be substituted by replace_typedefs.  */
 static const char * const ignore_typedefs[] =
   {
@@ -1459,110 +1446,6 @@ first_component_command (char *arg, int from_tty)
 
 extern initialize_file_ftype _initialize_cp_support; /* -Wmissing-prototypes */
 
-#define SKIP_SPACE(P)				\
-  do						\
-  {						\
-    while (*(P) == ' ' || *(P) == '\t')		\
-      ++(P);					\
-  }						\
-  while (0)
-
-/* Returns the length of the operator name or 0 if INPUT does not
-   point to a valid C++ operator.  INPUT should start with
-   "operator".  */
-int
-cp_validate_operator (const char *input)
-{
-  int i;
-  char *copy;
-  const char *p;
-  struct expression *expr;
-  struct value *val;
-  volatile struct gdb_exception except;
-
-  p = input;
-
-  if (strncmp (p, "operator", 8) == 0)
-    {
-      int valid = 0;
-
-      p += 8;
-      SKIP_SPACE (p);
-      for (i = 0;
-	   i < sizeof (operator_tokens) / sizeof (operator_tokens[0]);
-	   ++i)
-	{
-	  int length = strlen (operator_tokens[i]);
-
-	  /* By using strncmp here, we MUST have operator_tokens
-	     ordered!  See additional notes where operator_tokens is
-	     defined above.  */
-	  if (strncmp (p, operator_tokens[i], length) == 0)
-	    {
-	      const char *op = p;
-
-	      valid = 1;
-	      p += length;
-
-	      if (strncmp (op, "new", 3) == 0
-		  || strncmp (op, "delete", 6) == 0)
-		{
-
-		  /* Special case: new[] and delete[].  We must be
-		     careful to swallow whitespace before/in "[]".  */
-		  SKIP_SPACE (p);
-
-		  if (*p == '[')
-		    {
-		      ++p;
-		      SKIP_SPACE (p);
-		      if (*p == ']')
-			++p;
-		      else
-			valid = 0;
-		    }
-		}
-
-	      if (valid)
-		return (p - input);
-	    }
-	}
-
-      /* Check input for a conversion operator.  */
-
-      /* Skip past base typename.  */
-      while (*p != '*' && *p != '&' && *p != 0 && *p != ' ')
-	++p;
-      SKIP_SPACE (p);
-
-      /* Add modifiers '*' / '&'.  */
-      while (*p == '*' || *p == '&')
-	{
-	  ++p;
-	  SKIP_SPACE (p);
-	}
-
-      /* Check for valid type.  [Remember: input starts with 
-	 "operator".]  */
-      copy = savestring (input + 8, p - input - 8);
-      expr = NULL;
-      val = NULL;
-      TRY_CATCH (except, RETURN_MASK_ALL)
-	{
-	  expr = parse_expression (copy);
-	  val = evaluate_type (expr);
-	}
-
-      xfree (copy);
-      if (expr)
-	xfree (expr);
-
-      if (val != NULL && value_type (val) != NULL)
-	return (p - input);
-    }
-
-  return 0;
-}
 
 /* Implement "info vtbl".  */
 
diff --git a/gdb/cp-support.h b/gdb/cp-support.h
index 8898807..5988418 100644
--- a/gdb/cp-support.h
+++ b/gdb/cp-support.h
@@ -170,8 +170,6 @@ extern struct symbol **make_symbol_overload_list_adl (struct type **arg_types,
 extern struct type *cp_lookup_rtti_type (const char *name,
 					 struct block *block);
 
-extern int cp_validate_operator (const char *input);
-
 /* Functions/variables from cp-namespace.c.  */
 
 extern int cp_is_anonymous (const char *namespace);
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 2959310..34af8c5 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1287,7 +1287,7 @@ Processes command line options and operands.
 @item
 Reads and executes the commands from init file (if any) in the current
 working directory as long as @samp{set auto-load local-gdbinit} is set to
-@samp{yes} or @samp{warn-and-yes} (@pxref{Init File in the Current Directory}).
+@samp{on} (@pxref{Init File in the Current Directory}).
 This is only done if the current directory is
 different from your home directory.  Thus, you can have more than one
 init file, one generic in your home directory, and another, specific
@@ -20746,9 +20746,10 @@ or disabled.
 (gdb) show auto-load
 gdb-scripts:  Auto-loading of canned sequences of commands scripts is on.
 libthread-db:  Auto-loading of inferior specific libthread_db is on.
-local-gdbinit:  Auto-loading of .gdbinit script
-                                  from current directory is warn-and-yes.
+local-gdbinit:  Auto-loading of .gdbinit script from current directory is on.
 python-scripts:  Auto-loading of Python scripts is on.
+local-gdbinit-warning:  Printing deprecation warning for attempted auto-loading
+                        of .gdbinit script from current directory is on.
 safe-path:  List of directories from which it is safe to auto-load files
             is /usr/local.
 @end smallexample
@@ -20774,22 +20775,24 @@ Yes     /home/user/gdb/gdb-gdb.py
 
 These are various kinds of files @value{GDBN} can automatically load:
 
-@multitable {@xref{dotdebug_gdb_scripts section}.} {See @ref{set auto-load python-scripts}}
-@item @xref{objfile-gdb.py file}.
-@tab See @ref{set auto-load python-scripts}.
-@item @xref{objfile-gdb.gdb file}.
-@tab See @ref{set auto-load gdb-scripts}.
-@item @xref{dotdebug_gdb_scripts section}.
-@tab See @ref{set auto-load python-scripts}.
-@item @xref{Init File in the Current Directory}.
-@tab See @ref{set auto-load local-gdbinit}.
-@item @xref{libthread_db.so.1 file}.
-@tab See @ref{set auto-load libthread-db}.
-@end multitable
+@itemize @bullet
+@item
+@xref{objfile-gdb.py file}, controlled by @ref{set auto-load python-scripts}.
+@item
+@xref{objfile-gdb.gdb file}, controlled by @ref{set auto-load gdb-scripts}.
+@item
+@xref{dotdebug_gdb_scripts section},
+controlled by @ref{set auto-load python-scripts}.
+@item
+@xref{Init File in the Current Directory},
+controlled by @ref{set auto-load local-gdbinit}.
+@item
+@xref{libthread_db.so.1 file}, controlled by @ref{set auto-load libthread-db}.
+@end itemize
 
 These are @value{GDBN} control commands for the auto-loading:
 
-@multitable {@xref{show auto-load python-scripts}.} {Show setting of @value{GDBN} command scripts.}
+@multitable @columnfractions .5 .5
 @item @xref{set auto-load off}.
 @tab Disable auto-loading globally.
 @item @xref{show auto-load}.
@@ -20814,6 +20817,10 @@ These are @value{GDBN} control commands for the auto-loading:
 @tab Show setting of init file in the current directory.
 @item @xref{info auto-load local-gdbinit}.
 @tab Show state of init file in the current directory.
+@item @xref{set auto-load local-gdbinit-warning}.
+@tab Control warning for init file in the current directory.
+@item @xref{show auto-load local-gdbinit-warning}.
+@tab Show setting of warning for init file in the current directory.
 @item @xref{set auto-load libthread-db}.
 @tab Control for thread debugging library.
 @item @xref{show auto-load libthread-db}.
@@ -20848,26 +20855,37 @@ see @ref{Init File in the Current Directory during Startup}.
 @table @code
 @anchor{set auto-load local-gdbinit}
 @kindex set auto-load local-gdbinit
-@item set auto-load local-gdbinit [yes|no|warn-and-yes|warn-and-no]
+@item set auto-load local-gdbinit [on|off]
 Enable or disable the auto-loading of canned sequences of commands
 (@pxref{Sequences}) found in init file in the current directory.
-The options @samp{warn-and-X} give warning before loading
-(@samp{warn-and-yes}) or when declining to load (@samp{warn-and-no}) the file
-as the @samp{local-gdbinit} feature is deprecated in favor
-of @xref{objfile-gdb.gdb file}.
 
 @anchor{show auto-load local-gdbinit}
 @kindex show auto-load local-gdbinit
 @item show auto-load local-gdbinit
 Show whether auto-loading of canned sequences of commands from init file in the
-current directory is enabled or disabled and whether warnings are printed
-during its load.
+current directory is enabled or disabled.
 
 @anchor{info auto-load local-gdbinit}
 @kindex info auto-load local-gdbinit
 @item info auto-load local-gdbinit
 Print whether canned sequences of commands from init file in the
 current directory have been auto-loaded.
+
+@anchor{set auto-load local-gdbinit-warning}
+@kindex set auto-load local-gdbinit-warning
+@item set auto-load local-gdbinit-warning [on|off]


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-04  6:42 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-04  6:42 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  d79b077ec588f6e87cff07aa0002b22e5e8c9161 (commit)
       via  9310bb8cc65b20f262c08e547bd54476d4c9b290 (commit)
       via  1f006e414bef13f5481cb29b4d8c5dad7e664483 (commit)
       via  dc67b402486fda4b4eea5f71e114d6261534cbaf (commit)
      from  f2d1111fa1fc805aab7460766c3b3b9015c68ac6 (commit)

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

- Log -----------------------------------------------------------------
commit d79b077ec588f6e87cff07aa0002b22e5e8c9161
Merge: f2d1111 9310bb8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 4 08:42:18 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 9310bb8cc65b20f262c08e547bd54476d4c9b290
Merge: 1839372 1f006e4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 4 08:42:18 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 1f006e414bef13f5481cb29b4d8c5dad7e664483
Merge: 2222fac dc67b40
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 4 08:42:14 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug
    
    Conflicts:
    	gdb/auto-load.c

commit dc67b402486fda4b4eea5f71e114d6261534cbaf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 4 08:41:45 2012 +0200

    .

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

Summary of changes:
 gdb/auto-load.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 87616b6..0acc21c 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -34,6 +34,7 @@
 #include "cli/cli-setshow.h"
 #include "gdb_vecs.h"
 #include "readline/tilde.h"
+#include "completer.h"
 
 /* The suffix of per-objfile scripts to auto-load as non-Python command files.
    E.g. When the program loads libfoo.so, look for libfoo-gdb.gdb.  */
@@ -995,6 +996,8 @@ void _initialize_auto_load (void);
 void
 _initialize_auto_load (void)
 {
+  struct cmd_list_element *cmd;
+
   auto_load_pspace_data
     = register_program_space_data_with_cleanup (auto_load_pspace_data_cleanup);
 
@@ -1054,12 +1057,14 @@ This options has security implications for untrusted inferiors."),
 				     auto_load_set_cmdlist_get (),
 				     auto_load_show_cmdlist_get ());
 
-  add_cmd ("add-auto-load-safe-path", class_support, add_auto_load_safe_path,
-	   _("Add entries to the list of directories from which it is safe "
-	     "to auto-load files.\n\
+  cmd = add_cmd ("add-auto-load-safe-path", class_support,
+		 add_auto_load_safe_path,
+		 _("Add entries to the list of directories from which it is safe "
+		   "to auto-load files.\n\
 See the commands 'set auto-load safe-path' and 'show auto-load safe-path' to\n\
 access the current full list setting."),
-	   &cmdlist);
+		 &cmdlist);
+  set_cmd_completer (cmd, filename_completer);
 
   add_setshow_boolean_cmd ("auto-load", class_maintenance,
 			   &debug_auto_load, _("\


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-03 17:42 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-03 17:42 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  f2d1111fa1fc805aab7460766c3b3b9015c68ac6 (commit)
       via  1839372c75d086622c16ceb95aff2fb74902efcd (commit)
       via  2222faca05730960c9b6530b04d8aaabb9ccbc6d (commit)
       via  883a94a6d27045fad7171a30c23cc398463c4acb (commit)
       via  3ced064e74859581e62e31797d11f07624fcdebe (commit)
       via  c33e0d937ab0dac3e0db256e5721b492df82dc0e (commit)
       via  838c84887df9e5f9dfc6d80193dee0200b83f787 (commit)
       via  637f93e10316bbb7a3c0deec3dbe4adb6ddf8f96 (commit)
       via  700160f8784ad8c5c131db7bc3e5a7a659483364 (commit)
       via  41930c990f383a9b4a0c935915b45dda4c3b1253 (commit)
       via  8fe869b374d58f3d13ea52471ce9c4b4be25d5f4 (commit)
       via  1752e5cf9dda52939f1f8dd9a58b311c86c4215b (commit)
       via  1b96f0ea599212266ee4baae8ee4fab84514b7bf (commit)
       via  6ee74672cdf95a5c1d1e0268bcbe893eb090afa2 (commit)
       via  d2b883ecf6e967e927b005b74eb44bd42bf80bb3 (commit)
       via  dc1da28db73aef4f8350eff0e955a99dd2abe51b (commit)
       via  1b5b3be5e03d4fd298a267fd8f36851c63e2ac84 (commit)
       via  3c35cbb934630493d701fd0f979ed38769d50de0 (commit)
       via  0a4a22bc17d9169ea66b5def0ae0e26b78dade06 (commit)
       via  af5d2a3e95320ff8664d81da16f97610704c386e (commit)
       via  daed0ddc63daa979aef152cdbaadb67a93bf48f1 (commit)
       via  05e366f604936ef81fced3a5ded822e240ebddc8 (commit)
       via  bece538cd25be6a4e2fca95b46b1bb940c31d7de (commit)
       via  467d07ff1238c1a0edd6124febee7d9db5bf20c1 (commit)
       via  cb6682dd2c5c0fa50585a506ed3bfbf951216d28 (commit)
       via  5fae38742ec4ac1120350b9fe7e063c61aff4143 (commit)
       via  002523e38d85f2c3abad2b8efd237a8d81916873 (commit)
       via  9bfe1407014b0fc46a642d32f8768481b6787963 (commit)
       via  14a71f642f0ac0e3589400f782a67906f88f5ac4 (commit)
       via  8088c0f4126bf24008a1735495bd2ddc5c68f27e (commit)
       via  2427aa4bd15e88a2aba5fe710c7425c4957f1819 (commit)
       via  164d8e9ac9ec74d970aa42550000539710e96a8e (commit)
       via  a8ed34e234859774dd7ef60a34dfd95fb72a1799 (commit)
       via  2b19e81773d70e92e89ad4afccdeb0b08d62eaef (commit)
       via  ab46a1353fb388d1c25c94efc3c4dedcd58cc643 (commit)
       via  fa096f5020d779e1f850fc09c618b06c1ef49f3b (commit)
       via  da1ca890459165a522de5edd908fb2f32599e797 (commit)
       via  c05ad72f855e2ef83783599c21e3e1b8bf868818 (commit)
       via  00e5778d1463f7a257af3cdb20e20ce87f952b00 (commit)
       via  127f2f3f04b6947a7990986f9258073054326aef (commit)
       via  6696b232b59161a4989a22123160593fd917e3aa (commit)
       via  6647fae55e74ac8ec98b98f923bdef2e7433d873 (commit)
       via  7bd0483fb07e8810e32076d490c2afa328b63f93 (commit)
       via  7637d3166de39e409d21bf1b0c461b351e2a5b7c (commit)
       via  1548f1be726728a7376dfb3c084a6884e42298ee (commit)
       via  1cfc0dfe135739f33631fdf0e7129878577fcbed (commit)
       via  641bbcbf83ec77eec3a26eeb8f5cc1e7963bb010 (commit)
       via  5dd969b54821341b8c460222706994664195cb6a (commit)
       via  9db1f5e26330276bef110bd96ceeb66b74d2ab04 (commit)
       via  a01553070ee17f534161eab27f4411df91911d20 (commit)
       via  09a1739accd5793abc88bb31556df41518fbf835 (commit)
       via  00e7b642b73568f4bd2368e4e4589d58fd829ae5 (commit)
       via  dbd4ccb147506fa4e8a62f9489f59c9241b48bf1 (commit)
       via  5000984d425d55e26ec317aa72f0c4abe2d92946 (commit)
       via  c76778cad475ebc51df84a0cad2d2bfd6aed83eb (commit)
       via  c7a87707432f674aaa0bc0a6d28b6013e54072cb (commit)
       via  67084d7a8630eca11cbebb352f893cb06eb77347 (commit)
       via  5969a35c93370f4cf45e269d86ba85fae874f6ff (commit)
       via  798486684e02a23c7c6e3c253ce8facf6bccf504 (commit)
       via  43eabdf98e784d7226eb6035669e14f7aed0c57f (commit)
       via  e842f047c474c5546e4d426fd94818b5452005fc (commit)
       via  26a1051d283675983107d2a8ff1f97866c18ca6b (commit)
       via  3278e7af227fa83b0797b7e200883aafd8699449 (commit)
       via  e3da84c2bc613e010aec6d05414ebe8852138662 (commit)
       via  279d5376e017e748d755de0e54630e8537ff90c3 (commit)
       via  f9634df9934c30a9e18af2ae6c44f360b8986e34 (commit)
       via  99d9bf8fd746f55b8402d6729fd8703edb82d3f8 (commit)
       via  5fed569df2de6cc03d61a3b0e2a9421bd49ce733 (commit)
       via  47f89590ce20f05cba1b3d1f91cfa5c813d31979 (commit)
       via  781a2000f1367604d952ff68b2fed66a17de67e0 (commit)
       via  8f92e44e60232d73f8750525b48b9ffb1fd15907 (commit)
       via  946573e90b0fc212e468dcf45297664608f4de5b (commit)
       via  1af97f2b87dc95c747e4a6df0ee0a70353021926 (commit)
       via  505d064e20383884ae97e5c3740c965f8bf81264 (commit)
       via  e82735812ea8c0c3bc36740885d03f0412b080b2 (commit)
       via  93cd7197cbfc7ca9ab6bfba32e737caf4c1ddbdd (commit)
       via  6a7b3ca186918388c00b959bc5682f6fd12411c4 (commit)
       via  48bd1722d3680f86fe861118aa54ef03c527e745 (commit)
       via  676678c17423c96eb7ffe2f59410ee1c6a5d5dab (commit)
       via  84faf620374b1352550a9d692d9bdf6ef734ef10 (commit)
       via  447a144fef1d91c0b503ca2c02c848877b9b252b (commit)
       via  f224e13f2a2f039eccf48ee61979654b60012117 (commit)
       via  13d17bbf2f107e0cc53b87152303ce72a469d04a (commit)
       via  c96ca63458945f4e9f30cf711f41a5a461e7d72a (commit)
       via  5cab1817f60351789dd78d051ad7c23839aab376 (commit)
       via  cdee20143a5368b158e15685080251b76cc6f93b (commit)
       via  0fe2b322df8c0b4e7905f9517a9ace2e91b5ffcb (commit)
       via  19d0588b6bd7d0b023d1c1eea7c4a39602e295f9 (commit)
       via  28268588eedea50641264c8acff86de28e51b0b4 (commit)
       via  72365d2857ecf861bc6f0ac9777d6eeb28f33359 (commit)
       via  21c89a44d67e49062aced27d29370981f922ebbb (commit)
       via  5c3c12506e885797b4b8ad3f661f396b1a3dd6ac (commit)
       via  7a1bed16627dc124130fc8fae44892e70373e04d (commit)
       via  893093a04491e1f6d34985f72d11b5956467a06c (commit)
       via  9f12720e8a5fd4b0f6bea00925a5f41928120b5e (commit)
       via  f25aa651cffcb9e38b2b690cba1f185e85d17d78 (commit)
       via  11641048d4ced282f0c12ff9f35a4080908025ed (commit)
       via  e07852a273dbee73e95518f30d9ac9a8a832bf6a (commit)
       via  743999a43dc841ebfabe6b24d1aafeff2c4beb94 (commit)
       via  ce1d2ecc147f27e956a819288c1b49d30761a4c7 (commit)
       via  8af5a02c1286fb341d0f29c6b804f56a030d5705 (commit)
       via  822e77172ffe9547f566a060896f489785476d4b (commit)
       via  44c9fbf05caeabfc2baf75d2b675bd274dd996b1 (commit)
       via  8cd63340fccaa243d78cb6f493e968fe319cf3e3 (commit)
       via  ded0854194e0019fec0e297089a75a3d722c7289 (commit)
       via  d8cd64f0271a3678c04f53b05aff3410a43fe99a (commit)
       via  d0f49d0a46f566a493b344c8106539bdc306fc58 (commit)
      from  8721c4e585ce434a9b997a12b1c9e7f9bcac8b46 (commit)

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

- Log -----------------------------------------------------------------
commit f2d1111fa1fc805aab7460766c3b3b9015c68ac6
Merge: 700160f 1839372
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:11 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 1839372c75d086622c16ceb95aff2fb74902efcd
Merge: 41930c9 2222fac
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:11 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 2222faca05730960c9b6530b04d8aaabb9ccbc6d
Merge: 8fe869b 883a94a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:10 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 883a94a6d27045fad7171a30c23cc398463c4acb
Merge: 1752e5c 3ced064
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:10 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 3ced064e74859581e62e31797d11f07624fcdebe
Merge: cb6682d c33e0d9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:10 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit c33e0d937ab0dac3e0db256e5721b492df82dc0e
Merge: 5fae387 838c848
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:10 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit 838c84887df9e5f9dfc6d80193dee0200b83f787
Merge: 9bfe140 637f93e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:10 2012 +0200

    Merge branch 'pathvec0' into pathvec0-1

commit 637f93e10316bbb7a3c0deec3dbe4adb6ddf8f96
Merge: 14a71f6 d2b883e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:41:09 2012 +0200

    Merge remote-tracking branch 'gdb/master' into pathvec0

commit 700160f8784ad8c5c131db7bc3e5a7a659483364
Merge: dc1da28 41930c9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:40:44 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 41930c990f383a9b4a0c935915b45dda4c3b1253
Merge: 1b5b3be 8fe869b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:40:44 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 8fe869b374d58f3d13ea52471ce9c4b4be25d5f4
Merge: 1b96f0e 1752e5c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:40:44 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 1752e5cf9dda52939f1f8dd9a58b311c86c4215b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:40:42 2012 +0200

    .

commit 1b96f0ea599212266ee4baae8ee4fab84514b7bf
Merge: 3c35cbb 6ee7467
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:40:29 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug
    
    Conflicts:
    	gdb/auto-load.c

commit 6ee74672cdf95a5c1d1e0268bcbe893eb090afa2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 19:39:54 2012 +0200

    .

commit d2b883ecf6e967e927b005b74eb44bd42bf80bb3
Author: Roland McGrath <roland@gnu.org>
Date:   Tue Apr 3 16:01:22 2012 +0000

    bfd/
    2012-04-03  Roland McGrath  <mcgrathr@google.com>
    
    	* elf-nacl.c: New file.
    	* elf-nacl.h: New file.
    	* elf32-i386.c (elf_backend_modify_segment_map): Define for
    	bfd_elf32_i386_nacl_vec.
    	(elf_backend_modify_program_headers): Likewise.
    	* elf64-x86-64.c (elf_backend_modify_segment_map): Define for
    	bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
    	(elf_backend_modify_program_headers): Likewise.
    	* Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
    	(BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
    	* Makefile.in: Regenerated.
    	* configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
    	(bfd_elf32_x86_64_nacl_vec): Likewise.
    	(bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
    	(bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
    	(bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
    	(bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
    	(bfd_elf32_i386_nacl_vec): Likewise.
    	(bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
    	(bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
    	* configure: Regenerated.
    
    binutils/testsuite/
    2012-04-03  Roland McGrath  <mcgrathr@google.com>
    
    	* lib/binutils-common.exp (is_elf_format): Consider *-*-nacl* to
    	be ELF too.
    
    	* binutils-all/elfedit-4.d: Add "#as: --64" option.
    
    	* binutils-all/i386/i386.exp: Accept nacl targets too.
    	* binutils-all/x86-64/x86-64.exp: Likewise.
    
    gas/testsuite/
    2012-04-03  Roland McGrath  <mcgrathr@google.com>
    
    	* gas/i386/k1om.d: Add not-target match for *-*-nacl*.
    	* gas/i386/l1om.d: Likewise.
    
    ld/
    2012-04-03  Roland McGrath  <mcgrathr@google.com>
    
    	* configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
    	* emulparams/elf_nacl.sh: New file.
    	* emulparams/elf_i386_nacl.sh: New file.
    	* emulparams/elf32_x86_64_nacl.sh: New file.
    	* emulparams/elf_x86_64_nacl.sh: New file.
    	* Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
    	(ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
    	eelf_x86_64_nacl.c here.
    	(eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
    	New targets.
    	* Makefile.in: Regenerated.
    
    	* scripttempl/elf.sc: Handle SEPARATE_CODE cases.
    
    ld/testsuite/
    2012-04-03  Roland McGrath  <mcgrathr@google.com>
    
    	* ld-x86-64/ilp32-4-nacl.d: New file.
    	* ld-x86-64/x86-64.exp: Run it.
    
    	* ld-discard/discard.exp: Accept nacl targets too.
    	* ld-elf/binutils.exp: Likewise.
    	* ld-elf/comm-data.exp: Likewise.
    	* ld-elf/elf.exp: Likewise.
    	* ld-elf/tls_common.exp: Likewise.
    	* ld-elfvers/vers.exp: Likewise.
    	* ld-elfvsb/elfvsb.exp: Likewise.
    	* ld-elfweak/elfweak.exp: Likewise.
    	* ld-gc/gc.exp: Likewise.
    	* ld-ifunc/binutils.exp: Likewise.
    	* ld-ifunc/ifunc.exp: Likewise.
    	* ld-linkonce/linkonce.exp:Likewise.
    	* ld-pie/pie.exp: Likewise.
    	* ld-shared/shared.exp: Likewise.
    	* ld-undefined/weak-undef.exp: Likewise.
    	* ld-unique/unique.exp: Likewise.
    	* ld-x86-64/dwarfreloc.exp: Likewise.
    	* ld-x86-64/line.exp: Likewise.
    
    	* lib/ld-lib.exp (slurp_options): Support global array
    	options_regsub to apply substitutions to the contents
    	of options lines read from the file.
    	* ld-i386/emit-relocs.d: Renamed to ...
    	* ld-i386/emit-relocs.rd: ... this.
    	* ld-i386/i386.exp: Accept nacl targets too.
    	For them, use options_regsub to replace elf_i386 with
    	elf_i386_nacl in run_dump_test cases; apply the same
    	substitution in $i386tests; replace foo.rd expectations
    	files with foo-nacl.rd in $i386tests.
    	(i386tests): Change emit-relocs.d to emit-relocs.rd here.
    	* ld-i386/emit-relocs-nacl.rd: New file.
    	* ld-i386/plt-nacl.pd: New file.
    	* ld-i386/plt-pic-nacl.pd: New file.
    	* ld-i386/tlsbin-nacl.rd: New file.
    	* ld-i386/tlsbindesc-nacl.rd: New file.
    	* ld-i386/tlsdesc-nacl.rd: New file.
    	* ld-i386/tlsgdesc-nacl.rd: New file.
    	* ld-i386/tlsnopic-nacl.rd: New file.
    	* ld-i386/tlspic-nacl.rd: New file.
    	* ld-x86-64/x86-64.exp: Accept nacl targets too.
    	For them, use options_regsub to replace elf_x86_64 with
    	elf_x86_64_nacl in run_dump_test cases; apply the same
    	substitution in $x86_64tests; replace foo.rd expectations
    	files with foo-nacl.rd in $x86_64tests.
    	Add explicit -melf_x86_64 to ld options in tests that need it,
    	in case the default emulation is x32 (as it is for x86_64-nacl).
    	* ld/testsuite/ld-x86-64/plt-nacl.pd: New file.
    	* ld/testsuite/ld-x86-64/split-by-file-nacl.rd: New file.
    	* ld/testsuite/ld-x86-64/tlsbin-nacl.rd: New file.
    	* ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd: New file.
    	* ld/testsuite/ld-x86-64/tlsdesc-nacl.pd: New file.
    	* ld/testsuite/ld-x86-64/tlsdesc-nacl.rd: New file.
    	* ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd: New file.
    	* ld/testsuite/ld-x86-64/tlspic-nacl.rd: New file.
    
    	* ld-i386/hidden2.d: Loosen regexps to match any file format variant,
    	and not to depend on exact addresses, displacements, etc. where
    	they are irrelevant.
    	* ld-i386/pcrel16.d: Likewise.
    	* ld-i386/pcrel16abs.d: Likewise.
    	* ld-i386/pr12718.d: Likewise.
    	* ld-i386/pr12921.d: Likewise.
    	* ld-i386/reloc.d: Likewise.
    	* ld-i386/tlsbin.dd: Likewise.
    	* ld-i386/tlsbin.sd: Likewise.
    	* ld-i386/tlsbin.td: Likewise.
    	* ld-i386/tlsbindesc.dd: Likewise.
    	* ld-i386/tlsbindesc.sd: Likewise.
    	* ld-i386/tlsbindesc.td: Likewise.
    	* ld-i386/tlsdesc.dd: Likewise.
    	* ld-i386/tlsdesc.sd: Likewise.
    	* ld-i386/tlsdesc.td: Likewise.
    	* ld-i386/tlsg.sd: Likewise.
    	* ld-i386/tlsgdesc.dd: Likewise.
    	* ld-i386/tlsindntpoff.dd: Likewise.
    	* ld-i386/tlsnopic.dd: Likewise.
    	* ld-i386/tlsnopic.sd: Likewise.
    	* ld-i386/tlspic.dd: Likewise.
    	* ld-i386/tlspic.sd: Likewise.
    	* ld-i386/tlspic.td: Likewise.
    	* ld-i386/tlspie2.d: Likewise.
    	* ld-x86-64/hidden2.d: Likewise.
    	* ld-x86-64/pcrel16.d: Likewise.
    	* ld-x86-64/pr12718.d: Likewise.
    	* ld-x86-64/pr12921.d: Likewise.
    	* ld-x86-64/protected3.d: Likewise.
    	* ld-x86-64/tlsbin.dd: Likewise.
    	* ld-x86-64/tlsbin.sd: Likewise.
    	* ld-x86-64/tlsbin.td: Likewise.
    	* ld-x86-64/tlsbindesc.dd: Likewise.
    	* ld-x86-64/tlsbindesc.sd: Likewise.
    	* ld-x86-64/tlsbindesc.td: Likewise.
    	* ld-x86-64/tlsdesc.dd: Likewise.
    	* ld-x86-64/tlsdesc.sd: Likewise.
    	* ld-x86-64/tlsdesc.td: Likewise.
    	* ld-x86-64/tlsg.sd: Likewise.
    	* ld-x86-64/tlsgd5.dd: Likewise.
    	* ld-x86-64/tlsgd6.dd: Likewise.
    	* ld-x86-64/tlsgdesc.dd: Likewise.
    	* ld-x86-64/tlspic.dd: Likewise.
    	* ld-x86-64/tlspic.sd: Likewise.
    	* ld-x86-64/tlspic.td: Likewise.
    
    	* ld-x86-64/ilp32-8.d: Match any file format variant.
    	Use a -Ttext and adjust expected results, to handle variant layouts.
    	* ld-x86-64/ilp32-9.d: Likewise.
    
    	* ld-i386/alloc.t: Remove superfluous OUTPUT_FORMAT statement.
    	* ld-i386/pr12627.t: Likewise.
    
    	* ld-x86-64/abs-l1om.d: Add target: constraint.
    	* ld-x86-64/protected2-l1om.d: Likewise.
    	* ld-x86-64/protected3-l1om.d: Likewise.
    	* ld-x86-64/ilp32-4.d: Likewise.
    
    	* ld-x86-64/plt.s: New file.
    	* ld-x86-64/pltlib.s: New file.
    	* ld-x86-64/plt.pd: New file.
    	* ld-x86-64/x86-64.exp (x86_64tests): Add them.
    
    	* ld-i386/plt.s: New file.
    	* ld-i386/pltlib.s: New file.
    	* ld-i386/plt.pd: New file.
    	* ld-i386/plt-pic.s: New file.
    	* ld-i386/plt-pic.pd: New file.
    	* ld-i386/i386.exp (i386tests): Add them.

commit dc1da28db73aef4f8350eff0e955a99dd2abe51b
Merge: daed0dd 1b5b3be
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:54:11 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 1b5b3be5e03d4fd298a267fd8f36851c63e2ac84
Merge: 05e366f 3c35cbb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:54:11 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 3c35cbb934630493d701fd0f979ed38769d50de0
Merge: af5d2a3 0a4a22b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:54:10 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 0a4a22bc17d9169ea66b5def0ae0e26b78dade06
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:51:04 2012 +0200

    .

commit af5d2a3e95320ff8664d81da16f97610704c386e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:50:15 2012 +0200

    .

commit daed0ddc63daa979aef152cdbaadb67a93bf48f1
Merge: 2b19e81 05e366f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:23:45 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 05e366f604936ef81fced3a5ded822e240ebddc8
Merge: ab46a13 bece538
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:23:45 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit bece538cd25be6a4e2fca95b46b1bb940c31d7de
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:23:40 2012 +0200

    .

commit 467d07ff1238c1a0edd6124febee7d9db5bf20c1
Merge: 6647fae 002523e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:22:00 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug
    
    Conflicts:
    	gdb/auto-load.c

commit cb6682dd2c5c0fa50585a506ed3bfbf951216d28
Merge: 7637d31 5fae387
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:19:57 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit 5fae38742ec4ac1120350b9fe7e063c61aff4143
Merge: 26a1051 9bfe140
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:19:57 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit 002523e38d85f2c3abad2b8efd237a8d81916873
Merge: 8088c0f cb6682d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:19:57 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 9bfe1407014b0fc46a642d32f8768481b6787963
Merge: 3278e7a 14a71f6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:19:56 2012 +0200

    Merge branch 'pathvec0' into pathvec0-1

commit 14a71f642f0ac0e3589400f782a67906f88f5ac4
Merge: e3da84c 2427aa4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:19:56 2012 +0200

    Merge remote-tracking branch 'gdb/master' into pathvec0

commit 8088c0f4126bf24008a1735495bd2ddc5c68f27e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 17:18:52 2012 +0200

    .

commit 2427aa4bd15e88a2aba5fe710c7425c4957f1819
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 3 14:39:51 2012 +0000

    gdb/
    	* cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
    	for TYPE_VPTR_FIELDNO.
    	* valprint.c (valprint_check_validity): Make it global, move the
    	function comment ...
    	* value.h (valprint_check_validity): ... to this new declaration.
    
    gdb/testsuite/
    	* gdb.trace/unavailable.exp
    	(collect globals: print object on: print derived_partial)
    	(collect globals: print object on: print derived_whole)
    	(collect globals: print object off: print derived_partial)
    	(collect globals: print object off: print derived_whole): Update
    	expected output.

commit 164d8e9ac9ec74d970aa42550000539710e96a8e
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Tue Apr 3 00:00:32 2012 +0000

    *** empty log message ***

commit a8ed34e234859774dd7ef60a34dfd95fb72a1799
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Apr 3 00:00:06 2012 +0000

    daily update

commit 2b19e81773d70e92e89ad4afccdeb0b08d62eaef
Merge: fa096f5 ab46a13
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 23:08:53 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit ab46a1353fb388d1c25c94efc3c4dedcd58cc643
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 23:08:05 2012 +0200

    .

commit fa096f5020d779e1f850fc09c618b06c1ef49f3b
Merge: c05ad72 da1ca89
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:57:37 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit da1ca890459165a522de5edd908fb2f32599e797
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:57:34 2012 +0200

    .

commit c05ad72f855e2ef83783599c21e3e1b8bf868818
Merge: 127f2f3 00e5778
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:55:41 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 00e5778d1463f7a257af3cdb20e20ce87f952b00
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:55:38 2012 +0200

    .

commit 127f2f3f04b6947a7990986f9258073054326aef
Merge: 1cfc0df 6696b23
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:54:47 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 6696b232b59161a4989a22123160593fd917e3aa
Merge: 641bbcb 6647fae
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:54:46 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 6647fae55e74ac8ec98b98f923bdef2e7433d873
Merge: 5dd969b 7bd0483
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:54:44 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 7bd0483fb07e8810e32076d490c2afa328b63f93
Merge: 9db1f5e 7637d31
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:54:15 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 7637d3166de39e409d21bf1b0c461b351e2a5b7c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 22:53:32 2012 +0200

    .

commit 1548f1be726728a7376dfb3c084a6884e42298ee
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 21:47:10 2012 +0200

    .

commit 1cfc0dfe135739f33631fdf0e7129878577fcbed
Merge: 00e7b64 641bbcb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:58:26 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 641bbcbf83ec77eec3a26eeb8f5cc1e7963bb010
Merge: dbd4ccb 5dd969b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:58:23 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn
    
    Conflicts:
    	gdb/auto-load.c

commit 5dd969b54821341b8c460222706994664195cb6a
Merge: 5000984 9db1f5e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:57:58 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 9db1f5e26330276bef110bd96ceeb66b74d2ab04
Merge: a015530 09a1739
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:57:58 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit a01553070ee17f534161eab27f4411df91911d20
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:57:57 2012 +0200

    .

commit 09a1739accd5793abc88bb31556df41518fbf835
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:55:41 2012 +0200

    .

commit 00e7b642b73568f4bd2368e4e4589d58fd829ae5
Merge: 7984866 dbd4ccb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:53:04 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit dbd4ccb147506fa4e8a62f9489f59c9241b48bf1
Merge: 43eabdf 5000984
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:53:01 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 5000984d425d55e26ec317aa72f0c4abe2d92946
Merge: e842f04 c76778c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:52:24 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit c76778cad475ebc51df84a0cad2d2bfd6aed83eb
Merge: 279d537 c7a8770
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:52:24 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit c7a87707432f674aaa0bc0a6d28b6013e54072cb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 20:52:22 2012 +0200

    .

commit 67084d7a8630eca11cbebb352f893cb06eb77347
Author: DJ Delorie <dj@delorie.com>
Date:   Mon Apr 2 18:50:26 2012 +0000

    merge from gcc

commit 5969a35c93370f4cf45e269d86ba85fae874f6ff
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 19:13:14 2012 +0200

    .

commit 798486684e02a23c7c6e3c253ce8facf6bccf504
Merge: 5fed569 43eabdf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:04 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 43eabdf98e784d7226eb6035669e14f7aed0c57f
Merge: 47f8959 e842f04
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:04 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit e842f047c474c5546e4d426fd94818b5452005fc
Merge: 781a200 279d537
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:04 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 26a1051d283675983107d2a8ff1f97866c18ca6b
Merge: d0f49d0 3278e7a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:03 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit 3278e7af227fa83b0797b7e200883aafd8699449
Merge: 229a250 e3da84c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:03 2012 +0200

    Merge branch 'pathvec0' into pathvec0-1

commit e3da84c2bc613e010aec6d05414ebe8852138662
Merge: 7f155a5 93cd719
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:03 2012 +0200

    Merge remote-tracking branch 'gdb/master' into pathvec0

commit 279d5376e017e748d755de0e54630e8537ff90c3
Merge: 8f92e44 f9634df
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:03 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit f9634df9934c30a9e18af2ae6c44f360b8986e34
Merge: 99d9bf8 26a1051
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:54:03 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit 99d9bf8fd746f55b8402d6729fd8703edb82d3f8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:53:08 2012 +0200

    .

commit 5fed569df2de6cc03d61a3b0e2a9421bd49ce733
Merge: 84faf62 47f8959
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:49:33 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 47f89590ce20f05cba1b3d1f91cfa5c813d31979
Merge: 447a144 781a200
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:49:32 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 781a2000f1367604d952ff68b2fed66a17de67e0
Merge: 1af97f2 8f92e44
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:49:32 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 8f92e44e60232d73f8750525b48b9ffb1fd15907
Merge: 505d064 946573e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:49:32 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 946573e90b0fc212e468dcf45297664608f4de5b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:49:27 2012 +0200

    .

commit 1af97f2b87dc95c747e4a6df0ee0a70353021926
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:48:32 2012 +0200

    .

commit 505d064e20383884ae97e5c3740c965f8bf81264
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:48:01 2012 +0200

    .

commit e82735812ea8c0c3bc36740885d03f0412b080b2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 18:46:37 2012 +0200

    .

commit 93cd7197cbfc7ca9ab6bfba32e737caf4c1ddbdd
Author: Tristan Gingold <gingold@adacore.com>
Date:   Mon Apr 2 13:48:48 2012 +0000

    2012-04-02  Tristan Gingold  <gingold@adacore.com>
    
    	* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
    	the STATE32 api for i386 state.
    	(i386_darwin_store_inferior_registers): Likewise.

commit 6a7b3ca186918388c00b959bc5682f6fd12411c4
Author: Tristan Gingold <gingold@adacore.com>
Date:   Mon Apr 2 13:15:46 2012 +0000

    2012-04-02  Tristan Gingold  <gingold@adacore.com>
    
    	* i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
    	SS offset.
    	* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
    	format_string.

commit 48bd1722d3680f86fe861118aa54ef03c527e745
Author: Tristan Gingold <gingold@adacore.com>
Date:   Mon Apr 2 11:57:28 2012 +0000

    2012-04-02  Tristan Gingold  <gingold@adacore.com>
    
    	PR gdb/13901
    	* darwin-nat.c (darwin_execvp): Sey binary preference.

commit 676678c17423c96eb7ffe2f59410ee1c6a5d5dab
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:45:38 2012 +0200

    .

commit 84faf620374b1352550a9d692d9bdf6ef734ef10
Merge: cdee201 447a144
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:43:23 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 447a144fef1d91c0b503ca2c02c848877b9b252b
Merge: 0fe2b32 f224e13
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:43:23 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit f224e13f2a2f039eccf48ee61979654b60012117
Merge: 19d0588 13d17bb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:43:22 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 13d17bbf2f107e0cc53b87152303ce72a469d04a
Merge: 2826858 c96ca63
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:43:22 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit c96ca63458945f4e9f30cf711f41a5a461e7d72a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:43:16 2012 +0200

    .

commit 5cab1817f60351789dd78d051ad7c23839aab376
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 07:32:29 2012 +0000

    gdb/
    	* NEWS (set breakpoint condition-evaluation): Use imperative mood.

commit cdee20143a5368b158e15685080251b76cc6f93b
Merge: 9f12720 0fe2b32
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:22:48 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 0fe2b322df8c0b4e7905f9517a9ace2e91b5ffcb
Merge: f25aa65 19d0588
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:21:58 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 19d0588b6bd7d0b023d1c1eea7c4a39602e295f9
Merge: 1164104 2826858
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:21:22 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 28268588eedea50641264c8acff86de28e51b0b4
Merge: e07852a 72365d2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:21:14 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 72365d2857ecf861bc6f0ac9777d6eeb28f33359
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Apr 2 09:19:15 2012 +0200

    .

commit 21c89a44d67e49062aced27d29370981f922ebbb
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Mon Apr 2 05:21:59 2012 +0000

    sim: fix spelling typo

commit 5c3c12506e885797b4b8ad3f661f396b1a3dd6ac
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Mon Apr 2 00:00:33 2012 +0000

    *** empty log message ***

commit 7a1bed16627dc124130fc8fae44892e70373e04d
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Apr 2 00:00:05 2012 +0000

    daily update

commit 893093a04491e1f6d34985f72d11b5956467a06c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:42:18 2012 +0200

    .

commit 9f12720e8a5fd4b0f6bea00925a5f41928120b5e
Merge: 743999a f25aa65
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:38:29 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit f25aa651cffcb9e38b2b690cba1f185e85d17d78
Merge: ce1d2ec 1164104
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:38:29 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 11641048d4ced282f0c12ff9f35a4080908025ed
Merge: 822e771 e07852a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:38:29 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit e07852a273dbee73e95518f30d9ac9a8a832bf6a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:38:22 2012 +0200

    .

commit 743999a43dc841ebfabe6b24d1aafeff2c4beb94
Merge: 8721c4e ce1d2ec
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:37:21 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit ce1d2ecc147f27e956a819288c1b49d30761a4c7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:37:16 2012 +0200

    .

commit 8af5a02c1286fb341d0f29c6b804f56a030d5705
Merge: cb3c5bf 822e771
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:37:02 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 822e77172ffe9547f566a060896f489785476d4b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:36:54 2012 +0200

    .

commit 44c9fbf05caeabfc2baf75d2b675bd274dd996b1
Merge: 4acb746 8cd6334
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:36:32 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 8cd63340fccaa243d78cb6f493e968fe319cf3e3
Merge: 0b3aa46 ded0854
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:36:16 2012 +0200

    .

commit ded0854194e0019fec0e297089a75a3d722c7289
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:35:17 2012 +0200

    .

commit d8cd64f0271a3678c04f53b05aff3410a43fe99a
Merge: 6163e53 d0f49d0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:33:52 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit d0f49d0a46f566a493b344c8106539bdc306fc58
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:33:44 2012 +0200

    .

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

Summary of changes:
 bfd/ChangeLog                           |   24 +++
 bfd/Makefile.am                         |    4 +
 bfd/Makefile.in                         |    5 +
 bfd/configure                           |   30 ++--
 bfd/configure.in                        |   30 ++--
 bfd/elf-nacl.c                          |  205 +++++++++++++++++++++++++
 bfd/elf-nacl.h                          |   24 +++
 bfd/elf32-i386.c                        |   10 ++
 bfd/elf64-x86-64.c                      |   14 ++-
 bfd/version.h                           |    2 +-
 gdb/ChangeLog                           |   30 ++++
 gdb/Makefile.in                         |    2 +-
 gdb/NEWS                                |    1 +
 gdb/auto-load.c                         |  170 ++++++++++++++++-----
 gdb/auto-load.h                         |    1 +
 gdb/configure                           |    4 +-
 gdb/configure.ac                        |    2 +-
 gdb/cp-valprint.c                       |   20 ++-
 gdb/darwin-nat.c                        |   17 ++
 gdb/doc/gdb.texinfo                     |  250 ++++++++++++++++++-------------
 gdb/{gdb-gdb.rc.in => gdb-gdb.gdb.in}   |    0
 gdb/i386-darwin-nat.c                   |   48 +++---
 gdb/i386-darwin-tdep.c                  |    2 +-
 gdb/linux-thread-db.c                   |    9 +-
 gdb/main.c                              |    6 +-
 gdb/python/py-auto-load.c               |    9 +-
 gdb/testsuite/ChangeLog                 |    9 +
 gdb/testsuite/gdb.trace/unavailable.exp |    8 +-
 gdb/valprint.c                          |   12 +--
 gdb/value.h                             |   14 ++
 gdb/version.in                          |    2 +-
 libiberty/ChangeLog                     |    9 +
 libiberty/cp-demangle.c                 |    5 +
 libiberty/stack-limit.c                 |    3 +-
 libiberty/testsuite/demangle-expected   |    6 +
 sim/common/ChangeLog                    |    4 +
 sim/common/hw-ports.c                   |    2 +-
 37 files changed, 752 insertions(+), 241 deletions(-)
 create mode 100644 bfd/elf-nacl.c
 create mode 100644 bfd/elf-nacl.h
 rename gdb/{gdb-gdb.rc.in => gdb-gdb.gdb.in} (100%)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 384235e..56a1121 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,27 @@
+2012-04-03  Roland McGrath  <mcgrathr@google.com>
+
+	* elf-nacl.c: New file.
+	* elf-nacl.h: New file.
+	* elf32-i386.c (elf_backend_modify_segment_map): Define for
+	bfd_elf32_i386_nacl_vec.
+	(elf_backend_modify_program_headers): Likewise.
+	* elf64-x86-64.c (elf_backend_modify_segment_map): Define for
+	bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
+	(elf_backend_modify_program_headers): Likewise.
+	* Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
+	(BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
+	* Makefile.in: Regenerated.
+	* configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
+	(bfd_elf32_x86_64_nacl_vec): Likewise.
+	(bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
+	(bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
+	(bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
+	(bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
+	(bfd_elf32_i386_nacl_vec): Likewise.
+	(bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
+	(bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
+	* configure: Regenerated.
+
 2012-03-31  Andreas Schwab  <schwab@linux-m68k.org>
 
 	* elf32-m68k.c (elf_m68k_relocate_section): Allow
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 8f4fbee..50c84ee 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -275,6 +275,7 @@ BFD32_BACKENDS = \
 	elf-ifunc.lo \
 	elf-m10200.lo \
 	elf-m10300.lo \
+	elf-nacl.lo \
 	elf-strtab.lo \
 	elf-vxworks.lo \
 	elf.lo \
@@ -461,6 +462,7 @@ BFD32_BACKENDS_CFILES = \
 	elf-ifunc.c \
 	elf-m10200.c \
 	elf-m10300.c \
+	elf-nacl.c \
 	elf-strtab.c \
 	elf-vxworks.c \
 	elf.c \
@@ -609,6 +611,7 @@ BFD64_BACKENDS = \
 	coff-x86_64.lo \
 	coff64-rs6000.lo \
 	demo64.lo \
+	elf-nacl.lo \
 	elf32-ia64.lo \
 	elf32-score.lo \
 	elf32-score7.lo \
@@ -645,6 +648,7 @@ BFD64_BACKENDS_CFILES = \
 	coff-x86_64.c \
 	coff64-rs6000.c \
 	demo64.c \
+	elf-nacl.c \
 	elf32-score.c \
 	elf32-score7.c \
 	elf64-alpha.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 437bafc..cf7b380 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -575,6 +575,7 @@ BFD32_BACKENDS = \
 	elf-ifunc.lo \
 	elf-m10200.lo \
 	elf-m10300.lo \
+	elf-nacl.lo \
 	elf-strtab.lo \
 	elf-vxworks.lo \
 	elf.lo \
@@ -761,6 +762,7 @@ BFD32_BACKENDS_CFILES = \
 	elf-ifunc.c \
 	elf-m10200.c \
 	elf-m10300.c \
+	elf-nacl.c \
 	elf-strtab.c \
 	elf-vxworks.c \
 	elf.c \
@@ -910,6 +912,7 @@ BFD64_BACKENDS = \
 	coff-x86_64.lo \
 	coff64-rs6000.lo \
 	demo64.lo \
+	elf-nacl.lo \
 	elf32-ia64.lo \
 	elf32-score.lo \
 	elf32-score7.lo \
@@ -946,6 +949,7 @@ BFD64_BACKENDS_CFILES = \
 	coff-x86_64.c \
 	coff64-rs6000.c \
 	demo64.c \
+	elf-nacl.c \
 	elf32-score.c \
 	elf32-score7.c \
 	elf64-alpha.c \
@@ -1341,6 +1345,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf-ifunc.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf-m10200.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf-m10300.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf-nacl.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf-strtab.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf-vxworks.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf.Plo@am__quote@
diff --git a/bfd/configure b/bfd/configure
index 58a57ba..dd274bd 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -15225,11 +15225,11 @@ do
     bfd_elf32_hppa_nbsd_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
     bfd_elf32_hppa_vec)		tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
     bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_sol2_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_nacl_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_sol2_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_nacl_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
     bfd_elf32_i860_little_vec)	tb="$tb elf32-i860.lo elf32.lo $elf" ;;
     bfd_elf32_i860_vec)		tb="$tb elf32-i860.lo elf32.lo $elf" ;;
     bfd_elf32_i960_vec)		tb="$tb elf32-i960.lo elf32.lo $elf" ;;
@@ -15364,16 +15364,16 @@ do
 				tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
     bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec)
 				tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
-    bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_x86_64_sol2_vec)  tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf32_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
-    bfd_elf32_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
-    bfd_elf64_l1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_k1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_sol2_vec)  tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf32_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
+    bfd_elf32_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
+    bfd_elf64_l1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_k1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
     bfd_mmo_vec)		tb="$tb mmo.lo" target_size=64 ;;
     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
diff --git a/bfd/configure.in b/bfd/configure.in
index f443915..af3622b 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -711,11 +711,11 @@ do
     bfd_elf32_hppa_nbsd_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
     bfd_elf32_hppa_vec)		tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
     bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_sol2_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_nacl_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
-    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_sol2_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_nacl_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
+    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
     bfd_elf32_i860_little_vec)	tb="$tb elf32-i860.lo elf32.lo $elf" ;;
     bfd_elf32_i860_vec)		tb="$tb elf32-i860.lo elf32.lo $elf" ;;
     bfd_elf32_i960_vec)		tb="$tb elf32-i960.lo elf32.lo $elf" ;;
@@ -850,16 +850,16 @@ do
 				tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
     bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec)
 				tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
-    bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_x86_64_sol2_vec)  tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf32_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
-    bfd_elf32_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
-    bfd_elf64_l1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_k1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
-    bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_sol2_vec)  tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf32_x86_64_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
+    bfd_elf32_x86_64_nacl_vec)	tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
+    bfd_elf64_l1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_k1om_vec)		tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
+    bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
     bfd_mmo_vec)		tb="$tb mmo.lo" target_size=64 ;;
     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
diff --git a/bfd/elf-nacl.c b/bfd/elf-nacl.c
new file mode 100644
index 0000000..3ba7f55
--- /dev/null
+++ b/bfd/elf-nacl.c
@@ -0,0 +1,205 @@
+/* Native Client support for ELF
+   Copyright 2012 Free Software Foundation, Inc.
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   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 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA.  */
+
+#include "sysdep.h"
+#include "bfd.h"
+#include "elf-bfd.h"
+#include "elf-nacl.h"
+#include "elf/common.h"
+#include "elf/internal.h"
+
+static bfd_boolean
+segment_executable (struct elf_segment_map *seg)
+{
+  if (seg->p_flags_valid)
+    return (seg->p_flags & PF_X) != 0;
+  else
+    {
+      /* The p_flags value has not been computed yet,
+         so we have to look through the sections.  */
+      unsigned int i;
+      for (i = 0; i < seg->count; ++i)
+        if (seg->sections[i]->flags & SEC_CODE)
+          return TRUE;
+    }
+  return FALSE;
+}
+
+static bfd_boolean
+segment_nonexecutable_and_has_contents (struct elf_segment_map *seg)
+{
+  bfd_boolean any_contents = FALSE;
+  unsigned int i;
+  for (i = 0; i < seg->count; ++i)
+    {
+      if (seg->sections[i]->flags & SEC_CODE)
+        return FALSE;
+      if (seg->sections[i]->flags & SEC_HAS_CONTENTS)
+        any_contents = TRUE;
+    }
+  return any_contents;
+}
+
+
+/* We permute the segment_map to get BFD to do the file layout we want:
+   The first non-executable PT_LOAD segment appears first in the file
+   and contains the ELF file header and phdrs.  */
+bfd_boolean
+nacl_modify_segment_map (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED)
+{
+  struct elf_segment_map **m = &elf_tdata (abfd)->segment_map;
+  struct elf_segment_map **first_load = NULL;
+  struct elf_segment_map **last_load = NULL;
+  bfd_boolean moved_headers = FALSE;
+
+  while (*m != NULL)
+    {
+      struct elf_segment_map *seg = *m;
+
+      if (seg->p_type == PT_LOAD)
+        {
+          /* First, we're just finding the earliest PT_LOAD.
+             By the normal rules, this will be the lowest-addressed one.
+             We only have anything interesting to do if it's executable.  */
+          last_load = m;
+          if (first_load == NULL)
+            {
+              if (!segment_executable (*m))
+                return TRUE;
+              first_load = m;
+            }
+          /* Now that we've noted the first PT_LOAD, we're looking for
+             the first non-executable PT_LOAD with a nonempty p_filesz.  */
+          else if (!moved_headers
+                   && segment_nonexecutable_and_has_contents (seg))
+            {
+              /* This is the one we were looking for!
+
+                 First, clear the flags on previous segments that
+                 say they include the file header and phdrs.  */
+              struct elf_segment_map *prevseg;
+              for (prevseg = *first_load;
+                   prevseg != seg;
+                   prevseg = prevseg->next)
+                if (prevseg->p_type == PT_LOAD)
+                  {
+                    prevseg->includes_filehdr = 0;
+                    prevseg->includes_phdrs = 0;
+                  }
+
+              /* This segment will include those headers instead.  */
+              seg->includes_filehdr = 1;
+              seg->includes_phdrs = 1;
+
+              moved_headers = TRUE;
+            }
+        }
+
+      m = &seg->next;
+    }
+
+  if (first_load != last_load && moved_headers)
+    {
+      /* Now swap the first and last PT_LOAD segments'
+         positions in segment_map.  */
+      struct elf_segment_map *first = *first_load;
+      struct elf_segment_map *last = *last_load;
+      *first_load = first->next;
+      first->next = last->next;
+      last->next = first;
+    }
+
+  return TRUE;
+}
+
+/* After nacl_modify_segment_map has done its work, the file layout has
+   been done as we wanted.  But the PT_LOAD phdrs are no longer in the
+   proper order for the ELF rule that they must appear in ascending address
+   order.  So find the two segments we swapped before, and swap them back.  */
+bfd_boolean
+nacl_modify_program_headers (bfd *abfd,
+                             struct bfd_link_info *info ATTRIBUTE_UNUSED)
+{
+  struct elf_segment_map **m = &elf_tdata (abfd)->segment_map;
+  Elf_Internal_Phdr *phdr = elf_tdata (abfd)->phdr;
+  Elf_Internal_Phdr *p = phdr;
+
+  /* Find the PT_LOAD that contains the headers (should be the first).  */
+  while (*m != NULL)
+    {
+      if ((*m)->p_type == PT_LOAD && (*m)->includes_filehdr)
+        break;
+
+      m = &(*m)->next;
+      ++p;
+    }
+
+  if (*m != NULL)
+    {
+      struct elf_segment_map **first_load_seg = m;
+      Elf_Internal_Phdr *first_load_phdr = p;
+      struct elf_segment_map **next_load_seg = NULL;
+      Elf_Internal_Phdr *next_load_phdr = NULL;
+
+      /* Now move past that first one and find the PT_LOAD that should be
+         before it by address order.  */
+
+      m = &(*m)->next;
+      ++p;
+
+      while ((*m) != NULL)
+        {
+          if (p->p_type == PT_LOAD && p->p_vaddr < first_load_phdr->p_vaddr)
+            {
+              next_load_seg = m;
+              next_load_phdr = p;
+              break;
+            }
+
+          m = &(*m)->next;
+          ++p;
+        }
+
+      /* Swap their positions in the segment_map back to how they used to be.
+         The phdrs have already been set up by now, so we have to slide up
+         the earlier ones to insert the one that should be first.  */
+      if (next_load_seg != NULL)
+        {
+          Elf_Internal_Phdr move_phdr;
+          struct elf_segment_map *first_seg = *first_load_seg;
+          struct elf_segment_map *next_seg = *next_load_seg;
+          struct elf_segment_map *first_next = first_seg->next;
+          struct elf_segment_map *next_next = next_seg->next;
+
+          first_seg->next = next_next;
+          *first_load_seg = next_seg;
+
+          next_seg->next = first_next;
+          *next_load_seg = first_seg;
+
+          move_phdr = *next_load_phdr;
+          memmove (first_load_phdr + 1, first_load_phdr,
+                   (next_load_phdr - first_load_phdr) * sizeof move_phdr);
+          *first_load_phdr = move_phdr;
+        }
+    }
+
+  return TRUE;
+}
diff --git a/bfd/elf-nacl.h b/bfd/elf-nacl.h
new file mode 100644
index 0000000..417c7e3
--- /dev/null
+++ b/bfd/elf-nacl.h
@@ -0,0 +1,24 @@
+/* Native Client support for ELF
+   Copyright 2012 Free Software Foundation, Inc.
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   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 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA.  */
+
+#include "bfd.h"
+
+bfd_boolean nacl_modify_segment_map (bfd *, struct bfd_link_info *);
+bfd_boolean nacl_modify_program_headers (bfd *, struct bfd_link_info *);
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index f35e3c2..d5a2614 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -25,6 +25,7 @@
 #include "bfdlink.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
+#include "elf-nacl.h"
 #include "elf-vxworks.h"
 #include "bfd_stdint.h"
 #include "objalloc.h"
@@ -5207,8 +5208,17 @@ static const struct elf_i386_backend_data elf_i386_nacl_arch_bed =
 #undef	elf_backend_arch_data
 #define elf_backend_arch_data	&elf_i386_nacl_arch_bed
 
+#undef	elf_backend_modify_segment_map
+#define	elf_backend_modify_segment_map		nacl_modify_segment_map
+#undef	elf_backend_modify_program_headers
+#define	elf_backend_modify_program_headers	nacl_modify_program_headers
+
 #include "elf32-target.h"
 
+/* Restore defaults.  */
+#undef	elf_backend_modify_segment_map
+#undef	elf_backend_modify_program_headers
+
 /* VxWorks support.  */
 
 #undef	TARGET_LITTLE_SYM
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index cc5ee42..8ca811c 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -26,6 +26,7 @@
 #include "bfdlink.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
+#include "elf-nacl.h"
 #include "bfd_stdint.h"
 #include "objalloc.h"
 #include "hashtab.h"
@@ -5227,6 +5228,11 @@ static const struct elf_x86_64_backend_data elf_x86_64_nacl_arch_bed =
 #undef	elf_backend_arch_data
 #define	elf_backend_arch_data	&elf_x86_64_nacl_arch_bed
 
+#undef	elf_backend_modify_segment_map
+#define	elf_backend_modify_segment_map		nacl_modify_segment_map
+#undef	elf_backend_modify_program_headers
+#define	elf_backend_modify_program_headers	nacl_modify_program_headers
+


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-01 18:29 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-01 18:29 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  8721c4e585ce434a9b997a12b1c9e7f9bcac8b46 (commit)
       via  cb3c5bf2faee39ee8be0dcf24e1587b92d129cf3 (commit)
       via  4acb7463bdb777a3b3bad9d252a2270bdde7942d (commit)
       via  0b3aa46ba11242be50f98304b727b1332312fc31 (commit)
       via  6163e538847d6da7321a979fee6f1f8c8e7baf5d (commit)
       via  c3c5377039ddd1e7466944b4249ba7e128e16201 (commit)
       via  229a25076d462fed7b4962c694e7242353fe7a7d (commit)
      from  b96e63263edb4c794d02fd71c0de36c2a0f76047 (commit)

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

- Log -----------------------------------------------------------------
commit 8721c4e585ce434a9b997a12b1c9e7f9bcac8b46
Merge: b96e632 cb3c5bf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:29:09 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit cb3c5bf2faee39ee8be0dcf24e1587b92d129cf3
Merge: bf11712 4acb746
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:29:09 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 4acb7463bdb777a3b3bad9d252a2270bdde7942d
Merge: d355e31 0b3aa46
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:29:09 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 0b3aa46ba11242be50f98304b727b1332312fc31
Merge: 6913ca7 6163e53
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:29:08 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 6163e538847d6da7321a979fee6f1f8c8e7baf5d
Merge: 1484000 c3c5377
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:29:08 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit c3c5377039ddd1e7466944b4249ba7e128e16201
Merge: 34b7c42 229a250
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:29:08 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit 229a25076d462fed7b4962c694e7242353fe7a7d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 20:29:06 2012 +0200

    .

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

Summary of changes:
 gdb/source.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/source.c b/gdb/source.c
index 18eeeac..16d0665 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -679,8 +679,6 @@ openp (const char *path, int opts, const char *string,
 {
   int fd;
   char *filename;
-  const char *p;
-  const char *p1;
   int alloclen;
   VEC (char_ptr) *dir_vec;
   struct cleanup *back_to;


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-01 17:49 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-01 17:49 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  b96e63263edb4c794d02fd71c0de36c2a0f76047 (commit)
       via  bf117124f0b9cb7e2430d2855e5ca6e8c5850eab (commit)
       via  d355e31c94b73d0f01670b87443255ab233f317d (commit)
       via  6913ca746004ee3e52b32cb031398f71497aafd7 (commit)
       via  14840002eace6494b0ffa205ac62298501796c32 (commit)
       via  34b7c4266c1e6df07354ae90137627ca7072e8a6 (commit)
       via  bcfde9ae58fd41b5a54e152ef99bad03df8ab7df (commit)
      from  26a33de9965b3fa3b16c6a5fdec1ea5b9538504e (commit)

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

- Log -----------------------------------------------------------------
commit b96e63263edb4c794d02fd71c0de36c2a0f76047
Merge: 26a33de bf11712
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:49:21 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit bf117124f0b9cb7e2430d2855e5ca6e8c5850eab
Merge: 812b235 d355e31
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:49:20 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit d355e31c94b73d0f01670b87443255ab233f317d
Merge: 5c5ddb8 6913ca7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:49:20 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit 6913ca746004ee3e52b32cb031398f71497aafd7
Merge: 5c19b68 1484000
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:49:20 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 14840002eace6494b0ffa205ac62298501796c32
Merge: 1fd4e10 34b7c42
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:49:20 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit 34b7c4266c1e6df07354ae90137627ca7072e8a6
Merge: 92409a4 bcfde9a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:49:20 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit bcfde9ae58fd41b5a54e152ef99bad03df8ab7df
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:49:15 2012 +0200

    .

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

Summary of changes:
 gdb/progspace.c |    2 ++
 gdb/utils.c     |    9 +++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/progspace.c b/gdb/progspace.c
index d285e67..1065c27 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -510,7 +510,9 @@ void
 clear_program_space_solib_cache (struct program_space *pspace)
 {
   VEC_free (so_list_ptr, pspace->added_solibs);
+
   free_char_ptr_vec (pspace->deleted_solibs);
+  pspace->deleted_solibs = NULL;
 }
 
 \f
diff --git a/gdb/utils.c b/gdb/utils.c
index 5255089..104c5aa 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -3805,9 +3805,9 @@ producer_is_gcc_ge_4 (const char *producer)
 /* Call xfree for each element of CHAR_PTR_VEC and final VEC_free for
    CHAR_PTR_VEC itself.
 
-   You must not modify CHAR_PTR_VEC after it got registered with this
-   function by make_cleanup as the CHAR_PTR_VEC base address may change
-   on its updates.  */
+   You must not modify CHAR_PTR_VEC after it got registered with this function
+   by make_cleanup as the CHAR_PTR_VEC base address may change on its updates.
+   Contrary to VEC_free this function does not (cannot) clear the pointer.  */
 
 void
 free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec)
@@ -3834,7 +3834,8 @@ do_free_char_ptr_vec (void *arg)
    final VEC_free for CHAR_PTR_VEC itself.
 
    You must not modify CHAR_PTR_VEC after this cleanup registration as the
-   CHAR_PTR_VEC base address may change on its updates.  */
+   CHAR_PTR_VEC base address may change on its updates.  Contrary to VEC_free
+   this function does not (cannot) clear the pointer.  */
 
 struct cleanup *
 make_cleanup_free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec)


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SCM]  archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
@ 2012-04-01 17:33 jkratoch
  0 siblings, 0 replies; 8+ messages in thread
From: jkratoch @ 2012-04-01 17:33 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-autoload has been updated
       via  26a33de9965b3fa3b16c6a5fdec1ea5b9538504e (commit)
       via  812b235c4fe7e8622133512579101360c92431cd (commit)
       via  5c5ddb886084a0819fca98dafdc614deb19abc79 (commit)
       via  5c19b68b73204aa0fc4bbea8bf70c634d81809d6 (commit)
       via  635cd635f149db7e5ec3317bdd31a8946312deb3 (commit)
       via  1fd4e10d16209f6ee1c5931c45ba2d2c0c15fdce (commit)
       via  92409a40d35834019933b91fd39ba342e6f7b8eb (commit)
       via  db64de4785a5633f587fed8461359cf5a84fa354 (commit)
       via  1bfa2e98d3f389d56e91086ee751f40ad20be7bd (commit)
       via  42a5701801d936963e2dc8601f6263a8a8a893af (commit)
       via  102cfbff26eeb580ec0eb6f3b9dd90b70dd712c4 (commit)
       via  e3df13cdd6d84f7858e6594e5b8b146ab1568430 (commit)
       via  cad742c703445fdd7782f077f72e6dd6c121b2d4 (commit)
       via  998f66804450c2f270ab500612d78e979f096763 (commit)
       via  69d759bfd1cb3f97c5fa9a85d041f0baa0a0875b (commit)
       via  2b6491ab2361656dac2923679dbac83d6c51cbf7 (commit)
       via  7f155a5f25558de0a62eccdca0e4c00fe7c80bc0 (commit)
       via  8833a6a5a2827ef4424ca1beeec744c27df7d54d (commit)
       via  8c9a1670230749d3f3de5d9e2c56fcbea0306a16 (commit)
       via  4726e97059187f1a29000918284d067b17de3cfe (commit)
       via  b82cb396626f6a6c6c7d6a13a0419807da20bbc6 (commit)
       via  9beada4963b071b828a2fb54e41624289cf1e528 (commit)
       via  9d67e99b3b60e9dbdfc317d98863f385c96b8125 (commit)
       via  5ed8a0d1b31edc7d398a71eb0d2ec59897517b7a (commit)
       via  5841f3b2c5eddc10f6a3a1f07a082bf9daea9427 (commit)
       via  34b1f2f971ac17cc3d0b812c8c0017f8696030cb (commit)
       via  a6d3df81c4092878447204579025691aceec9682 (commit)
       via  3167997c2432e8ae4e21f1649bb968ad1c8c853c (commit)
       via  9a02193c10925ff26b4d2ce9f1326e098bb0ae62 (commit)
       via  7a63e9515491f21eaf07301df87d389def20e317 (commit)
       via  8f7c38639511cc0ec0314bbf6d14efaf2ad0bd85 (commit)
       via  bda1bace013cacd05e6c9b6ea5e9a097ec6c1d76 (commit)
       via  64119b65954deb48aabb006a63b2a07b8bad56d4 (commit)
       via  05e84e746af0ab4caabcf2dce10238eca015d6bc (commit)
       via  7ea6ee4a9b3cb896cbf718cb2b8c0f498b8d5801 (commit)
       via  279477758ac575031068f20b1c0938f23cd73cfd (commit)
       via  1f77461ac7709d026de460dc0ab0d2910c90eed3 (commit)
       via  aa4149e524e3107bb10fdc62d433aec5914ca581 (commit)
       via  e9dfdcd982542382219633d65c35e18957313cd1 (commit)
      from  3ddade37ad5dd06bba888c17af42570c1c4236b6 (commit)

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

- Log -----------------------------------------------------------------
commit 26a33de9965b3fa3b16c6a5fdec1ea5b9538504e
Merge: 1bfa2e9 812b235
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:32:56 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 812b235c4fe7e8622133512579101360c92431cd
Merge: 42a5701 5c5ddb8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:32:56 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 5c5ddb886084a0819fca98dafdc614deb19abc79
Merge: 102cfbf 5c19b68
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:32:52 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug
    
    Conflicts:
    	gdb/auto-load.c

commit 5c19b68b73204aa0fc4bbea8bf70c634d81809d6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:32:06 2012 +0200

    .

commit 635cd635f149db7e5ec3317bdd31a8946312deb3
Merge: e3df13c 1fd4e10
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:26:42 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit 1fd4e10d16209f6ee1c5931c45ba2d2c0c15fdce
Merge: cad742c 92409a4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:26:41 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit 92409a40d35834019933b91fd39ba342e6f7b8eb
Merge: 998f668 db64de4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:26:41 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit db64de4785a5633f587fed8461359cf5a84fa354
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:26:35 2012 +0200

    .

commit 1bfa2e98d3f389d56e91086ee751f40ad20be7bd
Merge: 8c9a167 42a5701
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:16:38 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 42a5701801d936963e2dc8601f6263a8a8a893af
Merge: 4726e97 102cfbf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:16:19 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath-debug' into pathvec0-1-secmove-misc2-safepath-debug-warn

commit 102cfbff26eeb580ec0eb6f3b9dd90b70dd712c4
Merge: b82cb39 e3df13c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:16:18 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2-safepath' into pathvec0-1-secmove-misc2-safepath-debug

commit e3df13cdd6d84f7858e6594e5b8b146ab1568430
Merge: 9beada4 cad742c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:16:18 2012 +0200

    Merge branch 'pathvec0-1-secmove-misc2' into pathvec0-1-secmove-misc2-safepath

commit cad742c703445fdd7782f077f72e6dd6c121b2d4
Merge: 9d67e99 998f668
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:16:18 2012 +0200

    Merge branch 'pathvec0-1-secmove' into pathvec0-1-secmove-misc2

commit 998f66804450c2f270ab500612d78e979f096763
Merge: 5ed8a0d 69d759b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:16:18 2012 +0200

    Merge branch 'pathvec0-1' into pathvec0-1-secmove

commit 69d759bfd1cb3f97c5fa9a85d041f0baa0a0875b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:12:32 2012 +0200

    .

commit 2b6491ab2361656dac2923679dbac83d6c51cbf7
Merge: 8833a6a 7f155a5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:09:11 2012 +0200

    Merge branch 'pathvec0' into pathvec0-1

commit 7f155a5f25558de0a62eccdca0e4c00fe7c80bc0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:08:58 2012 +0200

    .

commit 8833a6a5a2827ef4424ca1beeec744c27df7d54d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 19:07:10 2012 +0200

    .

commit 8c9a1670230749d3f3de5d9e2c56fcbea0306a16
Merge: 3ddade3 4726e97
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 17:11:27 2012 +0200

    Merge branch 'secmove-misc2-safepath-debug-warn' into secmove-misc2-safepath-debug-warn-warnlocal

commit 4726e97059187f1a29000918284d067b17de3cfe
Merge: 4099a52 b82cb39
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 17:11:26 2012 +0200

    Merge branch 'secmove-misc2-safepath-debug' into secmove-misc2-safepath-debug-warn

commit b82cb396626f6a6c6c7d6a13a0419807da20bbc6
Merge: c523676 9beada4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 17:11:26 2012 +0200

    Merge branch 'secmove-misc2-safepath' into secmove-misc2-safepath-debug

commit 9beada4963b071b828a2fb54e41624289cf1e528
Merge: 2c3cee0 9d67e99
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 17:11:26 2012 +0200

    Merge branch 'secmove-misc2' into secmove-misc2-safepath

commit 9d67e99b3b60e9dbdfc317d98863f385c96b8125
Merge: c7441fb 5ed8a0d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 17:11:26 2012 +0200

    Merge branch 'secmove' into secmove-misc2

commit 5ed8a0d1b31edc7d398a71eb0d2ec59897517b7a
Merge: 003cb48 5841f3b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 1 17:11:25 2012 +0200

    Merge remote-tracking branch 'gdb/master' into secmove

commit 5841f3b2c5eddc10f6a3a1f07a082bf9daea9427
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Apr 1 04:31:46 2012 +0000

    sim: bfin: throw VEC_ILGAL_I with 32bit insn in group1/group2 slots
    
    Parallel insns can only do one 32bit, then two 16bits.  So if we see
    a 2nd 32bit insn after the first 32bit in a parallel insn, abort.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 34b1f2f971ac17cc3d0b812c8c0017f8696030cb
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Apr 1 04:23:40 2012 +0000

    sim: bfin: simplify field width processing and fix build warnings
    
    This fix the build time warning:
    warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit a6d3df81c4092878447204579025691aceec9682
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Apr 1 04:21:03 2012 +0000

    sim: bfin: fix unused bfrom handling for BF535
    
    machs.c: In function 'bfin_model_cpu_init':
    machs.c:1657:1: warning: 'bfrom' may be used uninitialized
    	in this function [-Wuninitialized]
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 3167997c2432e8ae4e21f1649bb968ad1c8c853c
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Apr 1 04:15:30 2012 +0000

    opcodes: bfin: simplify field width processing and fix build warnings
    
    This fix the build time warning:
    warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 9a02193c10925ff26b4d2ce9f1326e098bb0ae62
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Apr 1 02:39:11 2012 +0000

    sim: bfin: fix build warning/style with auxvt_size
    
    Fix warning about mixing decls and code by moving auxvt_size decl
    down to the scope where it is used.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 7a63e9515491f21eaf07301df87d389def20e317
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sun Apr 1 00:00:35 2012 +0000

    daily update

commit 8f7c38639511cc0ec0314bbf6d14efaf2ad0bd85
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sun Apr 1 00:00:33 2012 +0000

    *** empty log message ***

commit bda1bace013cacd05e6c9b6ea5e9a097ec6c1d76
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sat Mar 31 18:48:20 2012 +0000

    sim: bfin: fix typo in BF54x SIC init
    
    The current code triggers a warning:
    dv-bfin_sic.c: In function 'bfin_sic_finish':
    dv-bfin_sic.c:930:41: warning: operation on 'sic-><U78e8>.bf54x.iwr1'
    	may be undefined [-Wsequence-point]
    
    This points out the IWR2 register was not being setup because of a typo.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 64119b65954deb48aabb006a63b2a07b8bad56d4
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sat Mar 31 18:44:43 2012 +0000

    sim: bfin: include devices.h to fix build warnings
    
    The place where these funcs get defined do not include the header that
    declares their prototypes.  Add that to fix -Wmissing-prototypes:
    
    devices.c:59:1: warning: no previous prototype for 'dv_bfin_mmr_invalid'
    devices.c:66:1: warning: no previous prototype for 'dv_bfin_mmr_require'
    devices.c:99:1: warning: no previous prototype for 'dv_bfin_mmr_check'
    devices.c:159:14: warning: no previous prototype for 'dv_get_bus_num'
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 05e84e746af0ab4caabcf2dce10238eca015d6bc
Author: Andreas Schwab <schwab@suse.de>
Date:   Sat Mar 31 14:27:31 2012 +0000

    * elf32-m68k.c (elf_m68k_relocate_section): Allow
    R_68K_TLS_LE{8,16,32} for PIE.

commit 7ea6ee4a9b3cb896cbf718cb2b8c0f498b8d5801
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Mar 31 00:00:33 2012 +0000

    *** empty log message ***

commit 279477758ac575031068f20b1c0938f23cd73cfd
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Mar 30 23:00:08 2012 +0000

    daily update

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

Summary of changes:
 bfd/ChangeLog                       |    5 +
 bfd/elf32-m68k.c                    |    2 +-
 bfd/version.h                       |    2 +-
 gdb/ChangeLog                       |    7 ++
 gdb/auto-load.c                     |   30 +++----
 gdb/charset.c                       |    7 +-
 gdb/elfread.c                       |   27 +++---
 gdb/gdb_vecs.h                      |   12 +++
 gdb/gdbserver/ChangeLog             |    9 ++
 gdb/gdbserver/config.in             |    6 +
 gdb/gdbserver/configure             |   24 +++++
 gdb/gdbserver/configure.ac          |    4 +
 gdb/gdbserver/linux-low.c           |   30 ++++++
 gdb/progspace.c                     |    7 +-
 gdb/python/py-value.c               |    3 +-
 gdb/python/python.c                 |   29 ++++--
 gdb/source.c                        |  172 ++++++++++++++--------------------
 gdb/symfile.c                       |   28 ++----
 gdb/testsuite/ChangeLog             |    4 +
 gdb/testsuite/gdb.python/python.exp |    3 +
 gdb/utils.c                         |   88 ++++++++++++++++++
 gdb/version.in                      |    2 +-
 opcodes/ChangeLog                   |    5 +
 opcodes/bfin-dis.c                  |   11 +--
 sim/bfin/ChangeLog                  |   27 ++++++
 sim/bfin/bfin-sim.c                 |   14 +--
 sim/bfin/devices.c                  |    1 +
 sim/bfin/dv-bfin_sic.c              |    2 +-
 sim/bfin/interp.c                   |    4 +-
 sim/bfin/machs.c                    |    2 +-
 30 files changed, 368 insertions(+), 199 deletions(-)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8bd12f2..384235e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-31  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* elf32-m68k.c (elf_m68k_relocate_section): Allow
+	R_68K_TLS_LE{8,16,32} for PIE.
+
 2012-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
 	* elf64-s390.c: Fix several comments regarding PLT entry
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index 26cec39..91ae2df 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -3948,7 +3948,7 @@ elf_m68k_relocate_section (output_bfd, info, input_bfd, input_section,
 	case R_68K_TLS_LE32:
 	case R_68K_TLS_LE16:
 	case R_68K_TLS_LE8:
-	  if (info->shared)
+	  if (info->shared && !info->pie)
 	    {
 	      (*_bfd_error_handler)
 		(_("%B(%A+0x%lx): R_68K_TLS_LE32 relocation not permitted "
diff --git a/bfd/version.h b/bfd/version.h
index 3fecf92..8a2c17f 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120330
+#define BFD_VERSION_DATE 20120401
 #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/gdb/ChangeLog b/gdb/ChangeLog
index f6c7735..118401c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-30  Tom Tromey  <tromey@redhat.com>
+
+	* python/python.c (gdbpy_decode_line): Move cleanup creation out
+	of TRY_CATCH.  Fix error handling.
+	* python/py-value.c (convert_value_from_python): Move 'old'
+	declaration to innermost scope.
+
 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
 	    Andrey Smirnov  <andrew.smirnov@gmail.com>
 
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 8c9dc39..e963c15 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -143,7 +143,8 @@ static VEC (char_ptr) *auto_load_safe_path_vec;
 static void
 auto_load_safe_path_vec_update (void)
 {
-  char *safe_path, *filename_real = NULL, *dir;
+  char *dir;
+  VEC (char_ptr) *dir_vec = NULL;
   int ix;
 
   if (debug_auto_load)
@@ -151,33 +152,26 @@ auto_load_safe_path_vec_update (void)
 			_("auto-load: Updating directories of \"%s\".\n"),
 			auto_load_safe_path);
 
-  for (ix = 0; VEC_iterate (char_ptr, auto_load_safe_path_vec, ix, dir); ++ix)
-    xfree (dir);
-  VEC_free (char_ptr, auto_load_safe_path_vec);
-  auto_load_safe_path_vec = NULL;
+  free_char_ptr_vec (auto_load_safe_path_vec);
 
-  safe_path = alloca (strlen (auto_load_safe_path) + 1);
-  strcpy (safe_path, auto_load_safe_path);
+  auto_load_safe_path_vec = dirnames_to_char_ptr_vec (auto_load_safe_path);
 
-  do
+  /* Apply tilde_expand and gdb_realpath to each AUTO_LOAD_SAFE_PATH_VEC
+     element.  */
+  for (ix = 0; VEC_iterate (char_ptr, auto_load_safe_path_vec, ix, dir); ++ix)
     {
-      char *next_dir, *real_path;
+      char *expanded = tilde_expand (dir);
+      char *real_path = gdb_realpath (expanded);
 
-      next_dir = strchr (safe_path, DIRNAME_SEPARATOR);
-      if (next_dir != NULL)
-	*next_dir++ = 0;
-
-      real_path = gdb_realpath (tilde_expand (safe_path));
-      VEC_safe_push (char_ptr, auto_load_safe_path_vec, real_path);
+      xfree (dir);
+      xfree (expanded);
+      VEC_replace (char_ptr, auto_load_safe_path_vec, ix, real_path);
 
       if (debug_auto_load)
 	fprintf_unfiltered (gdb_stdlog,
 			    _("auto-load: Resolved directory \"%s\".\n"),
 			    real_path);
-
-      safe_path = next_dir;
     }
-  while (safe_path != NULL);
 }
 
 /* "set" command for the auto_load_safe_path configuration variable.  */
diff --git a/gdb/charset.c b/gdb/charset.c
index 4a209a5..89baf46 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -909,11 +909,8 @@ find_charset_names (void)
   if (fail)
     {
       /* Some error occurred, so drop the vector.  */
-      int ix;
-      char *elt;
-      for (ix = 0; VEC_iterate (char_ptr, charsets, ix, elt); ++ix)
-	xfree (elt);
-      VEC_truncate (char_ptr, charsets, 0);
+      free_char_ptr_vec (charsets);
+      charsets = NULL;
     }
   else
     VEC_safe_push (char_ptr, charsets, NULL);
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 9f8a7e8..117e674 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1123,6 +1123,9 @@ static char *
 build_id_to_debug_filename (struct build_id *build_id)
 {
   char *link, *debugdir, *retval = NULL;
+  VEC (char_ptr) *debugdir_vec;
+  struct cleanup *back_to;
+  int ix;
 
   /* DEBUG_FILE_DIRECTORY/.build-id/ab/cdef */
   link = alloca (strlen (debug_file_directory) + (sizeof "/.build-id/" - 1) + 1
@@ -1131,22 +1134,18 @@ build_id_to_debug_filename (struct build_id *build_id)
   /* Keep backward compatibility so that DEBUG_FILE_DIRECTORY being "" will
      cause "/.build-id/..." lookups.  */
 
-  debugdir = debug_file_directory;
-  do
+  debugdir_vec = dirnames_to_char_ptr_vec (debug_file_directory);
+  back_to = make_cleanup_free_char_ptr_vec (debugdir_vec);
+
+  for (ix = 0; VEC_iterate (char_ptr, debugdir_vec, ix, debugdir); ++ix)
     {
-      char *s, *debugdir_end;
+      size_t debugdir_len = strlen (debugdir);
       gdb_byte *data = build_id->data;
       size_t size = build_id->size;
+      char *s;
 
-      while (*debugdir == DIRNAME_SEPARATOR)
-	debugdir++;
-
-      debugdir_end = strchr (debugdir, DIRNAME_SEPARATOR);
-      if (debugdir_end == NULL)
-	debugdir_end = &debugdir[strlen (debugdir)];
-
-      memcpy (link, debugdir, debugdir_end - debugdir);
-      s = &link[debugdir_end - debugdir];
+      memcpy (link, debugdir, debugdir_len);
+      s = &link[debugdir_len];
       s += sprintf (s, "/.build-id/");
       if (size > 0)
 	{
@@ -1171,11 +1170,9 @@ build_id_to_debug_filename (struct build_id *build_id)
 
       if (retval != NULL)
 	break;
-
-      debugdir = debugdir_end;
     }
-  while (*debugdir != 0);
 
+  do_cleanups (back_to);
   return retval;
 }
 
diff --git a/gdb/gdb_vecs.h b/gdb/gdb_vecs.h
index 04bd711..b9e0b14 100644
--- a/gdb/gdb_vecs.h
+++ b/gdb/gdb_vecs.h
@@ -25,4 +25,16 @@
 
 DEF_VEC_P (char_ptr);
 
+/* From utils.c: */
+
+extern void free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec);
+
+extern struct cleanup *
+  make_cleanup_free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec);
+
+extern void dirnames_to_char_ptr_vec_append (VEC (char_ptr) **vecp,
+					     const char *dirnames);
+
+extern VEC (char_ptr) *dirnames_to_char_ptr_vec (const char *dirnames);
+
 #endif /* GDB_VECS_H */
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 63df5b0..cd53c66 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,12 @@
+2012-03-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
+
+	* configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
+	are available.
+	* linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
+	[HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
+	* config.in: Regenerate.
+	* configure: Likewise.
+
 2012-03-29  Pedro Alves  <palves@redhat.com>
 
 	* linux-low.c (regsets_store_inferior_registers) [__sparc__]:
diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in
index 1d61c13..912b6ae 100644
--- a/gdb/gdbserver/config.in
+++ b/gdb/gdbserver/config.in
@@ -49,6 +49,12 @@
 /* Define to 1 if you have the `dladdr' function. */
 #undef HAVE_DLADDR
 
+/* Define to 1 if the system has the type `Elf32_auxv_t'. */
+#undef HAVE_ELF32_AUXV_T
+
+/* Define to 1 if the system has the type `Elf64_auxv_t'. */
+#undef HAVE_ELF64_AUXV_T
+
 /* Define if <sys/procfs.h> has elf_fpregset_t. */
 #undef HAVE_ELF_FPREGSET_T
 
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 2b0aeb8..9a6f6df 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -4474,6 +4474,30 @@ _ACEOF
 fi
 
 
+ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
+
+"
+if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ELF32_AUXV_T 1
+_ACEOF
+
+
+fi
+ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
+
+"
+if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ELF64_AUXV_T 1
+_ACEOF
+
+
+fi
+
+
 
 
 # Check whether --with-pkgversion was given.
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index d2f22bd..9ac4232 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -168,6 +168,10 @@ AC_CHECK_TYPES(socklen_t, [], [],
 #include <sys/socket.h>
 ])
 
+AC_CHECK_TYPES([Elf32_auxv_t, Elf64_auxv_t], [], [],
+#include <elf.h>
+)
+
 ACX_PKGVERSION([GDB])
 ACX_BUGURL([http://www.gnu.org/software/gdb/bugs/])
 AC_DEFINE_UNQUOTED([PKGVERSION], ["$PKGVERSION"], [Additional package description])
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index ab87570..043451d 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -82,6 +82,36 @@
 #endif
 #endif
 
+#ifndef HAVE_ELF32_AUXV_T
+/* Copied from glibc's elf.h.  */
+typedef struct
+{
+  uint32_t a_type;		/* Entry type */
+  union
+    {
+      uint32_t a_val;		/* Integer value */
+      /* We use to have pointer elements added here.  We cannot do that,
+	 though, since it does not work when using 32-bit definitions
+	 on 64-bit platforms and vice versa.  */
+    } a_un;
+} Elf32_auxv_t;
+#endif
+
+#ifndef HAVE_ELF64_AUXV_T
+/* Copied from glibc's elf.h.  */
+typedef struct
+{
+  uint64_t a_type;		/* Entry type */
+  union
+    {
+      uint64_t a_val;		/* Integer value */
+      /* We use to have pointer elements added here.  We cannot do that,
+	 though, since it does not work when using 32-bit definitions
+	 on 64-bit platforms and vice versa.  */
+    } a_un;
+} Elf64_auxv_t;
+#endif
+
 /* ``all_threads'' is keyed by the LWP ID, which we use as the GDB protocol
    representation of the thread ID.
 
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 54531d9..d285e67 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -509,13 +509,8 @@ switch_to_program_space_and_thread (struct program_space *pspace)
 void
 clear_program_space_solib_cache (struct program_space *pspace)
 {
-  int ix;
-  char *name;
-
   VEC_free (so_list_ptr, pspace->added_solibs);
-  for (ix = 0; VEC_iterate (char_ptr, pspace->deleted_solibs, ix, name); ++ix)
-    xfree (name);
-  VEC_free (char_ptr, pspace->deleted_solibs);
+  free_char_ptr_vec (pspace->deleted_solibs);
 }
 
 \f
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c
index 58513d8..6f67bdb 100644
--- a/gdb/python/py-value.c
+++ b/gdb/python/py-value.c
@@ -1250,7 +1250,6 @@ struct value *
 convert_value_from_python (PyObject *obj)
 {
   struct value *value = NULL; /* -Wall */
-  struct cleanup *old;
   volatile struct gdb_exception except;
   int cmp;
 
@@ -1319,6 +1318,8 @@ convert_value_from_python (PyObject *obj)
 	  s = python_string_to_target_string (obj);
 	  if (s != NULL)
 	    {
+	      struct cleanup *old;
+
 	      old = make_cleanup (xfree, s);
 	      value = value_cstring (s, strlen (s), builtin_type_pychar);
 	      do_cleanups (old);
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 735d94d..938275a 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -503,7 +503,7 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
 						  appease gcc.  */
   struct symtab_and_line sal;
   const char *arg = NULL;
-  char *copy = NULL;
+  char *copy_to_free = NULL, *copy = NULL;
   struct cleanup *cleanups;
   PyObject *result = NULL;
   PyObject *return_result = NULL;
@@ -515,14 +515,14 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
 
   cleanups = make_cleanup (null_cleanup, NULL);
 
+  sals.sals = NULL;
   TRY_CATCH (except, RETURN_MASK_ALL)
     {
       if (arg)
 	{
 	  copy = xstrdup (arg);
-	  make_cleanup (xfree, copy);
+	  copy_to_free = copy;
 	  sals = decode_line_1 (&copy, 0, 0, 0);
-	  make_cleanup (xfree, sals.sals);
 	}
       else
 	{
@@ -532,6 +532,13 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
 	  sals.nelts = 1;
 	}
     }
+
+  if (sals.sals != NULL && sals.sals != &sal)
+    {
+      make_cleanup (xfree, copy_to_free);
+      make_cleanup (xfree, sals.sals);
+    }
+
   if (except.reason < 0)
     {
       do_cleanups (cleanups);
@@ -575,7 +582,16 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
     }
 
   if (copy && strlen (copy) > 0)
-    unparsed = PyString_FromString (copy);
+    {
+      unparsed = PyString_FromString (copy);
+      if (unparsed == NULL)
+	{
+	  Py_DECREF (result);
+	  Py_DECREF (return_result);
+	  return_result = NULL;
+	  goto error;
+	}
+    }
   else
     {
       unparsed = Py_None;
@@ -585,13 +601,10 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
   PyTuple_SetItem (return_result, 0, unparsed);
   PyTuple_SetItem (return_result, 1, result);
 
+ error:
   do_cleanups (cleanups);
 
   return return_result;
-
- error:
-  do_cleanups (cleanups);
-  return NULL;
 }
 
 /* Parse a string and evaluate it as an expression.  */
diff --git a/gdb/source.c b/gdb/source.c
index 97f5d46..18eeeac 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -440,62 +440,40 @@ add_path (char *dirname, char **which_path, int parse_separators)
 {
   char *old = *which_path;
   int prefix = 0;
-  char **argv = NULL;
-  char *arg;
-  int argv_index = 0;
+  VEC (char_ptr) *dir_vec = NULL;
+  struct cleanup *back_to;
+  int ix;
+  char *name;
 
   if (dirname == 0)
     return;
 
   if (parse_separators)
     {
+      char **argv, **argvp;
+
       /* This will properly parse the space and tab separators
-	 and any quotes that may exist.  DIRNAME_SEPARATOR will
-	 be dealt with later.  */
+	 and any quotes that may exist.  */
       argv = gdb_buildargv (dirname);
-      make_cleanup_freeargv (argv);
 
-      arg = argv[0];
+      for (argvp = argv; *argvp; argvp++)
+	dirnames_to_char_ptr_vec_append (&dir_vec, *argvp);
+
+      freeargv (argv);
     }
   else
-    {
-      arg = xstrdup (dirname);
-      make_cleanup (xfree, arg);
-    }
+    VEC_safe_push (char_ptr, dir_vec, xstrdup (dirname));
+  back_to = make_cleanup_free_char_ptr_vec (dir_vec);
 
-  do
+  for (ix = 0; VEC_iterate (char_ptr, dir_vec, ix, name); ++ix)
     {
-      char *name = arg;
       char *p;
       struct stat st;
 
-      {


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-04-05 21:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-05 18:35 [SCM] archer-jankratochvil-autoload: Merge branch 'pathvec0-1-secmove-misc2-safepath-debug-warn' into pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal jkratoch
  -- strict thread matches above, loose matches on Subject: below --
2012-04-05 21:35 jkratoch
2012-04-05 20:55 jkratoch
2012-04-04  6:42 jkratoch
2012-04-03 17:42 jkratoch
2012-04-01 18:29 jkratoch
2012-04-01 17:49 jkratoch
2012-04-01 17:33 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).