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

The branch, archer-jankratochvil-autoload has been updated
       via  0794ad2abda58f5e71641ca7b172134df295a4e9 (commit)
       via  7904b201e6ebb17eb9c4bde6a2ad6daf9b952cc8 (commit)
       via  fe59539054624aebfb8454631cf3079fc7eb85a1 (commit)
       via  7e1b018579b760ed5cc7f0bb6f20f757a9f0198c (commit)
       via  ce6790ed5a5666b224becd8e975bbd878d296e55 (commit)
      from  311969c984352ae38e3ff4d43492396015315e6a (commit)

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

- Log -----------------------------------------------------------------
commit 0794ad2abda58f5e71641ca7b172134df295a4e9
Merge: 311969c 7904b20
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 18:25:23 2012 +0100

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

commit 7904b201e6ebb17eb9c4bde6a2ad6daf9b952cc8
Merge: 6a1f184 fe59539
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 18:25:20 2012 +0100

    Merge branch 'secmove-misc2-warn-safepath' into secmove-misc2-warn-safepath-debug
    
    Conflicts:
    	gdb/NEWS

commit fe59539054624aebfb8454631cf3079fc7eb85a1
Merge: ec62212 7e1b018
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 18:24:27 2012 +0100

    Merge branch 'secmove-misc2-warn' into secmove-misc2-warn-safepath
    
    Conflicts:
    	gdb/NEWS

commit 7e1b018579b760ed5cc7f0bb6f20f757a9f0198c
Merge: 2099d43 ce6790e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 18:23:04 2012 +0100

    Merge branch 'secmove-misc2' into secmove-misc2-warn
    
    Conflicts:
    	gdb/NEWS

commit ce6790ed5a5666b224becd8e975bbd878d296e55
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 18:22:33 2012 +0100

    .

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

Summary of changes:
 gdb/NEWS |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

First 500 lines of diff:
diff --git a/gdb/NEWS b/gdb/NEWS
index be63083..2011901 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -87,11 +87,13 @@
   ** "info vtbl" can be used to show the virtual method tables for
      C++ and Java objects.
 
-  ** "info auto-load" shows the status of all kinds of auto-loaded scripts,
-     "info auto-load gdb-scripts", "info auto-load python-scripts",
-     "info auto-load local-gdbinit" and "info auto-load libthread-db" show
-     status of the specific kinds of auto-loaded scripts associated with
-     inferior.
+  ** "info auto-load" shows status of all kinds of auto-loaded files,
+     "info auto-load gdb-scripts" shows status of auto-loading GDB canned
+     sequences of commands files, "info auto-load python-scripts"
+     shows status of auto-loading Python script files,
+     "info auto-load local-gdbinit" shows status of loading init file
+     (.gdbinit) from current directory and "info auto-load libthread-db" shows
+     status of inferior specific thread debugging shared library loading.
 
   ** "info auto-load-scripts", "set auto-load-scripts on|off"
      and "show auto-load-scripts" commands have been deprecated, use their
@@ -119,20 +121,34 @@ show breakpoint condition-evaluation
   target.
 
 set auto-load off
+  Disable auto-loading globally.
+
 show auto-load
+  Show auto-loading setting of all kinds of auto-loaded files,
+
 set auto-load gdb-scripts on|off
 show auto-load gdb-scripts
+  Controls auto-loading of GDB canned sequences of commands files.
+
 set auto-load python-scripts on|off
 show auto-load python-scripts
+  Controls auto-loading of Python script files.
+
 set auto-load local-gdbinit on|off|warn-and-on|warn-and-off
 show auto-load local-gdbinit
+  Controls loading of init file (.gdbinit) from current directory.
+
 set auto-load libthread-db on|off
 show auto-load libthread-db
+  Controls auto-loading of inferior specific thread debugging shared library.
+
 set auto-load safe-path <dir1>[:<dir2>...]
 show auto-load safe-path
+  Sets a list of directories safe to hold auto-loaded files.
+
 set debug auto-load on|off
 show debug auto-load
-  Controls auto-loading of various kinds of scripts associated with inferior.
+  Control display of debugging info for auto-loading the files above.
 
 * New remote packets
 


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  ace34d24e7befc46b62e96936b451d44c23e9fe4 (commit)
       via  3d9577f0f9e9bc375a99d0c99a334b4cde8cbfa1 (commit)
       via  be6511a2d98693ac2fd8b0dd83f596e160103c40 (commit)
       via  a6763cba77d7e1e894ac08039573b7ae716eec70 (commit)
       via  d114df287c42068a8954e5e02a9dd7ae7700a9a1 (commit)
      from  c1432dc38024d31f9d516fe5cb82e626d545c4d7 (commit)

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

- Log -----------------------------------------------------------------
commit ace34d24e7befc46b62e96936b451d44c23e9fe4
Merge: c1432dc 3d9577f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 10:49:59 2012 +0200

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

commit 3d9577f0f9e9bc375a99d0c99a334b4cde8cbfa1
Merge: f689bc8 be6511a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 10:49:58 2012 +0200

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

commit be6511a2d98693ac2fd8b0dd83f596e160103c40
Merge: 8c91fda a6763cb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 10:49:58 2012 +0200

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

commit a6763cba77d7e1e894ac08039573b7ae716eec70
Merge: 3ab11db d114df2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 10:49:58 2012 +0200

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

commit d114df287c42068a8954e5e02a9dd7ae7700a9a1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 10:28:39 2012 +0200

    .

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

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

First 500 lines of diff:
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 70e27cd..1d6274c 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20851,6 +20851,8 @@ current directory have been auto-loaded.
 @node libthread_db.so.1 file
 @subsection Automatically loading thread debugging library
 
+This feature is currently present only on @sc{gnu}/Linux native hosts.
+
 @value{GDBN} reads and executes the canned sequences of commands from init file
 (if any) in the current working directory,
 see @ref{Current Directory Init File during Startup}.


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  c1432dc38024d31f9d516fe5cb82e626d545c4d7 (commit)
       via  f689bc8eebae7ac31c75c2bbf12e5a2d8303dcac (commit)
       via  8c91fda42db4201841a3efa95c75e980313ce44b (commit)
       via  3ab11dbf18b0662fe177fc190abaa17c9f3ddb31 (commit)
       via  88b620700aee30203eb47d72799a84cf050701b2 (commit)
      from  19a857b39dd91f576d034d9a7e4d71b8e32604f8 (commit)

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

- Log -----------------------------------------------------------------
commit c1432dc38024d31f9d516fe5cb82e626d545c4d7
Merge: 19a857b f689bc8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:20:58 2012 +0200

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

commit f689bc8eebae7ac31c75c2bbf12e5a2d8303dcac
Merge: a727a31 8c91fda
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:20:58 2012 +0200

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

commit 8c91fda42db4201841a3efa95c75e980313ce44b
Merge: 54fbd69 3ab11db
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:20:57 2012 +0200

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

commit 3ab11dbf18b0662fe177fc190abaa17c9f3ddb31
Merge: 8bb9979 88b6207
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:20:57 2012 +0200

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

commit 88b620700aee30203eb47d72799a84cf050701b2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:20:54 2012 +0200

    .

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

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

First 500 lines of diff:
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index ee97085..70e27cd 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20883,7 +20883,8 @@ current directory have been auto-loaded.
 canned sequences of commands (@pxref{Sequences}), as long as @samp{set
 auto-load gdb-scripts} is set to @samp{yes}.
 
-Please refer to @ref{objfile-gdb.py file} description as it is similar.
+For more background refer to the similar Python scripts auto-loading
+description (@pxref{objfile-gdb.py file}).
 
 @table @code
 @anchor{set auto-load gdb-scripts}


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  19a857b39dd91f576d034d9a7e4d71b8e32604f8 (commit)
       via  a727a31a7408dc01bc32003731b53b8884fd700f (commit)
       via  54fbd69d6a7afb8a6480c91833cf579361681427 (commit)
      from  6bdc93591ac355c28cedbf8c0213fafaa179e3ae (commit)

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

- Log -----------------------------------------------------------------
commit 19a857b39dd91f576d034d9a7e4d71b8e32604f8
Merge: 6bdc935 a727a31
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:17:40 2012 +0200

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

commit a727a31a7408dc01bc32003731b53b8884fd700f
Merge: cc31608 54fbd69
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:17:40 2012 +0200

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

commit 54fbd69d6a7afb8a6480c91833cf579361681427
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:17:37 2012 +0200

    .

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

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

First 500 lines of diff:
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 36bdcaa..ee97085 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20982,7 +20982,7 @@ You can use @value{GDBN} command-line option for a single @value{GDBN} session.
 
 @item ~/.gdbinit: set auto-load no
 Disable auto-loading globally for the user
-(@pxref{home directory init file}).  While it is improbable you could also
+(@pxref{Home Directory Init File}).  While it is improbable you could also
 use system init file instead (@pxref{System-wide configuration}).
 @end itemize
 


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  6bdc93591ac355c28cedbf8c0213fafaa179e3ae (commit)
       via  cc31608164b4b1310619de2cfed1d7149ed6ca73 (commit)
       via  61a50032375623a045d216e45fddbb6249e8d2d7 (commit)
       via  8bb9979be2be7b86dfbbd5b9cb59699086c65b9a (commit)
       via  be21e52eb8c71b78e095971999998909ff541c0f (commit)
      from  35bc74010587a44dff427583a729ea95d68e8bb2 (commit)

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

- Log -----------------------------------------------------------------
commit 6bdc93591ac355c28cedbf8c0213fafaa179e3ae
Merge: 35bc740 cc31608
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:07:02 2012 +0200

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

commit cc31608164b4b1310619de2cfed1d7149ed6ca73
Merge: bdf2f1a 61a5003
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:07:01 2012 +0200

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

commit 61a50032375623a045d216e45fddbb6249e8d2d7
Merge: 664ca78 8bb9979
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:07:01 2012 +0200

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

commit 8bb9979be2be7b86dfbbd5b9cb59699086c65b9a
Merge: fb5d0fd be21e52
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:07:01 2012 +0200

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

commit be21e52eb8c71b78e095971999998909ff541c0f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 08:06:57 2012 +0200

    .

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

Summary of changes:
 gdb/linux-thread-db.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index ee6bdd2..e4341d8 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -78,8 +78,8 @@
 
 static char *libthread_db_search_path;
 
-/* Whether thread_db auto-loading is enabled by the "set auto-load libthread-db"
-   command.  */
+/* Set to non-zero if thread_db auto-loading is enabled
+   by the "set auto-load libthread-db" command.  */
 static int auto_load_thread_db = 1;
 
 /* "show" command for the auto_load_thread_db configuration variable.  */


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  52f13c3140d7212cfe288e9ec3697f1040bdf3fe (commit)
       via  83354472f327767555adfd2b213be4bd738cfb79 (commit)
       via  a8337b36480c3730f0dd2689946b050ebac35776 (commit)
       via  c326f338d98727b8ca18c61574847d65c810ad1d (commit)
       via  df99b4144d305c3091773ea6d425ffb9d3e9bedd (commit)
       via  6bbbba526f331b673805bc114b5c09bc6c88f272 (commit)
       via  7b6e3b8658c0f752e8609b65ff889eeac6ca3bb4 (commit)
       via  3f705b16c8fc6a2229e8a547c4a6bcfb5ed00e3b (commit)
       via  7017c190c9643de36ca22f5591aa3ddbafcf1661 (commit)
       via  fbec43f10477e99fbc35dced60f8e2d744def318 (commit)
       via  0a2e1d3cc6e24662e81d199424fa162bbb3d4724 (commit)
       via  b08a0c3476ee1a2dfa35893f3a5955a7b8e0ca28 (commit)
       via  3f7abee6f972f8fb37cf0ded16ef4ac5956d7f32 (commit)
       via  810fc7bf06e766f762bfafe71ae566395a54fcf4 (commit)
       via  7f0e7e8581446c677a376fecd11540533760a05e (commit)
       via  e7a153ccfdac0bb45958b19293fa3fb509b9a9e5 (commit)
       via  3eec4be3d4f50a8ccfa2cfb26efd673b105008a4 (commit)
       via  a7916980e89510b79f52f0bc9c58015318d81478 (commit)
       via  2d0291bf2118f556e2efda26662f23559eddd4ab (commit)
       via  6d7e224c93a0abf474b3a3a85cd0e8c68fec546d (commit)
       via  52c93ee1151eb1bdc576b9e100fae548d78433c4 (commit)
       via  655e820cf9a039ee55325d9e1f8423796d592b4b (commit)
       via  5eadef623d0ca84c44370864186ae85ac29f433d (commit)
       via  a012ecd57f4c62e42a6fcd1454541ea209df03e0 (commit)
       via  2d3bed914eb219769399d4be7c95885b9f0956a3 (commit)
       via  33c618f861d9ad56df661bd5759e03d16114682a (commit)
      from  2d4d03691bfc2667c6e517ba10c3e66eb407f6bf (commit)

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

- Log -----------------------------------------------------------------
commit 52f13c3140d7212cfe288e9ec3697f1040bdf3fe
Merge: 6bbbba5 8335447
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:44:10 2012 +0200

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

commit 83354472f327767555adfd2b213be4bd738cfb79
Merge: 7b6e3b8 a8337b3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:44:10 2012 +0200

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

commit a8337b36480c3730f0dd2689946b050ebac35776
Merge: 3f705b1 c326f33
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:44:10 2012 +0200

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

commit c326f338d98727b8ca18c61574847d65c810ad1d
Merge: 7017c19 df99b41
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:44:09 2012 +0200

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

commit df99b4144d305c3091773ea6d425ffb9d3e9bedd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:42:12 2012 +0200

    .

commit 6bbbba526f331b673805bc114b5c09bc6c88f272
Merge: 2d4d036 7b6e3b8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:36:41 2012 +0200

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

commit 7b6e3b8658c0f752e8609b65ff889eeac6ca3bb4
Merge: ef11444 3f705b1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:36:41 2012 +0200

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

commit 3f705b16c8fc6a2229e8a547c4a6bcfb5ed00e3b
Merge: 7942608 7017c19
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:36:40 2012 +0200

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

commit 7017c190c9643de36ca22f5591aa3ddbafcf1661
Merge: e8bc56e fbec43f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:36:40 2012 +0200

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

commit fbec43f10477e99fbc35dced60f8e2d744def318
Merge: 51c6545 0a2e1d3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:36:40 2012 +0200

    Merge branch 'secmove' into secmove-misc2

commit 0a2e1d3cc6e24662e81d199424fa162bbb3d4724
Merge: f8b07b7 b08a0c3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 29 07:36:37 2012 +0200

    Merge remote-tracking branch 'gdb/master' into secmove
    
    Conflicts:
    	gdb/Makefile.in

commit b08a0c3476ee1a2dfa35893f3a5955a7b8e0ca28
Author: Kevin Buettner <kevinb@redhat.com>
Date:   Thu Mar 29 00:57:17 2012 +0000

    Commit gdb and sim support for v850e2 and v850e2v3 on behalf of
    Rathish C <Rathish.C@kpitcummins.com>.

commit 3f7abee6f972f8fb37cf0ded16ef4ac5956d7f32
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Thu Mar 29 00:00:03 2012 +0000

    *** empty log message ***

commit 810fc7bf06e766f762bfafe71ae566395a54fcf4
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Mar 28 23:00:04 2012 +0000

    daily update

commit 7f0e7e8581446c677a376fecd11540533760a05e
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Mar 28 21:31:56 2012 +0000

    [NEWS] Announce support for Ada varobj support.
    
    gdb/ChangeLog:
    
            * NEWS: Add entry for Ada varobj support.

commit e7a153ccfdac0bb45958b19293fa3fb509b9a9e5
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Mar 28 21:31:45 2012 +0000

    [doco] document the "type_changed" flag further.
    
    gdb/doc/ChangeLog:
    
            * gdb.texinfo (GDB/MI Variable Objects): Document what happens
            to the children of a varobj and its update range when -var-update
            returns that the varobj's type changed.

commit 3eec4be3d4f50a8ccfa2cfb26efd673b105008a4
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Mar 28 21:31:29 2012 +0000

    New varobj language callback: value_is_changeable_p.
    
    This patch introduces a new language-specific callback for varobj
    objects, allowing us to move the language-specific bits of the
    varobj_value_is_changeable_p routine to language-specific functions.
    This is more elegant than testing for the varobj's language...
    
    gdb/ChangeLog:
    
            * varobj.c (default_value_is_changeable_p): New function,
            extracted from varobj_value_is_changeable_p.  Add declaration.
            (ada_value_is_changeable_p): New function, extracted from
            varobj_value_is_changeable_p.  Add declaration.
            (struct language_specific): New field "value_is_changeable_p".
            (languages): Add entries for new field.
            (varobj_create): Set language before calling install_new_value.
            (varobj_value_is_changeable_p): Reimplement to call the varobj's
            "value_is_changeable_p" language callback.

commit a7916980e89510b79f52f0bc9c58015318d81478
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Mar 28 21:31:17 2012 +0000

    Varobj support for Ada.
    
    This patch adds varobj support for Ada variables.  Most of the code
    is implemented in a separate Ada-specific file called ada-varobj.c.
    The only bits in varobj.c are the functions used as the hooks in
    the language-specific varobj's vector.
    
    gdb/ChangeLog:
    
            * ada-varobj.h, ada-varobj.c: New files.
            * Makefile.in (SFILES): Add ada-varobj.c.
            (HFILES_NO_SRCDIR): Add ada-varobj.h.
            (COMMON_OBS): Add ada-varobj.o.

commit 2d0291bf2118f556e2efda26662f23559eddd4ab
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Mar 28 21:31:04 2012 +0000

    framework for varobj type mutation
    
    This patch introduces the framework necessary to support type mutations.
    The only language that currently provides a language-specific hook for
    that feature is Ada, but the hook remain unimplemented for now. The
    actual implementation is tied to the rest of the varobj code for Ada,
    and thus will be provided then.
    
    gdb/ChangeLog:
    
            * varobj.c (ada_value_has_mutated): Add declaration.  New function.
            (struct language_specific): New field "value_has_mutated".
            (languages): Set field "value_has_mutated" in each entry of array.
            (varobj_value_has_mutated): New function.
            (varobj_udpdate): Add handling of type mutation.
            (value_of_root): Add handling of type mutation.
            (ada_value_has_mutated): New function.

commit 6d7e224c93a0abf474b3a3a85cd0e8c68fec546d
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Mar 28 18:30:01 2012 +0000

    2012-03-28  Pedro Alves  <palves@redhat.com>
    
    	* linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
    	(IA64_GR0_REGNUM, IA64_FR0_REGNUM)
    	(IA64_FR1_REGNUM): New defines.
    	(ia64_fetch_register): New.
    	(the_low_target): Install it.
    	* linux-low.h (struct linux_target_ops) <fetch_register>: New
    	field.
    	* linux-low.c (linux_fetch_registers): Try the
    	the_low_target.fetch_register hook first.
    
    	* linux-arm-low.c (the_low_target): Adjust.
    	* linux-bfin-low.c (the_low_target): Adjust.
    	* linux-cris-low.c (the_low_target): Adjust.
    	* linux-crisv32-low.c (the_low_target): Adjust.
    	* linux-m32r-low.c (the_low_target): Adjust.
    	* linux-m68k-low.c (the_low_target): Adjust.
    	* linux-mips-low.c (the_low_target): Adjust.
    	* linux-ppc-low.c (the_low_target): Adjust.
    	* linux-s390-low.c (the_low_target): Adjust.
    	* linux-sh-low.c (the_low_target): Adjust.
    	* linux-sparc-low.c (the_low_target): Adjust.
    	* linux-tic6x-low.c (the_low_target): Adjust.
    	* linux-x86-low.c (the_low_target): Adjust.
    	* linux-xtensa-low.c (the_low_target): Adjust.

commit 52c93ee1151eb1bdc576b9e100fae548d78433c4
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Mar 28 17:50:16 2012 +0000

    2012-03-28  Pedro Alves  <palves@redhat.com>
    
    	* ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
    	Always supply $fr0 as 0.0 and $fr1 as 1.0.

commit 655e820cf9a039ee55325d9e1f8423796d592b4b
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Mar 28 17:38:07 2012 +0000

    	* python/py-inferior.c (infpy_read_memory): Remove cleanups and
    	explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
    	before returning.

commit 5eadef623d0ca84c44370864186ae85ac29f433d
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Mar 28 17:35:38 2012 +0000

    	* .dir-locals.el: New file.

commit a012ecd57f4c62e42a6fcd1454541ea209df03e0
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Mar 28 17:33:33 2012 +0000

    	* gdb.linespec/ls-dollar.cc: New file.
    	* gdb.linespec/ls-dollar.exp: New test.

commit 2d3bed914eb219769399d4be7c95885b9f0956a3
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Mar 28 17:29:46 2012 +0000

    2012-03-28  Pedro Alves  <palves@redhat.com>
    
    	* ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.

commit 33c618f861d9ad56df661bd5759e03d16114682a
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Mar 28 17:29:41 2012 +0000

    	* gdb.cp/namespace.exp: Add breakpoint tests for functions
    	starting with the global namespace.

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

Summary of changes:
 bfd/version.h                            |    2 +-
 gdb/.dir-locals.el                       |   24 +
 gdb/ChangeLog                            |   61 +
 gdb/Makefile.in                          |    5 +-
 gdb/NEWS                                 |    2 +
 gdb/ada-varobj.c                         |  889 +++++++++++++
 gdb/ada-varobj.h                         |   56 +
 gdb/doc/ChangeLog                        |    6 +
 gdb/doc/gdb.texinfo                      |   14 +-
 gdb/gdbserver/ChangeLog                  |   27 +
 gdb/gdbserver/linux-arm-low.c            |    1 +
 gdb/gdbserver/linux-bfin-low.c           |    1 +
 gdb/gdbserver/linux-cris-low.c           |    1 +
 gdb/gdbserver/linux-crisv32-low.c        |    1 +
 gdb/gdbserver/linux-ia64-low.c           |   45 +-
 gdb/gdbserver/linux-low.c                |   10 +-
 gdb/gdbserver/linux-low.h                |    8 +
 gdb/gdbserver/linux-m32r-low.c           |    1 +
 gdb/gdbserver/linux-m68k-low.c           |    1 +
 gdb/gdbserver/linux-mips-low.c           |    1 +
 gdb/gdbserver/linux-ppc-low.c            |    1 +
 gdb/gdbserver/linux-s390-low.c           |    1 +
 gdb/gdbserver/linux-sh-low.c             |    1 +
 gdb/gdbserver/linux-sparc-low.c          |    1 +
 gdb/gdbserver/linux-tic6x-low.c          |    1 +
 gdb/gdbserver/linux-x86-low.c            |    1 +
 gdb/gdbserver/linux-xtensa-low.c         |    1 +
 gdb/ia64-linux-nat.c                     |   37 +-
 gdb/python/py-inferior.c                 |   20 +-
 gdb/testsuite/ChangeLog                  |   10 +
 gdb/testsuite/gdb.cp/namespace.exp       |   10 +
 gdb/testsuite/gdb.linespec/ls-dollar.cc  |   26 +
 gdb/testsuite/gdb.linespec/ls-dollar.exp |   38 +
 gdb/v850-tdep.c                          |  139 ++-
 gdb/varobj.c                             |  282 ++++-
 gdb/version.in                           |    2 +-
 sim/common/ChangeLog                     |    7 +
 sim/common/sim-trace.c                   |   13 +-
 sim/common/sim-trace.h                   |   17 +
 sim/v850/ChangeLog                       |   55 +
 sim/v850/sim-main.h                      |  298 +++++-
 sim/v850/simops.c                        |  716 ++++++++++-
 sim/v850/simops.h                        |   47 +
 sim/v850/v850-dc                         |   29 +-
 sim/v850/v850.igen                       | 2081 +++++++++++++++++++++++++++++-
 45 files changed, 4892 insertions(+), 98 deletions(-)
 create mode 100644 gdb/.dir-locals.el
 create mode 100644 gdb/ada-varobj.c
 create mode 100644 gdb/ada-varobj.h
 create mode 100644 gdb/testsuite/gdb.linespec/ls-dollar.cc
 create mode 100644 gdb/testsuite/gdb.linespec/ls-dollar.exp

First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index d9d8427..4481ecc 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120328
+#define BFD_VERSION_DATE 20120329
 #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/.dir-locals.el b/gdb/.dir-locals.el
new file mode 100644
index 0000000..8eca9e0
--- /dev/null
+++ b/gdb/.dir-locals.el
@@ -0,0 +1,24 @@
+;; Emacs settings.
+;; Copyright (C) 2012 Free Software Foundation, Inc.
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 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, see <http://www.gnu.org/licenses/>.
+
+(
+ (tcl-mode . ((tcl-indent-level . 4)
+	      (tcl-continued-indent-level . 4)
+	      (indent-tabs-mode . t)))
+ (nil . ((bug-reference-url-format . "http://sourceware.org/bugzilla/show_bug.cgi?id=%s")))
+ (c-mode . ((c-file-style . "GNU")
+	    (indent-tabs-mode . t)))
+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0b3f886..a334a06 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,64 @@
+2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
+
+	* v850-tdep.c: Add the enum values for mpu and fpu registers.
+	(v850_register_name): Add the mpu and fpu register names.
+	(v850e_register_name): Add the mpu and fpu register names.
+	(v850e2_register_name): New function.
+	(v850_gdbarch_init): Add case for bfd_mach_v850e2 and 
+	bfd_mach_v850e2v3.
+
+2012-03-28  Joel Brobecker  <brobecker@adacore.com>
+
+	* NEWS: Add entry for Ada varobj support.
+
+2012-03-28  Joel Brobecker  <brobecker@adacore.com>
+
+	* varobj.c (default_value_is_changeable_p): New function,
+	extracted from varobj_value_is_changeable_p.  Add declaration.
+	(ada_value_is_changeable_p): New function, extracted from
+	varobj_value_is_changeable_p.  Add declaration.
+	(struct language_specific): New field "value_is_changeable_p".
+	(languages): Add entries for new field.
+	(varobj_create): Set language before calling install_new_value.
+	(varobj_value_is_changeable_p): Reimplement to call the varobj's
+	"value_is_changeable_p" language callback.
+
+2012-03-28  Joel Brobecker  <brobecker@adacore.com>
+
+	* ada-varobj.h, ada-varobj.c: New files.
+	* Makefile.in (SFILES): Add ada-varobj.c.
+	(HFILES_NO_SRCDIR): Add ada-varobj.h.
+	(COMMON_OBS): Add ada-varobj.o.
+
+2012-03-28  Joel Brobecker  <brobecker@adacore.com>
+
+	* varobj.c (ada_value_has_mutated): Add declaration.  New function.
+	(struct language_specific): New field "value_has_mutated".
+	(languages): Set field "value_has_mutated" in each entry of array.
+	(varobj_value_has_mutated): New function.
+	(varobj_udpdate): Add handling of type mutation.
+	(value_of_root): Add handling of type mutation.
+	(ada_value_has_mutated): New function.
+
+2012-03-28  Pedro Alves  <palves@redhat.com>
+
+	* ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
+	Always supply $fr0 as 0.0 and $fr1 as 1.0.
+
+2012-03-28  Tom Tromey  <tromey@redhat.com>
+
+	* python/py-inferior.c (infpy_read_memory): Remove cleanups and
+	explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
+	before returning.
+
+2012-03-28  Tom Tromey  <tromey@redhat.com>
+
+	* .dir-locals.el: New file.
+
+2012-03-28  Pedro Alves  <palves@redhat.com>
+
+	* ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
+
 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
 
 	* ia64-linux-nat.c (ia64_linux_fetch_register): Add special
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 9974ffd..1becf33 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -682,6 +682,7 @@ TARGET_FLAGS_TO_PASS = \
 # SFILES is used in building the distribution archive.
 
 SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
+	ada-varobj.c \
 	addrmap.c auto-load.c \
 	auxv.c ax-general.c ax-gdb.c \
 	agent.c \
@@ -766,7 +767,7 @@ proc-utils.h arm-tdep.h ax-gdb.h ppcnbsd-tdep.h	\
 cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h \
 exec.h m32r-tdep.h osabi.h gdbcore.h solib-som.h amd64bsd-nat.h \
 i386bsd-nat.h xml-support.h xml-tdesc.h alphabsd-tdep.h gdb_obstack.h \
-ia64-tdep.h ada-lang.h varobj.h frv-tdep.h nto-tdep.h serial.h \
+ia64-tdep.h ada-lang.h ada-varobj.h varobj.h frv-tdep.h nto-tdep.h serial.h \
 c-lang.h d-lang.h frame.h event-loop.h block.h cli/cli-setshow.h	\
 cli/cli-decode.h cli/cli-cmds.h cli/cli-dump.h cli/cli-utils.h \
 cli/cli-script.h macrotab.h symtab.h version.h gnulib/wchar.in.h \
@@ -883,7 +884,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
 	dwarf2read.o mipsread.o stabsread.o corefile.o \
 	dwarf2expr.o dwarf2loc.o dwarf2-frame.o dwarf2-frame-tailcall.o \
 	ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o \
-	ada-tasks.o \
+	ada-tasks.o ada-varobj.o \
 	ui-out.o cli-out.o \
 	varobj.o vec.o \
 	jv-lang.o jv-valprint.o jv-typeprint.o \
diff --git a/gdb/NEWS b/gdb/NEWS
index 5e5d806..5132d19 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -80,6 +80,8 @@
   the ability to set breakpoints on inlined functions will be lost
   in symbol files with older .gdb_index sections.
 
+* Ada support for GDB/MI Variable Objects has been added.
+
 * New commands
 
   ** "catch load" and "catch unload" can be used to stop when a shared
diff --git a/gdb/ada-varobj.c b/gdb/ada-varobj.c
new file mode 100644
index 0000000..31f80f5
--- /dev/null
+++ b/gdb/ada-varobj.c
@@ -0,0 +1,889 @@
+/* varobj support for Ada.
+
+   Copyright (C) 2012 Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 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, see <http://www.gnu.org/licenses/>.  */
+
+#include "defs.h"
+#include "ada-varobj.h"
+#include "ada-lang.h"
+#include "language.h"
+#include "valprint.h"
+
+/* Implementation principle used in this unit:
+
+   For our purposes, the meat of the varobj object is made of two
+   elements: The varobj's (struct) value, and the varobj's (struct)
+   type.  In most situations, the varobj has a non-NULL value, and
+   the type becomes redundant, as it can be directly derived from
+   the value.  In the initial implementation of this unit, most
+   routines would only take a value, and return a value.
+
+   But there are many situations where it is possible for a varobj
+   to have a NULL value.  For instance, if the varobj becomes out of
+   scope.  Or better yet, when the varobj is the child of another
+   NULL pointer varobj.  In that situation, we must rely on the type
+   instead of the value to create the child varobj.
+
+   That's why most functions below work with a (value, type) pair.
+   The value may or may not be NULL.  But the type is always expected
+   to be set.  When the value is NULL, then we work with the type
+   alone, and keep the value NULL.  But when the value is not NULL,
+   then we work using the value, because it provides more information.
+   But we still always set the type as well, even if that type could
+   easily be derived from the value.  The reason behind this is that
+   it allows the code to use the type without having to worry about
+   it being set or not.  It makes the code clearer.  */
+
+/* A convenience function that decodes the VALUE_PTR/TYPE_PTR couple:
+   If there is a value (*VALUE_PTR not NULL), then perform the decoding
+   using it, and compute the associated type from the resulting value.
+   Otherwise, compute a static approximation of *TYPE_PTR, leaving
+   *VALUE_PTR unchanged.
+
+   The results are written in place.  */
+
+static void
+ada_varobj_decode_var (struct value **value_ptr, struct type **type_ptr)
+{
+  if (*value_ptr)
+    {
+      *value_ptr = ada_get_decoded_value (*value_ptr);
+      *type_ptr = ada_check_typedef (value_type (*value_ptr));
+    }
+  else
+    *type_ptr = ada_get_decoded_type (*type_ptr);
+}
+
+/* Return a string containing an image of the given scalar value.
+   VAL is the numeric value, while TYPE is the value's type.
+   This is useful for plain integers, of course, but even more
+   so for enumerated types.
+
+   The result should be deallocated by xfree after use.  */
+
+static char *
+ada_varobj_scalar_image (struct type *type, LONGEST val)
+{
+  struct ui_file *buf = mem_fileopen ();
+  struct cleanup *cleanups = make_cleanup_ui_file_delete (buf);
+  char *result;
+
+  ada_print_scalar (type, val, buf);
+  result = ui_file_xstrdup (buf, NULL);
+  do_cleanups (cleanups);
+
+  return result;
+}
+
+/* Assuming that the (PARENT_VALUE, PARENT_TYPE) pair designates
+   a struct or union, compute the (CHILD_VALUE, CHILD_TYPE) couple
+   corresponding to the field number FIELDNO.  */
+
+static void
+ada_varobj_struct_elt (struct value *parent_value,
+		       struct type *parent_type,
+		       int fieldno,
+		       struct value **child_value,
+		       struct type **child_type)
+{
+  struct value *value = NULL;
+  struct type *type = NULL;
+
+  if (parent_value)
+    {
+      value = value_field (parent_value, fieldno);
+      type = value_type (value);
+    }
+  else
+    type = TYPE_FIELD_TYPE (parent_type, fieldno);
+
+  if (child_value)
+    *child_value = value;
+  if (child_type)
+    *child_type = type;
+}
+
+/* Assuming that the (PARENT_VALUE, PARENT_TYPE) pair is a pointer or
+   reference, return a (CHILD_VALUE, CHILD_TYPE) couple corresponding
+   to the dereferenced value.  */
+
+static void
+ada_varobj_ind (struct value *parent_value,
+		struct type *parent_type,
+		struct value **child_value,
+		struct type **child_type)
+{
+  struct value *value = NULL;
+  struct type *type = NULL;
+
+  if (ada_is_array_descriptor_type (parent_type))
+    {
+      /* This can only happen when PARENT_VALUE is NULL.  Otherwise,
+	 ada_get_decoded_value would have transformed our parent_type
+	 into a simple array pointer type.  */
+      gdb_assert (parent_value == NULL);
+      gdb_assert (TYPE_CODE (parent_type) == TYPE_CODE_TYPEDEF);
+
+      /* Decode parent_type by the equivalent pointer to (decoded)
+	 array.  */
+      while (TYPE_CODE (parent_type) == TYPE_CODE_TYPEDEF)
+	parent_type = TYPE_TARGET_TYPE (parent_type);
+      parent_type = ada_coerce_to_simple_array_type (parent_type);
+      parent_type = lookup_pointer_type (parent_type);
+    }
+
+  /* If parent_value is a null pointer, then only perform static
+     dereferencing.  We cannot dereference null pointers.  */
+  if (parent_value && value_as_address (parent_value) == 0)
+    parent_value = NULL;
+
+  if (parent_value)
+    {
+      value = ada_value_ind (parent_value);
+      type = value_type (value);
+    }
+  else
+    type = TYPE_TARGET_TYPE (parent_type);
+
+  if (child_value)
+    *child_value = value;
+  if (child_type)
+    *child_type = type;
+}
+
+/* Assuming that the (PARENT_VALUE, PARENT_TYPE) pair is a simple
+   array (TYPE_CODE_ARRAY), return the (CHILD_VALUE, CHILD_TYPE)
+   pair corresponding to the element at ELT_INDEX.  */
+
+static void
+ada_varobj_simple_array_elt (struct value *parent_value,
+			     struct type *parent_type,
+			     int elt_index,
+			     struct value **child_value,
+			     struct type **child_type)
+{
+  struct value *value = NULL;
+  struct type *type = NULL;
+
+  if (parent_value)
+    {
+      struct value *index_value =
+	value_from_longest (TYPE_INDEX_TYPE (parent_type), elt_index);
+
+      value = ada_value_subscript (parent_value, 1, &index_value);
+      type = value_type (value);
+    }
+  else
+    type = TYPE_TARGET_TYPE (parent_type);
+
+  if (child_value)
+    *child_value = value;
+  if (child_type)
+    *child_type = type;
+}
+
+/* Given the decoded value and decoded type of a variable object,
+   adjust the value and type to those necessary for getting children
+   of the variable object.
+
+   The replacement is performed in place.  */
+
+static void
+ada_varobj_adjust_for_child_access (struct value **value,
+				    struct type **type)
+{
+   /* Pointers to struct/union types are special: Instead of having
+      one child (the struct), their children are the components of
+      the struct/union type.  We handle this situation by dereferencing
+      the (value, type) couple.  */
+  if (TYPE_CODE (*type) == TYPE_CODE_PTR
+      && (TYPE_CODE (TYPE_TARGET_TYPE (*type)) == TYPE_CODE_STRUCT
+          || TYPE_CODE (TYPE_TARGET_TYPE (*type)) == TYPE_CODE_UNION)
+      && !ada_is_array_descriptor_type (TYPE_TARGET_TYPE (*type))
+      && !ada_is_constrained_packed_array_type (TYPE_TARGET_TYPE (*type)))
+    ada_varobj_ind (*value, *type, value, type);
+}
+
+/* Assuming that the (PARENT_VALUE, PARENT_TYPE) pair is an array
+   (any type of array, "simple" or not), return the number of children
+   that this array contains.  */
+
+static int
+ada_varobj_get_array_number_of_children (struct value *parent_value,
+					 struct type *parent_type)
+{
+  LONGEST lo, hi;
+  int len;
+
+  if (!get_array_bounds (parent_type, &lo, &hi))
+    {
+      /* Could not get the array bounds.  Pretend this is an empty array.  */
+      warning (_("unable to get bounds of array, assuming null array"));
+      return 0;
+    }
+
+  /* Ada allows the upper bound to be less than the lower bound,
+     in order to specify empty arrays...  */
+  if (hi < lo)
+    return 0;
+
+  return hi - lo + 1;
+}
+
+/* Assuming that the (PARENT_VALUE, PARENT_TYPE) pair is a struct or
+   union, return the number of children this struct contains.  */
+
+static int
+ada_varobj_get_struct_number_of_children (struct value *parent_value,
+					  struct type *parent_type)
+{
+  int n_children = 0;
+  int i;
+
+  gdb_assert (TYPE_CODE (parent_type) == TYPE_CODE_STRUCT
+	      || TYPE_CODE (parent_type) == TYPE_CODE_UNION);
+
+  for (i = 0; i < TYPE_NFIELDS (parent_type); i++)
+    {
+      if (ada_is_ignored_field (parent_type, i))
+	continue;
+
+      if (ada_is_wrapper_field (parent_type, i))
+	{
+	  struct value *elt_value;
+	  struct type *elt_type;
+
+	  ada_varobj_struct_elt (parent_value, parent_type, i,
+				 &elt_value, &elt_type);
+	  if (ada_is_tagged_type (elt_type, 0))
+	    {
+	      /* We must not use ada_varobj_get_number_of_children
+		 to determine is element's number of children, because
+		 this function first calls ada_varobj_decode_var,
+		 which "fixes" the element.  For tagged types, this
+		 includes reading the object's tag to determine its
+		 real type, which happens to be the parent_type, and
+		 leads to an infinite loop (because the element gets
+		 fixed back into the parent).  */
+	      n_children += ada_varobj_get_struct_number_of_children
+		(elt_value, elt_type);
+	    }
+	  else
+	    n_children += ada_varobj_get_number_of_children (elt_value, elt_type);
+	}
+      else if (ada_is_variant_part (parent_type, i))
+	{
+	  /* In normal situations, the variant part of the record should
+	     have been "fixed". Or, in other words, it should have been
+	     replaced by the branch of the variant part that is relevant
+	     for our value.  But there are still situations where this
+	     can happen, however (Eg. when our parent is a NULL pointer).
+	     We do not support showing this part of the record for now,
+	     so just pretend this field does not exist.  */
+	}
+      else
+	n_children++;
+    }
+
+  return n_children;
+}
+
+/* Assuming that the (PARENT_VALUE, PARENT_TYPE) pair designates
+   a pointer, return the number of children this pointer has.  */
+
+static int
+ada_varobj_get_ptr_number_of_children (struct value *parent_value,
+				       struct type *parent_type)
+{
+  struct type *child_type = TYPE_TARGET_TYPE (parent_type);
+
+  /* Pointer to functions and to void do not have a child, since
+     you cannot print what they point to.  */
+  if (TYPE_CODE (child_type) == TYPE_CODE_FUNC
+      || TYPE_CODE (child_type) == TYPE_CODE_VOID)
+    return 0;
+
+  /* All other types have 1 child.  */
+  return 1;
+}
+
+/* Return the number of children for the (PARENT_VALUE, PARENT_TYPE)
+   pair.  */
+
+int
+ada_varobj_get_number_of_children (struct value *parent_value,
+				   struct type *parent_type)
+{
+  ada_varobj_decode_var (&parent_value, &parent_type);
+  ada_varobj_adjust_for_child_access (&parent_value, &parent_type);
+
+  /* A typedef to an array descriptor in fact represents a pointer
+     to an unconstrained array.  These types always have one child
+     (the unconstrained array).  */
+  if (ada_is_array_descriptor_type (parent_type)
+      && TYPE_CODE (parent_type) == TYPE_CODE_TYPEDEF)
+    return 1;
+
+  if (TYPE_CODE (parent_type) == TYPE_CODE_ARRAY)
+    return ada_varobj_get_array_number_of_children (parent_value,


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  2d4d03691bfc2667c6e517ba10c3e66eb407f6bf (commit)
       via  ef1144484b0af0bb77ee6387e6596c8a2ebb9d18 (commit)
       via  7942608cd9f2650a647a725762fb32724ebd8b7b (commit)
       via  55f805a4d24b8cdc407757c73eee19b10f23b853 (commit)
       via  eee4bc5aed03bca4b679219ce9ab3ada0892b53a (commit)
       via  57ae568489a33c426a3889c8bcd887ce86d391d4 (commit)
       via  e8bc56e029fa7b2abe60df67f348030b98f29b08 (commit)
       via  51c6545fec492eb3cbb1b685846dd7225402f517 (commit)
       via  462eed8aeacb07d440dbc07af0fc63b5a631e140 (commit)
       via  2ca277d31936548bd4d6d9be04cd92c3df43f1fd (commit)
       via  e56482a50943ea08ccbc21d61b4a8bab9f407d2a (commit)
       via  3ab5fafa248758e3c9d2928913b76ec0f0e75abd (commit)
       via  161351d6b173b1dfb6972f3540d16ac13e4beb61 (commit)
       via  f8b07b7f3dd4d3fbdf6ea5d600cf4413a758d2ee (commit)
       via  8ee2757f5c1f228e5772d937b24a3481f621b470 (commit)
       via  109e341ea4ed4259a4cc49d16c8b9e7cb70e5f47 (commit)
       via  251109bb013218e172cc5d4f576b7d7f147a5aa1 (commit)
       via  7bcc0eb208e6c2de92c5f83499e12ecb1a6deea1 (commit)
       via  d3eeb91e4f75eacd77a6e4a51f58741299962cd9 (commit)
       via  395529f0c2c0aec007426f83a6f229343f6090ce (commit)
       via  8016fc269972e5b0c8c47846b123abcca562a631 (commit)
       via  5d42f3a1ab8df617af33ae9199271138c1dc5df0 (commit)
       via  87f14ecb42140507c841547fbd612023b9853bf1 (commit)
       via  8e2a924ccdd26b10576befd94558bdb4d5657f02 (commit)
       via  7253b9be40dec37c84e2dd54c150639cff7e7361 (commit)
       via  16aea4340523a95546d3757e0daf981e74ea7162 (commit)
       via  5d9a0e424ad53d532c51f4ef3a8cee9162668c36 (commit)
       via  9427b4b37af348ca58c310c60b2a944f15ba7ec7 (commit)
       via  ba755e8861831324a951e7b1d5997e0f269e4ce4 (commit)
       via  9a24de9b56953045fa134b9042aa85952b0c0573 (commit)
       via  23562c5ab19eef61e03148c7ab0ba7ed9b3299af (commit)
       via  ff72e97cd015fcafd132c9e9e6c79402ceff83a0 (commit)
       via  095df86ce5d49a046a33909f71a81c17b102da6b (commit)
       via  4fffe3b0d1073f79e8ce64643f48a00160a49efb (commit)
       via  19cf5a11f2e11dcd899d609095b00d4d6fe2f019 (commit)
       via  704c705f1069d47eea11c2ac60dce9242e8df2d0 (commit)
       via  e10e2ede4e6478085578c776c369ce540389f087 (commit)
       via  79be8325606facdce0467e5e1b54b30513f8f727 (commit)
       via  b0e5cb87d66e1c74613ba923664bef9547b96172 (commit)
       via  a5cb0e3d12758e08a1ccc7f6f73529bc102a6d31 (commit)
       via  57feba1a12c978c57836cd9a78bace3aa68ff881 (commit)
       via  1ba1689e5d9a078016564b0f40729917563a9bb1 (commit)
       via  994022538d9a8c3f57f94f90b21f9796d54f6ea3 (commit)
       via  c6ac4d0afc0d1cf246ad07b0466ecd038418b26b (commit)
       via  04c45ef96f5cacfe6e3ee0f54ff5f6545ea0a796 (commit)
       via  40964200e48f8eaaeadba004e288cae4af96a315 (commit)
       via  901c7c910d2a0d554e42d3e4345203e8f71ae53b (commit)
       via  c989997d6d141e551fe59fc72b473e6eaf15feaa (commit)
       via  135e3f78997d4886c66ae487217b62322da2ce00 (commit)
       via  bb4f55dbcc7aa2bf1b0cdd439b7088d9ea7e9b00 (commit)
      from  cd90d568ea6fb6023ee2aec8c68d9ffd216693d8 (commit)

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

- Log -----------------------------------------------------------------
commit 2d4d03691bfc2667c6e517ba10c3e66eb407f6bf
Merge: 55f805a ef11444
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:28:07 2012 +0200

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

commit ef1144484b0af0bb77ee6387e6596c8a2ebb9d18
Merge: eee4bc5 7942608
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:28:06 2012 +0200

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

commit 7942608cd9f2650a647a725762fb32724ebd8b7b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:28:02 2012 +0200

    .

commit 55f805a4d24b8cdc407757c73eee19b10f23b853
Merge: 462eed8 eee4bc5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:26:53 2012 +0200

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

commit eee4bc5aed03bca4b679219ce9ab3ada0892b53a
Merge: 2ca277d 57ae568
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:26:53 2012 +0200

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

commit 57ae568489a33c426a3889c8bcd887ce86d391d4
Merge: e56482a e8bc56e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:26:53 2012 +0200

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

commit e8bc56e029fa7b2abe60df67f348030b98f29b08
Merge: 3ab5faf 51c6545
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:26:52 2012 +0200

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

commit 51c6545fec492eb3cbb1b685846dd7225402f517
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 22:26:49 2012 +0200

    .

commit 462eed8aeacb07d440dbc07af0fc63b5a631e140
Merge: 5d9a0e4 2ca277d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 20:38:32 2012 +0200

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

commit 2ca277d31936548bd4d6d9be04cd92c3df43f1fd
Merge: 9427b4b e56482a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 20:38:28 2012 +0200

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

commit e56482a50943ea08ccbc21d61b4a8bab9f407d2a
Merge: ba755e8 3ab5faf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 20:17:33 2012 +0200

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

commit 3ab5fafa248758e3c9d2928913b76ec0f0e75abd
Merge: 9a24de9 161351d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 20:07:58 2012 +0200

    Merge branch 'secmove-misc2' into secmove-misc2-warn
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 161351d6b173b1dfb6972f3540d16ac13e4beb61
Merge: 8ee2757 f8b07b7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 20:01:58 2012 +0200

    Merge branch 'secmove' into secmove-misc2

commit f8b07b7f3dd4d3fbdf6ea5d600cf4413a758d2ee
Merge: 8016fc2 109e341
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 20:01:58 2012 +0200

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

commit 8ee2757f5c1f228e5772d937b24a3481f621b470
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Mar 28 19:55:09 2012 +0200

    .

commit 109e341ea4ed4259a4cc49d16c8b9e7cb70e5f47
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Mar 28 17:08:43 2012 +0000

    [ia64-linux] Allow libunwind to fetch register 0
    
    On ia64-linux, GDB sometimes prints the following error when trying
    to switch to a different task:
    
        (gdb) task 3
        Register 0 is not available
    
    This is a random failure that sometimes happens, sometimes does not.
    The error comes from the fact that the libunwind library is requesting
    the value of register 0 (zero): This eventually leads us to
    ia64-linux-nat.c:ia64_linux_fetch_register.
    
    This function relies on ia64_cannot_fetch_register to determine
    whether or not we have access to the register's value.  The ptrace
    interface does not provide the r0 value, and so we end up telling
    the regcache that this register's value is not available.  And yet,
    for r0, we do not need to ask ptrace for its value, since it is
    always zero.
    
    So, the fix was to add a special rule for supplying a nul value
    when regnum == IA64_GR0_REGNUM.
    
    gdb/ChangeLog:
    
            * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
            handling for r0.

commit 251109bb013218e172cc5d4f576b7d7f147a5aa1
Author: ozapawandeep <ozapawandeep>
Date:   Wed Mar 28 04:37:43 2012 +0000

    Pawandeep Oza updated to write-after-apporval section at the correct order

commit 7bcc0eb208e6c2de92c5f83499e12ecb1a6deea1
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Mar 28 00:00:33 2012 +0000

    *** empty log message ***

commit d3eeb91e4f75eacd77a6e4a51f58741299962cd9
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Mar 27 23:00:05 2012 +0000

    daily update

commit 395529f0c2c0aec007426f83a6f229343f6090ce
Merge: 5d42f3a 8016fc2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 23:21:06 2012 +0200

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

commit 8016fc269972e5b0c8c47846b123abcca562a631
Merge: ff72e97 87f14ec
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 23:16:57 2012 +0200

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

commit 5d42f3a1ab8df617af33ae9199271138c1dc5df0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 23:16:51 2012 +0200

    .

commit 87f14ecb42140507c841547fbd612023b9853bf1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 20:44:13 2012 +0000

    gdb/doc/
    	* gdb.texinfo (Auto-loading): Move @menu to the end of @node.
    	Create two new links fir 'objfile-gdb.py file'
    	and 'dotdebug_gdb_scripts section'.

commit 8e2a924ccdd26b10576befd94558bdb4d5657f02
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 20:15:20 2012 +0000

    gdb/doc/
    	* gdb.texinfo (Auto-loading): Rename node reference
    	'.debug_gdb_scripts section' to 'dotdebug_gdb_scripts section'.
    	Twice.
    	(.debug_gdb_scripts section): Rename the node ...
    	(dotdebug_gdb_scripts section): ... here.
    	(Maintenance Commands): Also rename this node reference.

commit 7253b9be40dec37c84e2dd54c150639cff7e7361
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Tue Mar 27 19:16:23 2012 +0000

    Fix formatting.

commit 16aea4340523a95546d3757e0daf981e74ea7162
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Tue Mar 27 19:08:33 2012 +0000

    2012-03-27  Pedro Alves  <palves@redhat.com>
    
    	Eliminate struct ui_stream.
    
    	* ui-out.h (struct ui_stream): Delete.
    	(ui_out_field_stream): Adjust prototype.
    	(ui_out_stream_new, ui_out_stream_delete)
    	(make_cleanup_ui_out_stream_delete): Delete declarations.
    	* ui-out.c (ui_out_field_stream): Change prototype to take a
    	ui_file instead of a ui_stream.  Adjust.
    	(ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
    	(make_cleanup_ui_out_stream_delete): Delete.
    	* breakpoint.c (print_breakpoint_location)
    	(print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
    	ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
    	* disasm.c (dump_insns): Ditto.
    	(do_mixed_source_and_assembly, do_assembly_only): Adjust
    	prototype.
    	(gdb_disassembly): Use ui_file/mem_fileopen instead of
    	ui_stream/ui_out_stream_new.
    	* infcmd.c (print_return_value): Ditto.
    	* osdata.c (info_osdata_command): Don't allocate a local
    	ui_stream.
    	* stack.c (print_frame_arg, print_frame_args, print_frame): Use
    	ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
    	* tracepoint.c (print_one_static_tracepoint_marker): Don't
    	allocate a local ui_stream.
    	* mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
    	instead of ui_stream/ui_out_stream_new.
    	(list_args_or_locals): Don't allocate a local ui_stream.
    	* mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
    	(mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
    	ui_stream/ui_out_stream_new.
    	* cli/cli-setshow.c (do_setshow_command): Ditto.

commit 5d9a0e424ad53d532c51f4ef3a8cee9162668c36
Merge: c6ac4d0 9427b4b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 19:17:58 2012 +0200

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

commit 9427b4b37af348ca58c310c60b2a944f15ba7ec7
Merge: 04c45ef ba755e8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 19:17:58 2012 +0200

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

commit ba755e8861831324a951e7b1d5997e0f269e4ce4
Merge: 4096420 9a24de9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 19:17:57 2012 +0200

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

commit 9a24de9b56953045fa134b9042aa85952b0c0573
Merge: 901c7c9 23562c5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 19:17:57 2012 +0200

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

commit 23562c5ab19eef61e03148c7ab0ba7ed9b3299af
Merge: c989997 ff72e97
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 19:17:57 2012 +0200

    Merge branch 'secmove' into secmove-misc2

commit ff72e97cd015fcafd132c9e9e6c79402ceff83a0
Merge: 135e3f7 095df86
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 27 19:17:56 2012 +0200

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

commit c6ac4d0afc0d1cf246ad07b0466ecd038418b26b
Merge: cd90d56 04c45ef
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 22:35:56 2012 +0200

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

commit 04c45ef96f5cacfe6e3ee0f54ff5f6545ea0a796
Merge: 0f6003d 4096420
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 22:35:56 2012 +0200

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

commit 40964200e48f8eaaeadba004e288cae4af96a315
Merge: 854a71f 901c7c9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 22:35:55 2012 +0200

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

commit 901c7c910d2a0d554e42d3e4345203e8f71ae53b
Merge: 9e607b5 c989997
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 22:35:55 2012 +0200

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

commit c989997d6d141e551fe59fc72b473e6eaf15feaa
Merge: 8699684 135e3f7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 22:35:55 2012 +0200

    Merge branch 'secmove' into secmove-misc2

commit 135e3f78997d4886c66ae487217b62322da2ce00
Merge: 640f462 bb4f55d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 22:35:55 2012 +0200

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

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

Summary of changes:
 bfd/version.h                      |    2 +-
 gdb/ChangeLog                      |   80 ++
 gdb/MAINTAINERS                    |    2 +-
 gdb/NEWS                           |    6 +-
 gdb/arm-linux-tdep.c               |    5 +
 gdb/arm-tdep.c                     | 2061 ++++++++++++++++++++++++++++++++++++
 gdb/arm-tdep.h                     |    5 +
 gdb/breakpoint.c                   |   28 +-
 gdb/cli/cli-setshow.c              |   28 +-
 gdb/disasm.c                       |   22 +-
 gdb/doc/ChangeLog                  |   15 +
 gdb/doc/gdb.texinfo                |  589 +++++++----
 gdb/gdbserver/ChangeLog            |    9 +
 gdb/gdbserver/linux-low.c          |    2 +-
 gdb/gdbserver/server.c             |    4 -
 gdb/ia64-linux-nat.c               |   10 +
 gdb/infcmd.c                       |   10 +-
 gdb/m68klinux-nat.c                |   10 +-
 gdb/mi/mi-cmd-stack.c              |   22 +-
 gdb/mi/mi-main.c                   |   55 +-
 gdb/osdata.c                       |    5 +-
 gdb/stack.c                        |   34 +-
 gdb/tracepoint.c                   |    3 -
 gdb/ui-out.c                       |   37 +-
 gdb/ui-out.h                       |   19 +-
 gdb/version.in                     |    2 +-
 sim/common/ChangeLog               |    4 +
 sim/common/sim-core.h              |    8 +
 sim/erc32/ChangeLog                |    1 +
 sim/m32r/ChangeLog                 |    4 +
 sim/m32r/traps-linux.c             |    1 -
 sim/testsuite/sim/bfin/ChangeLog   |    6 +
 sim/testsuite/sim/bfin/allinsn.exp |   28 +
 33 files changed, 2726 insertions(+), 391 deletions(-)

First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 17420a6..d9d8427 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120325
+#define BFD_VERSION_DATE 20120328
 #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 36547a3..0b3f886 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,83 @@
+2012-03-28  Joel Brobecker  <brobecker@adacore.com>
+
+	* ia64-linux-nat.c (ia64_linux_fetch_register): Add special
+	handling for r0.
+
+2012-03-27  Pedro Alves  <palves@redhat.com>
+
+	Eliminate struct ui_stream.
+
+	* ui-out.h (struct ui_stream): Delete.
+	(ui_out_field_stream): Adjust prototype.
+	(ui_out_stream_new, ui_out_stream_delete)
+	(make_cleanup_ui_out_stream_delete): Delete declarations.
+	* ui-out.c (ui_out_field_stream): Change prototype to take a
+	ui_file instead of a ui_stream.  Adjust.
+	(ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
+	(make_cleanup_ui_out_stream_delete): Delete.
+	* breakpoint.c (print_breakpoint_location)
+	(print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
+	ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
+	* disasm.c (dump_insns): Ditto.
+	(do_mixed_source_and_assembly, do_assembly_only): Adjust
+	prototype.
+	(gdb_disassembly): Use ui_file/mem_fileopen instead of
+	ui_stream/ui_out_stream_new.
+	* infcmd.c (print_return_value): Ditto.
+	* osdata.c (info_osdata_command): Don't allocate a local
+	ui_stream.
+	* stack.c (print_frame_arg, print_frame_args, print_frame): Use
+	ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
+	* tracepoint.c (print_one_static_tracepoint_marker): Don't
+	allocate a local ui_stream.
+	* mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
+	instead of ui_stream/ui_out_stream_new.
+	(list_args_or_locals): Don't allocate a local ui_stream.
+	* mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
+	(mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
+	ui_stream/ui_out_stream_new.
+	* cli/cli-setshow.c (do_setshow_command): Ditto.
+
+2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
+
+	* arm-linux-tdep.c (arm_linux_init_abi): Call
+	set_gdbarch_process_record.  Initialize `arm_swi_record' field.
+	* arm-tdep.c (arm_process_record): New function.
+	(deallocate_reg_mem): New function.
+	(decode_insn): New function.
+	(thumb_record_branch): New function.
+	(thumb_record_ldm_stm_swi(): New function.
+	(thumb_record_misc): New function.
+	(thumb_record_ld_st_stack): New function.
+	(thumb_record_ld_st_imm_offset): New function.
+	(thumb_record_ld_st_reg_offset(): New function.
+	(thumb_record_add_sub_cmp_mov): New function.
+	(thumb_record_shift_add_sub): New function.
+	(arm_record_coproc_data_proc): New function.
+	(arm_record_coproc): New function.
+	(arm_record_b_bl): New function.
+	(arm_record_ld_st_multiple): New function.
+	(arm_record_ld_st_reg_offset): New function.
+	(arm_record_ld_st_imm_offset): New function.
+	(arm_record_data_proc_imm): New function.
+	(arm_record_data_proc_misc_ld_str): New function.
+	(arm_record_extension_space): New function.
+	(arm_record_strx): New function.
+	(sbo_sbz): New function.
+	(struct insn_decode_record): New structure for arm insn record.
+	(REG_ALLOC): New macro for reg allocations.
+	(MEM_ALLOC): New macro for memory allocations.
+	* arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
+
+2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
+	(store_register): Likewise.
+
+2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
+
+	* MAINTAINERS (Write After Approval): Add myself to the list.
+
 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	* NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index a6dceae..3cf2c97 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -583,6 +583,7 @@ Hans-Peter Nilsson				hp@bitrange.com
 David O'Brien					obrien@freebsd.org
 Alexandre Oliva					aoliva@redhat.com
 Karen Osmond					karen.osmond@gmail.com
+Pawandeep Oza					oza.pawandeep@gmail.com
 Denis Pilat					denis.pilat@st.com
 Kevin Pouget					kevin.pouget@st.com
 Paul Pluzhnikov					ppluzhnikov@google.com
@@ -650,7 +651,6 @@ Wu Zhou						woodzltc@cn.ibm.com
 Yoshinori Sato					ysato@users.sourceforge.jp
 Hui Zhu						teawater@gmail.com
 
-
 			Past Maintainers
 
 Whenever removing yourself, or someone else, from this file, consider
diff --git a/gdb/NEWS b/gdb/NEWS
index 5ec5252..5e5d806 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,10 @@
 
 *** Changes since GDB 7.4
 
+* GDB now supports reversible debugging on ARM, it allows you to
+  debug basic ARM and THUMB instructions, and provides 
+  record/replay support.  
+
 * The option "symbol-reloading" has been deleted as it is no longer used.
 
 * Python scripting
@@ -125,7 +129,7 @@ set auto-load off
   Disable auto-loading globally.
 
 show auto-load
-  Show auto-loading setting of all kinds of auto-loaded files,
+  Show auto-loading setting of all kinds of auto-loaded files.
 
 set auto-load gdb-scripts on|off
 show auto-load gdb-scripts
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index e41205b..486e6ed 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -1155,8 +1155,13 @@ arm_linux_init_abi (struct gdbarch_info info,
 					   simple_displaced_step_free_closure);
   set_gdbarch_displaced_step_location (gdbarch, displaced_step_at_entry_point);
 
+  /* Reversible debugging, process record.  */
+  set_gdbarch_process_record (gdbarch, arm_process_record);
 
   tdep->syscall_next_pc = arm_linux_syscall_next_pc;
+
+  /* Syscall record.  */
+  tdep->arm_swi_record = NULL;
 }
 
 /* Provide a prototype to silence -Wmissing-prototypes.  */
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index a3cdc7c..08c5ed4 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -55,6 +55,8 @@
 #include "gdb_assert.h"
 #include "vec.h"
 
+#include "record.h"
+
 #include "features/arm-with-m.c"
 #include "features/arm-with-m-fpa-layout.c"
 #include "features/arm-with-iwmmxt.c"
@@ -10444,3 +10446,2062 @@ vfp - VFP co-processor."),
 			   NULL, /* FIXME: i18n: "ARM debugging is %s.  */
 			   &setdebuglist, &showdebuglist);
 }
+
+/* ARM-reversible process record data structures.  */
+
+#define ARM_INSN_SIZE_BYTES 4    
+#define THUMB_INSN_SIZE_BYTES 2
+#define THUMB2_INSN_SIZE_BYTES 4
+
+
+#define INSN_S_L_BIT_NUM 20
+
+#define REG_ALLOC(REGS, LENGTH, RECORD_BUF) \
+        do  \
+          { \
+            unsigned int reg_len = LENGTH; \
+            if (reg_len) \
+              { \
+                REGS = XNEWVEC (uint32_t, reg_len); \
+                memcpy(&REGS[0], &RECORD_BUF[0], sizeof(uint32_t)*LENGTH); \
+              } \
+          } \
+        while (0)
+
+#define MEM_ALLOC(MEMS, LENGTH, RECORD_BUF) \
+        do  \
+          { \
+            unsigned int mem_len = LENGTH; \
+            if (mem_len) \
+            { \
+              MEMS =  XNEWVEC (struct arm_mem_r, mem_len);  \
+              memcpy(&MEMS->len, &RECORD_BUF[0], \
+                     sizeof(struct arm_mem_r) * LENGTH); \
+            } \
+          } \
+          while (0)
+
+/* Checks whether insn is already recorded or yet to be decoded. (boolean expression).  */
+#define INSN_RECORDED(ARM_RECORD) \
+        (0 != (ARM_RECORD)->reg_rec_count || 0 != (ARM_RECORD)->mem_rec_count)
+
+/* ARM memory record structure.  */
+struct arm_mem_r
+{
+  uint32_t len;    /* Record length.  */
+  CORE_ADDR addr;  /* Memory address.  */
+};
+
+/* ARM instruction record contains opcode of current insn
+   and execution state (before entry to decode_insn()),
+   contains list of to-be-modified registers and
+   memory blocks (on return from decode_insn()).  */
+
+typedef struct insn_decode_record_t
+{
+  struct gdbarch *gdbarch;
+  struct regcache *regcache;
+  CORE_ADDR this_addr;          /* Address of the insn being decoded.  */
+  uint32_t arm_insn;            /* Should accommodate thumb.  */
+  uint32_t cond;                /* Condition code.  */
+  uint32_t opcode;              /* Insn opcode.  */
+  uint32_t decode;              /* Insn decode bits.  */
+  uint32_t mem_rec_count;       /* No of mem records.  */
+  uint32_t reg_rec_count;       /* No of reg records.  */
+  uint32_t *arm_regs;           /* Registers to be saved for this record.  */
+  struct arm_mem_r *arm_mems;   /* Memory to be saved for this record.  */
+} insn_decode_record;
+
+
+/* Checks ARM SBZ and SBO mandatory fields.  */
+
+static int
+sbo_sbz (uint32_t insn, uint32_t bit_num, uint32_t len, uint32_t sbo)
+{
+  uint32_t ones = bits (insn, bit_num - 1, (bit_num -1) + (len - 1));
+
+  if (!len)
+    return 1;
+
+  if (!sbo)
+    ones = ~ones;
+
+  while (ones)
+    {
+      if (!(ones & sbo))
+        {
+          return 0;
+        }
+      ones = ones >> 1;
+    }
+  return 1;
+}
+
+typedef enum
+{
+  ARM_RECORD_STRH=1,
+  ARM_RECORD_STRD
+} arm_record_strx_t;
+
+typedef enum
+{
+  ARM_RECORD=1,
+  THUMB_RECORD,
+  THUMB2_RECORD
+} record_type_t;
+
+
+static int
+arm_record_strx (insn_decode_record *arm_insn_r, uint32_t *record_buf, 
+                 uint32_t *record_buf_mem, arm_record_strx_t str_type)
+{
+
+  struct regcache *reg_cache = arm_insn_r->regcache;
+  ULONGEST u_regval[2]= {0};
+
+  uint32_t reg_src1 = 0, reg_src2 = 0;
+  uint32_t immed_high = 0, immed_low = 0,offset_8 = 0, tgt_mem_addr = 0;
+  uint32_t opcode1 = 0;
+
+  arm_insn_r->opcode = bits (arm_insn_r->arm_insn, 21, 24);
+  arm_insn_r->decode = bits (arm_insn_r->arm_insn, 4, 7);
+  opcode1 = bits (arm_insn_r->arm_insn, 20, 24);
+
+
+  if (14 == arm_insn_r->opcode || 10 == arm_insn_r->opcode)
+    {
+      /* 1) Handle misc store, immediate offset.  */
+      immed_low = bits (arm_insn_r->arm_insn, 0, 3);
+      immed_high = bits (arm_insn_r->arm_insn, 8, 11);
+      reg_src1 = bits (arm_insn_r->arm_insn, 16, 19);
+      regcache_raw_read_unsigned (reg_cache, reg_src1,
+                                  &u_regval[0]);
+      if (ARM_PC_REGNUM == reg_src1)
+        {
+          /* If R15 was used as Rn, hence current PC+8.  */
+          u_regval[0] = u_regval[0] + 8;
+        }
+      offset_8 = (immed_high << 4) | immed_low;
+      /* Calculate target store address.  */
+      if (14 == arm_insn_r->opcode)
+        {
+          tgt_mem_addr = u_regval[0] + offset_8;
+        }
+      else
+        {
+          tgt_mem_addr = u_regval[0] - offset_8;
+        }
+      if (ARM_RECORD_STRH == str_type)
+        {
+          record_buf_mem[0] = 2;
+          record_buf_mem[1] = tgt_mem_addr;
+          arm_insn_r->mem_rec_count = 1;
+        }
+      else if (ARM_RECORD_STRD == str_type)
+        {
+          record_buf_mem[0] = 4;
+          record_buf_mem[1] = tgt_mem_addr;
+          record_buf_mem[2] = 4;
+          record_buf_mem[3] = tgt_mem_addr + 4;
+          arm_insn_r->mem_rec_count = 2;
+        }
+    }
+  else if (12 == arm_insn_r->opcode || 8 == arm_insn_r->opcode)
+    {
+      /* 2) Store, register offset.  */
+      /* Get Rm.  */
+      reg_src1 = bits (arm_insn_r->arm_insn, 0, 3);
+      /* Get Rn.  */
+      reg_src2 = bits (arm_insn_r->arm_insn, 16, 19);
+      regcache_raw_read_unsigned (reg_cache, reg_src1, &u_regval[0]);
+      regcache_raw_read_unsigned (reg_cache, reg_src2, &u_regval[1]);
+      if (15 == reg_src2)
+        {
+          /* If R15 was used as Rn, hence current PC+8.  */
+          u_regval[0] = u_regval[0] + 8;
+        }
+      /* Calculate target store address, Rn +/- Rm, register offset.  */
+      if (12 == arm_insn_r->opcode)
+        {
+          tgt_mem_addr = u_regval[0] + u_regval[1];
+        }
+      else
+        {
+          tgt_mem_addr = u_regval[1] - u_regval[0];
+        }
+      if (ARM_RECORD_STRH == str_type)
+        {
+          record_buf_mem[0] = 2;
+          record_buf_mem[1] = tgt_mem_addr;
+          arm_insn_r->mem_rec_count = 1;
+        }
+      else if (ARM_RECORD_STRD == str_type)
+        {
+          record_buf_mem[0] = 4;
+          record_buf_mem[1] = tgt_mem_addr;
+          record_buf_mem[2] = 4;
+          record_buf_mem[3] = tgt_mem_addr + 4;
+          arm_insn_r->mem_rec_count = 2;
+        }
+    }
+  else if (11 == arm_insn_r->opcode || 15 == arm_insn_r->opcode
+           || 2 == arm_insn_r->opcode  || 6 == arm_insn_r->opcode)
+    {
+      /* 3) Store, immediate pre-indexed.  */
+      /* 5) Store, immediate post-indexed.  */
+      immed_low = bits (arm_insn_r->arm_insn, 0, 3);
+      immed_high = bits (arm_insn_r->arm_insn, 8, 11);
+      offset_8 = (immed_high << 4) | immed_low;
+      reg_src1 = bits (arm_insn_r->arm_insn, 16, 19);
+      regcache_raw_read_unsigned (reg_cache, reg_src1, &u_regval[0]);
+      /* Calculate target store address, Rn +/- Rm, register offset.  */
+      if (15 == arm_insn_r->opcode || 6 == arm_insn_r->opcode)
+        {
+          tgt_mem_addr = u_regval[0] + offset_8;
+        }
+      else
+        {
+          tgt_mem_addr = u_regval[0] - offset_8;
+        }
+      if (ARM_RECORD_STRH == str_type)
+        {
+          record_buf_mem[0] = 2;
+          record_buf_mem[1] = tgt_mem_addr;
+          arm_insn_r->mem_rec_count = 1;
+        }
+      else if (ARM_RECORD_STRD == str_type)
+        {
+          record_buf_mem[0] = 4;
+          record_buf_mem[1] = tgt_mem_addr;
+          record_buf_mem[2] = 4;
+          record_buf_mem[3] = tgt_mem_addr + 4;
+          arm_insn_r->mem_rec_count = 2;
+        }
+      /* Record Rn also as it changes.  */
+      *(record_buf) = bits (arm_insn_r->arm_insn, 16, 19);
+      arm_insn_r->reg_rec_count = 1;
+    }
+  else if (9 == arm_insn_r->opcode || 13 == arm_insn_r->opcode
+           || 0 == arm_insn_r->opcode || 4 == arm_insn_r->opcode)
+    {
+      /* 4) Store, register pre-indexed.  */
+      /* 6) Store, register post -indexed.  */
+      reg_src1 = bits (arm_insn_r->arm_insn, 0, 3);
+      reg_src2 = bits (arm_insn_r->arm_insn, 16, 19);
+      regcache_raw_read_unsigned (reg_cache, reg_src1, &u_regval[0]);
+      regcache_raw_read_unsigned (reg_cache, reg_src2, &u_regval[1]);
+      /* Calculate target store address, Rn +/- Rm, register offset.  */
+      if (13 == arm_insn_r->opcode || 4 == arm_insn_r->opcode)
+        {
+          tgt_mem_addr = u_regval[0] + u_regval[1];
+        }
+      else
+        {
+          tgt_mem_addr = u_regval[1] - u_regval[0];
+        }
+      if (ARM_RECORD_STRH == str_type)
+        {
+          record_buf_mem[0] = 2;
+          record_buf_mem[1] = tgt_mem_addr;
+          arm_insn_r->mem_rec_count = 1;
+        }
+      else if (ARM_RECORD_STRD == str_type)
+        {
+          record_buf_mem[0] = 4;
+          record_buf_mem[1] = tgt_mem_addr;
+          record_buf_mem[2] = 4;
+          record_buf_mem[3] = tgt_mem_addr + 4;
+          arm_insn_r->mem_rec_count = 2;
+        }
+      /* Record Rn also as it changes.  */
+      *(record_buf) = bits (arm_insn_r->arm_insn, 16, 19);
+      arm_insn_r->reg_rec_count = 1;
+    }
+  return 0;
+}
+
+/* Handling ARM extension space insns.  */
+
+static int
+arm_record_extension_space (insn_decode_record *arm_insn_r)
+{
+  uint32_t ret = 0;  /* Return value: -1:record failure ;  0:success  */
+  uint32_t opcode1 = 0, opcode2 = 0, insn_op1 = 0;
+  uint32_t record_buf[8], record_buf_mem[8];
+  uint32_t reg_src1 = 0;
+  uint32_t immed_high = 0, immed_low = 0,offset_8 = 0, tgt_mem_addr = 0;
+  struct regcache *reg_cache = arm_insn_r->regcache;
+  ULONGEST u_regval = 0;
+
+  gdb_assert (!INSN_RECORDED(arm_insn_r));
+  /* Handle unconditional insn extension space.  */
+
+  opcode1 = bits (arm_insn_r->arm_insn, 20, 27);
+  opcode2 = bits (arm_insn_r->arm_insn, 4, 7);
+  if (arm_insn_r->cond)
+    {
+      /* PLD has no affect on architectural state, it just affects
+         the caches.  */
+      if (5 == ((opcode1 & 0xE0) >> 5))
+        {
+          /* BLX(1) */
+          record_buf[0] = ARM_PS_REGNUM;
+          record_buf[1] = ARM_LR_REGNUM;
+          arm_insn_r->reg_rec_count = 2;
+        }
+      /* STC2, LDC2, MCR2, MRC2, CDP2: <TBD>, co-processor insn.  */
+    }
+
+
+  opcode1 = bits (arm_insn_r->arm_insn, 25, 27);
+  if (3 == opcode1 && bit (arm_insn_r->arm_insn, 4))
+    {
+      ret = -1;
+      /* Undefined instruction on ARM V5; need to handle if later 
+         versions define it.  */
+    }
+
+  opcode1 = bits (arm_insn_r->arm_insn, 24, 27);
+  opcode2 = bits (arm_insn_r->arm_insn, 4, 7);
+  insn_op1 = bits (arm_insn_r->arm_insn, 20, 23);
+
+  /* Handle arithmetic insn extension space.  */
+  if (!opcode1 && 9 == opcode2 && 1 != arm_insn_r->cond
+      && !INSN_RECORDED(arm_insn_r))
+    {


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  cd90d568ea6fb6023ee2aec8c68d9ffd216693d8 (commit)
       via  0f6003dce4740a88ee61dd0f8c6cdf42810b9116 (commit)
      from  379a2b7b5fb4295bdc60124523782786df9d4fda (commit)

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

- Log -----------------------------------------------------------------
commit cd90d568ea6fb6023ee2aec8c68d9ffd216693d8
Merge: 379a2b7 0f6003d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 21:10:26 2012 +0200

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

commit 0f6003dce4740a88ee61dd0f8c6cdf42810b9116
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 21:10:13 2012 +0200

    .

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

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

First 500 lines of diff:
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 63f0813..0e111014 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -25057,8 +25057,9 @@ execution of untrusted scripts --- @value{GDBN} provides a feature for printing
 all the files attempted to be loaded.  Both existing and non-existing files may
 be printed.
 
-For example @ref{auto-load safe-path} applies to canonicalized filenames which
-may not be too obvious while setting it up.
+For example the list of directories from which it is safe to auto-load files
+(@pxref{auto-load safe-path}) applies to canonicalized filenames which may not
+be too obvious while setting it up.
 
 @smallexample
 (gdb) set debug auto-load ues


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  379a2b7b5fb4295bdc60124523782786df9d4fda (commit)
       via  34dc55262ca5ef8fb8445ed5019b5522a443fa71 (commit)
       via  854a71f7c123fdceca76268ff6ff0a732fbfca37 (commit)
       via  93272c548cdc51c0828235b32067b9b34872f6cc (commit)
       via  ea9f478bff0af2f05578c2df9838c0e9d8b8bb3b (commit)
       via  9e607b55acdf9f7336e593dd30052ce0911c9f2f (commit)
       via  86996843b5f5bcca314bfd0d146b64a8ffdb30de (commit)
       via  48f624d8d5b7a6155937a22dd674530069b9aae5 (commit)
      from  cff2631c17203ca340507ead14c62a5c66564866 (commit)

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

- Log -----------------------------------------------------------------
commit 379a2b7b5fb4295bdc60124523782786df9d4fda
Merge: cff2631 34dc552
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 21:02:38 2012 +0200

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

commit 34dc55262ca5ef8fb8445ed5019b5522a443fa71
Merge: b107f7e 854a71f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 21:02:35 2012 +0200

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

commit 854a71f7c123fdceca76268ff6ff0a732fbfca37
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 21:01:43 2012 +0200

    .

commit 93272c548cdc51c0828235b32067b9b34872f6cc
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 20:59:28 2012 +0200

    .

commit ea9f478bff0af2f05578c2df9838c0e9d8b8bb3b
Merge: 48f624d 9e607b5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 19:21:05 2012 +0200

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

commit 9e607b55acdf9f7336e593dd30052ce0911c9f2f
Merge: 0bc627f 8699684
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 19:21:05 2012 +0200

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

commit 86996843b5f5bcca314bfd0d146b64a8ffdb30de
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 19:21:01 2012 +0200

    .

commit 48f624d8d5b7a6155937a22dd674530069b9aae5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 19:20:33 2012 +0200

    .

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

Summary of changes:
 gdb/NEWS            |   12 +++++-----
 gdb/auto-load.c     |    7 +++--
 gdb/doc/gdb.texinfo |   63 ++++++++++++++++++++++++++++++++++++++++++++++-----
 3 files changed, 67 insertions(+), 15 deletions(-)

First 500 lines of diff:
diff --git a/gdb/NEWS b/gdb/NEWS
index 5ea554d..5ec5252 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -115,7 +115,7 @@ HP OpenVMS ia64			ia64-hp-openvms*
 
 set breakpoint condition-evaluation
 show breakpoint condition-evaluation
-  Controls whether breakpoint conditions are evaluated by GDB ("host") or by
+  Control whether breakpoint conditions are evaluated by GDB ("host") or by
   GDBserver ("target").  Default option "auto" chooses the most efficient
   available mode.
   This option can improve debugger efficiency depending on the speed of the
@@ -129,23 +129,23 @@ show auto-load
 
 set auto-load gdb-scripts on|off
 show auto-load gdb-scripts
-  Controls auto-loading of GDB canned sequences of commands files.
+  Control auto-loading of GDB canned sequences of commands files.
 
 set auto-load python-scripts on|off
 show auto-load python-scripts
-  Controls auto-loading of Python script files.
+  Control auto-loading of Python script files.
 
 set auto-load local-gdbinit on|off|warn-and-on|warn-and-off
 show auto-load local-gdbinit
-  Controls loading of init file (.gdbinit) from current directory.
+  Control loading of init file (.gdbinit) from current directory.
 
 set auto-load libthread-db on|off
 show auto-load libthread-db
-  Controls auto-loading of inferior specific thread debugging shared library.
+  Control auto-loading of inferior specific thread debugging shared library.
 
 set auto-load safe-path <dir1>[:<dir2>...]
 show auto-load safe-path
-  Sets a list of directories safe to hold auto-loaded files.
+  Set a list of directories from which it is safe to auto-load files.
 
 set debug auto-load on|off
 show debug auto-load
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 8d3153c..8c9dc39 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -33,6 +33,7 @@
 #include "cli/cli-decode.h"
 #include "cli/cli-setshow.h"
 #include "gdb_vecs.h"
+#include "readline/tilde.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.rc.  */
@@ -166,7 +167,7 @@ auto_load_safe_path_vec_update (void)
       if (next_dir != NULL)
 	*next_dir++ = 0;
 
-      real_path = gdb_realpath (safe_path);
+      real_path = gdb_realpath (tilde_expand (safe_path));
       VEC_safe_push (char_ptr, auto_load_safe_path_vec, real_path);
 
       if (debug_auto_load)
@@ -959,8 +960,8 @@ Usage: info auto-load local-gdbinit"),
   auto_load_safe_path_vec_update ();
   add_setshow_optional_filename_cmd ("safe-path", class_support,
 				     &auto_load_safe_path, _("\
-Set the directories safe to hold auto-loaded files."), _("\
-Show the directories safe to hold auto-loaded files."), _("\
+Set the list of directories from which it is safe to auto-load files."), _("\
+Show the list of directories from which it is safe to auto-load files."), _("\
 Various files loaded automatically for the 'set auto-load ...' options must\n\
 be located in one of the directories listed by this option.  Warning will be\n\
 printed and file will not be used otherwise.  Use empty string to allow any\n\
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index c9dd6c5..63f0813 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1271,6 +1271,7 @@ used when building @value{GDBN}; @pxref{System-wide configuration,
  ,System-wide configuration and settings}) and executes all the commands in
 that file.
 
+@anchor{init file in home directory}
 @item
 Reads the init file (if any) in your home directory@footnote{On
 DOS/Windows systems, the home directory is the one pointed to by the
@@ -1280,7 +1281,7 @@ that file.
 @item
 Processes command line options and operands.
 
-@anchor{local-gdbinit}
+@anchor{init file in current directory}
 @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
@@ -24969,11 +24970,20 @@ top of the source tree to the source search path.
 
 As the files of inferior can come from untrusted source (such as submitted by
 an application user) @value{GDBN} does not always load any files automatically.
+@value{GDBN} provides the @samp{set auto-load safe-path} setting to list
+directories trusted for loading files not explicitly requested by user.
 
-This setting should contain so called canonical filenames, after any symbolic
-links, current and parent directories have been resolved.  Both the
-@samp{auto-load safe-path} setting and the scripts being verified are
-canonicalized first for their matching.
+If the path is not set properly you will see a warning and the file does not
+get loaded:
+
+@smallexample
+$ ./gdb -q ./gdb
+Reading symbols from /home/user/src/gdb/gdb...done.
+warning: File "/home/user/src/gdb/gdb-gdb.rc" auto-loading has been declined by your `auto-load safe-path' set to "/usr/local".
+warning: File "/home/user/src/gdb/gdb-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "/usr/local".
+@end smallexample
+
+The list of trusted directories is controlled by commands:
 
 @table @code
 @kindex set auto-load safe-path
@@ -24991,11 +25001,52 @@ loading and execution of scripts.
 Setting this variable to an empty string disables this security protection.
 This variable is supposed to be set to the system directories writable by the
 system superuser only.  Users can add their source directories in home
-directories.  See also the deprecated option @xref{local-gdbinit}.
+directories.  See also deprecated @xref{init file in current directory}.
+
+There are multiple ways to get the files declined in the example above loaded:
+
+@itemize @bullet
+@item ~/.gdbinit: set auto-load safe-path /usr:/bin:~/src/gdb
+Specify this trusted directory (or a file) as additional component of the list.
+You have to specify also any existing directories displayed by
+by @samp{show auto-load safe-path} (such as @samp{/usr:/bin} in this example).
+
+@item gdb -iex "set auto-load safe-path /usr:/bin:~/src/gdb" [...]
+Specify this directory as in the previous case but just for a single
+@value{GDBN} session.
+
+@item gdb -iex "set auto-load safe-path" [...]
+Disable auto-loading safety for a single @value{GDBN} session.
+This assumes all the files you debug during this @value{GDBN} session will come
+from trusted sources.
+
+@item ./configure --without-auto-load-safe-path
+During compilation of @value{GDBN} you may disable any auto-loading safety.
+This assumes all the files you will ever debug with this @value{GDBN} come from
+trusted sources.
+@end itemize
+
+On the other hand you can also explicitly forbid automatic files loading which
+also suppresses any such warning messages:
+
+@itemize @bullet
+@item gdb -iex "set auto-load no" [...]
+You can use @value{GDBN} command-line option for a single @value{GDBN} session.
+
+@item ~/.gdbinit: set auto-load no
+Disable auto-loading globally for the user
+(@pxref{init file in home directory}).  While it is improbable you could also
+use system init file instead (@pxref{System-wide configuration}).
+@end itemize
 
 Be aware even downloaded source packages may contain exploit code which may get
 executed by @value{GDBN} without explicitly running any program therein.
 
+This setting should contain so called canonical filenames, after any symbolic
+links, current and parent directories have been resolved.  Both the
+@samp{auto-load safe-path} setting and the scripts being verified are
+canonicalized first for their matching.
+
 @node auto-load verbose mode
 @subsubsection Displaying files tried for auto-load
 @cindex debug auto-load


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  cff2631c17203ca340507ead14c62a5c66564866 (commit)
       via  b107f7ec25eb51e240e90a7ac24161f718af3b21 (commit)
       via  42794310373fa620c87674e89af42d253688232c (commit)
       via  0bc627f78ab4361b578db5314026e338d47f873e (commit)
       via  5242a4b97596f69f34a880a11963c8c962a17727 (commit)
       via  7e8e2d51a95dbe39ced62f573b0a6fe2e44ab06c (commit)
       via  38420fe5520a109bdffdcb8811bec5d51867a6e7 (commit)
       via  b7792a85e2cce9f69841344650350bb7cf54ddc4 (commit)
       via  097c0afe4c62e0ed0c5dfc833ecc282062ff6862 (commit)
       via  331d02855646f6ad2786db5d5f33d27b731a1ee9 (commit)
       via  02b848306402bc656bf879f3f1a0559c14afcb25 (commit)
       via  cdaf9636a3d27d6b7c255b4c355b912d08e980e1 (commit)
       via  efdfa32c3d37c9ec5eccceff42b818e816461d8f (commit)
       via  a9a9cd88206bbd3adb20ac1132c58111841751ea (commit)
       via  f955f3a217b8117a74a91ab621d93fd63f870bb4 (commit)
       via  640f462bc8b4fbca235375e870f4cb6243996661 (commit)
       via  3ef3d2e1c985426ccac17157185a962d20952624 (commit)
       via  c338d4bceb084a629b479e1ac36ab2b42737e1c2 (commit)
       via  a1c41c98de0b006bdad3a512be5d05be0ef9d8aa (commit)
       via  c6bbedcf2bdb97ade67f9dacd11d78152316d051 (commit)
       via  ecbf6e89d2155e3429a9cb9b30419a539565afe2 (commit)
       via  f4a023ee8a2015d98fd3aeb50a5ccde2f201ec46 (commit)
      from  0794ad2abda58f5e71641ca7b172134df295a4e9 (commit)

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

- Log -----------------------------------------------------------------
commit cff2631c17203ca340507ead14c62a5c66564866
Merge: 7e8e2d5 b107f7e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:56:07 2012 +0200

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

commit b107f7ec25eb51e240e90a7ac24161f718af3b21
Merge: 38420fe 4279431
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:56:07 2012 +0200

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

commit 42794310373fa620c87674e89af42d253688232c
Merge: b7792a8 0bc627f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:56:06 2012 +0200

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

commit 0bc627f78ab4361b578db5314026e338d47f873e
Merge: 097c0af 5242a4b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:56:03 2012 +0200

    Merge branch 'secmove-misc2' into secmove-misc2-warn
    
    Conflicts:
    	gdb/doc/gdb.texinfo

commit 5242a4b97596f69f34a880a11963c8c962a17727
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:54:40 2012 +0200

    .

commit 7e8e2d51a95dbe39ced62f573b0a6fe2e44ab06c
Merge: 02b8483 38420fe
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:08:19 2012 +0200

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

commit 38420fe5520a109bdffdcb8811bec5d51867a6e7
Merge: cdaf963 b7792a8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:08:19 2012 +0200

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

commit b7792a85e2cce9f69841344650350bb7cf54ddc4
Merge: efdfa32 097c0af
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:08:19 2012 +0200

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

commit 097c0afe4c62e0ed0c5dfc833ecc282062ff6862
Merge: a9a9cd8 331d028
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:08:18 2012 +0200

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

commit 331d02855646f6ad2786db5d5f33d27b731a1ee9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 18:08:12 2012 +0200

    .

commit 02b848306402bc656bf879f3f1a0559c14afcb25
Merge: 0794ad2 cdaf963
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 17:48:19 2012 +0200

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

commit cdaf9636a3d27d6b7c255b4c355b912d08e980e1
Merge: 7904b20 efdfa32
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 17:48:18 2012 +0200

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

commit efdfa32c3d37c9ec5eccceff42b818e816461d8f
Merge: fe59539 a9a9cd8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 17:48:18 2012 +0200

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

commit a9a9cd88206bbd3adb20ac1132c58111841751ea
Merge: 7e1b018 f955f3a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 17:48:18 2012 +0200

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

commit f955f3a217b8117a74a91ab621d93fd63f870bb4
Merge: ce6790e 640f462
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 17:48:18 2012 +0200

    Merge branch 'secmove' into secmove-misc2

commit 640f462bc8b4fbca235375e870f4cb6243996661
Merge: c680a2e 3ef3d2e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 17:48:17 2012 +0200

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

commit 3ef3d2e1c985426ccac17157185a962d20952624
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Mar 25 13:44:00 2012 +0000

    gdb/
    	* NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
    	Describe also the option "auto".

commit c338d4bceb084a629b479e1ac36ab2b42737e1c2
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Mar 25 07:56:12 2012 +0000

    sim: bfin: disable redundant test that makes 32bit gas angry

commit a1c41c98de0b006bdad3a512be5d05be0ef9d8aa
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Mar 25 06:43:43 2012 +0000

    sim: bfin: fix typos in large constants in tests
    
    Truncate constants that are larger than 32bits but get loaded into 32bit
    registers.  These high bits don't get used and don't really make sense.

commit c6bbedcf2bdb97ade67f9dacd11d78152316d051
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sun Mar 25 00:00:33 2012 +0000

    *** empty log message ***

commit ecbf6e89d2155e3429a9cb9b30419a539565afe2
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sat Mar 24 23:00:05 2012 +0000

    daily update

commit f4a023ee8a2015d98fd3aeb50a5ccde2f201ec46
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Sat Mar 24 09:31:09 2012 +0000

    	* nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
    	missing in last change.

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

Summary of changes:
 bfd/version.h                                     |    2 +-
 gdb/ChangeLog                                     |    5 +++++
 gdb/NEWS                                          |    5 +++--
 gdb/auto-load.c                                   |    6 ++++--
 gdb/doc/gdb.texinfo                               |   18 +++++++++---------
 gdb/linux-thread-db.c                             |    4 ++--
 gdb/version.in                                    |    2 +-
 sim/common/ChangeLog                              |    5 +++++
 sim/common/nrun.c                                 |    6 ++++++
 sim/testsuite/sim/bfin/ChangeLog                  |   10 ++++++++++
 sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0.s       |    2 +-
 sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_iutsh.s |    2 +-
 sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_m.s     |    2 +-
 sim/testsuite/sim/bfin/c_dsp32shift_vmaxvmax.s    |    2 +-
 sim/testsuite/sim/bfin/c_dsp32shiftim_af_s.s      |    2 +-
 sim/testsuite/sim/bfin/fact.s                     |    6 +++++-
 16 files changed, 56 insertions(+), 23 deletions(-)

First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index f12f4b5..17420a6 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120324
+#define BFD_VERSION_DATE 20120325
 #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 82fa1b4..36547a3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
+	Describe also the option "auto".
+
 2012-03-22  Richard Henderson  <rth@redhat.com>
 
 	* sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
diff --git a/gdb/NEWS b/gdb/NEWS
index 2011901..5ea554d 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -115,8 +115,9 @@ HP OpenVMS ia64			ia64-hp-openvms*
 
 set breakpoint condition-evaluation
 show breakpoint condition-evaluation
-  Controls whether breakpoint conditions are evaluated by GDB ("gdb") or by
-  GDBserver ("target").
+  Controls whether breakpoint conditions are evaluated by GDB ("host") or by
+  GDBserver ("target").  Default option "auto" chooses the most efficient
+  available mode.
   This option can improve debugger efficiency depending on the speed of the
   target.
 
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index f4cbd18..8d3153c 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -921,7 +921,8 @@ _initialize_auto_load (void)
   add_setshow_boolean_cmd ("gdb-scripts", class_support,
 			   &auto_load_gdb_scripts, _("\
 Enable or disable auto-loading canned sequences of commands scripts."), _("\
-Show enablement of auto-loading canned sequences of commands scripts."), _("\
+Show whether auto-loading canned sequences of commands scripts is enabled."),
+			   _("\
 If enabled, canned sequences of commands are loaded when the debugger reads\n\
 an executable or shared library.\n\
 This options has security implications for untrusted inferiors."),
@@ -938,7 +939,8 @@ Usage: info auto-load gdb-scripts [REGEXP]"),
 			auto_load_local_gdbinit_enum,
 			&auto_load_local_gdbinit, _("\
 Enable or disable auto-loading of .gdbinit script in current directory."), _("\
-Show enablement of auto-loading .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 script associated with inferior executable file instead.\n\
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 16b0d64..c9dd6c5 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1296,10 +1296,10 @@ You can control execution of this file:
 
 @table @code
 @kindex set auto-load local-gdbinit
-@item set auto-load local-gdbinit [yes|no|warn-and-yes|warn-and-no]
-Enable or disable the auto-loading of
-@xref{Sequences, Canned Sequences of Commands}, found in init file in the
-current directory.  The options @samp{warn-and-X} give warning before loading
+@item set auto-load local-gdbinit [yes|no]
+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 the favor
 of @xref{objfile-gdb.rc file}.
@@ -1311,7 +1311,6 @@ current directory is enabled or disabled and whether warnings are printed
 during its load.
 
 @kindex info auto-load local-gdbinit
-@cindex print commands from current directory init file have been auto-loaded
 @item info auto-load local-gdbinit
 Print whether canned sequences of commands from init file in the
 current directory have been auto-loaded.
@@ -1328,7 +1327,7 @@ If you wish to disable the auto-loading during startup,
 you must do something like the following:
 
 @smallexample
-$ gdb -iex "set auto-load python-scripts" myprogram
+$ gdb -iex "set auto-load python-scripts off" myprogram
 @end smallexample
 
 Option @samp{-ex} does not work because the auto-loading is then turned
@@ -24765,8 +24764,9 @@ and the list of auto-loaded scripts can be printed.
 @table @code
 @kindex set auto-load no
 @item set auto-load no
-Global disable of any auto-loading sub-commands of @value{GDBN}.  You may want
-to use this command with the @samp{-iex} option @pxref{-iex, -init-eval-command}.
+Globally disable any auto-loading sub-commands of @value{GDBN}.
+You may want to use this command with the @samp{-iex} option
+@pxref{-iex, -init-eval-command}.
 
 @kindex set auto-load python-scripts
 @item set auto-load python-scripts [yes|no]
@@ -24858,7 +24858,7 @@ is evaluated more than once.
 
 Similar to the @ref{objfile-gdb.py file} file @value{GDBN} also tries to load
 an @file{@var{objfile}-gdb.rc} file containing
-@xref{Sequences, Canned Sequences of Commands}, as long as
+canned sequences of commands (@pxref{Sequences}), as long as
 @samp{set auto-load gdb-scripts} is set to @samp{yes}.
 
 @node .debug_gdb_scripts section
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 8902b67..ee6bdd2 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -78,7 +78,7 @@
 
 static char *libthread_db_search_path;
 
-/* Enablement of thread_db auto-loading by the "set auto-load libthread-db"
+/* Whether thread_db auto-loading is enabled by the "set auto-load libthread-db"
    command.  */
 static int auto_load_thread_db = 1;
 
@@ -2050,7 +2050,7 @@ When non-zero, libthread-db debugging is enabled."),
   add_setshow_boolean_cmd ("libthread-db", class_support,
 			   &auto_load_thread_db, _("\
 Enable or disable auto-loading of inferior specific libthread_db."), _("\
-Show enablement of auto-loading inferior specific libthread_db."), _("\
+Show whether auto-loading inferior specific libthread_db is enabled."), _("\
 If enabled, libthread_db will be searched in 'set libthread-db-search-path'\n\
 locations to load libthread_db compatible with the inferior.\n\
 Standard system libthread_db still gets loaded even with this option off.\n\
diff --git a/gdb/version.in b/gdb/version.in
index ea072b9..22ea055 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.4.50.20120324-cvs
+7.4.50.20120325-cvs
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 9fea903..6e6d2fd 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-24  Hans-Peter Nilsson  <hp@axis.com>
+
+	* nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
+	missing in last change.
+
 2012-03-24  Mike Frysinger  <vapier@gentoo.org>
 
 	* acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
diff --git a/sim/common/nrun.c b/sim/common/nrun.c
index 8e92879..aa60c42 100644
--- a/sim/common/nrun.c
+++ b/sim/common/nrun.c
@@ -14,6 +14,12 @@ 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, see <http://www.gnu.org/licenses/>.  */
 
+/* Need to be before general includes, to pick up e.g. _GNU_SOURCE.  */
+#ifdef HAVE_CONFIG_H
+#include "cconfig.h"
+#include "tconfig.h"
+#endif
+
 #include <signal.h>
 
 /* For strsignal.  */
diff --git a/sim/testsuite/sim/bfin/ChangeLog b/sim/testsuite/sim/bfin/ChangeLog
index 849f2b2..ca634df 100644
--- a/sim/testsuite/sim/bfin/ChangeLog
+++ b/sim/testsuite/sim/bfin/ChangeLog
@@ -1,3 +1,13 @@
+2012-03-25  Mike Frysinger  <vapier@gentoo.org>
+
+	* c_dsp32mac_dr_a1a0.s: Change 0x12efbc5569 to 0xefbc5569.
+	* c_dsp32mac_dr_a1a0_iutsh.s: Change 0x12efbc556 to 0x2efbc556.
+	* c_dsp32mac_dr_a1a0_m.s: Change 0x12efbc5569 to 0xefbc5569.
+	* c_dsp32shift_vmaxvmax.s: Change 0xa11002001 to 0x11002001.
+	* c_dsp32shiftim_af_s.s: Change 0x3a1230001 to 0xa1230001.
+
+	* fact.s: Comment out test with too large a number (6227020800).
+
 2012-03-19  Mike Frysinger  <vapier@gentoo.org>
 
 	* se_all64bitg0opcodes.S, se_all64bitg1opcodes.S,
diff --git a/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0.s b/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0.s
index 700cbdf..e84f3d5 100644
--- a/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0.s
+++ b/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0.s
@@ -14,7 +14,7 @@
 	imm32 r1, 0xb2bcfec7;
 	imm32 r2, 0xc1348679;
 	imm32 r3, 0xd0049007;
-	imm32 r4, 0x12efbc5569;
+	imm32 r4, 0xefbc5569;
 	imm32 r5, 0xcd35560b;
 	imm32 r6, 0xe00c807d;
 	imm32 r7, 0xf78e9008;
diff --git a/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_iutsh.s b/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_iutsh.s
index 8d4232e..8f9e70c 100644
--- a/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_iutsh.s
+++ b/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_iutsh.s
@@ -14,7 +14,7 @@
 	imm32 r1, 0xb2bcfec7;
 	imm32 r2, 0xc1348679;
 	imm32 r3, 0xd0049007;
-	imm32 r4, 0x12efbc556;
+	imm32 r4, 0x2efbc556;
 	imm32 r5, 0xcd35560b;
 	imm32 r6, 0xe00c807d;
 	imm32 r7, 0xf78e9008;
diff --git a/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_m.s b/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_m.s
index 75fcc43..2b6f741 100644
--- a/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_m.s
+++ b/sim/testsuite/sim/bfin/c_dsp32mac_dr_a1a0_m.s
@@ -14,7 +14,7 @@
 	imm32 r1, 0xb2bcfec7;
 	imm32 r2, 0xc1348679;
 	imm32 r3, 0xd0049007;
-	imm32 r4, 0x12efbc5569;
+	imm32 r4, 0xefbc5569;
 	imm32 r5, 0xcd35560b;
 	imm32 r6, 0xe00c807d;
 	imm32 r7, 0xf78e9008;
diff --git a/sim/testsuite/sim/bfin/c_dsp32shift_vmaxvmax.s b/sim/testsuite/sim/bfin/c_dsp32shift_vmaxvmax.s
index 48e8d4b..0d4722a 100644
--- a/sim/testsuite/sim/bfin/c_dsp32shift_vmaxvmax.s
+++ b/sim/testsuite/sim/bfin/c_dsp32shift_vmaxvmax.s
@@ -33,7 +33,7 @@ CHECKREG r5, 0x71004300;
 CHECKREG r6, 0x81007100;
 CHECKREG r7, 0x19008100;
 
-imm32 r0, 0xa11002001;
+imm32 r0, 0x11002001;
 imm32 r1, 0xd2001001;
 imm32 r2, 0x14301302;
 imm32 r3, 0x43001003;
diff --git a/sim/testsuite/sim/bfin/c_dsp32shiftim_af_s.s b/sim/testsuite/sim/bfin/c_dsp32shiftim_af_s.s
index 748d8c9..5fdf02a 100644
--- a/sim/testsuite/sim/bfin/c_dsp32shiftim_af_s.s
+++ b/sim/testsuite/sim/bfin/c_dsp32shiftim_af_s.s
@@ -33,7 +33,7 @@ CHECKREG r5, 0x80000000;
 CHECKREG r6, 0x80000000;
 CHECKREG r7, 0x80000000;
 
-imm32 r0, 0x3a1230001;
+imm32 r0, 0xa1230001;
 imm32 r1, 0x1e345678;
 imm32 r2, 0x23f56789;
 imm32 r3, 0x34db789a;
diff --git a/sim/testsuite/sim/bfin/fact.s b/sim/testsuite/sim/bfin/fact.s
index 38e756c..aed8153 100644
--- a/sim/testsuite/sim/bfin/fact.s
+++ b/sim/testsuite/sim/bfin/fact.s
@@ -28,7 +28,11 @@ _test:
 	factorial 10 3628800
 	factorial 11 39916800
 	factorial 12 479001600
-	factorial 13 6227020800
+# This is the real answer, but it overflows 32bits.  Since gas itself
+# likes to choke on 64bit values when compiled for 32bit systems, just
+# specify the truncated 32bit value since that's what the Blackfin will
+# come up with too.
+#	factorial 13 6227020800
 	factorial 13 1932053504
 	pass
 


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  311969c984352ae38e3ff4d43492396015315e6a (commit)
       via  6a1f18459e4faf17356d44e7e8269de7f9d8c8ec (commit)
       via  ec62212449b4f70e43a04d8076cd1c4c568d02a7 (commit)
       via  011d4d2334b36d8cfaf01bdefbcf33f054ce3b90 (commit)
       via  c9b472987e839614da74f92cf5abebbf67dc94ea (commit)
       via  2099d4372ee9e6eca329f224d94cc5a33880da2f (commit)
       via  f7937a6f8f317213e5300be25b17e1142451d123 (commit)
       via  459eec9c21505a409c6690859acf90abc2153762 (commit)
       via  de93e87120921ca5bbad92bc7a26fab0af3a0ebd (commit)
       via  ad47fa6c6663bf108f196ed4c5fd06c06ea39d32 (commit)
       via  5f6c0ae84097c3c0aa617fccf546efcd22309e55 (commit)
       via  c680a2e2992722985043ab1ec3cbfe93d22483a4 (commit)
       via  12d2615ce8aaa8e7bb1a8e9bd8026fdbb0dca1d8 (commit)
       via  68c4998cf419703473c5985f99aee1715c92d5e4 (commit)
       via  5e92d838c0cd75ff9755f144aa84a1fb7d256e38 (commit)
       via  179a88f7f91130bc9ed3f62db06b7107909c0f17 (commit)
       via  26d46e62d77bdac3c3593d4e45854ad6ea78c6f2 (commit)
       via  7542f04ef01f0c98f79d855104dd63f4304f51a1 (commit)
       via  107456deabeb1c7b634264ab21818d64ae270ffe (commit)
       via  103be0f063fb84666222b0388298d9aabe8f3588 (commit)
       via  63b12f0554e013feafe2b86c19bb1b0c33659a8f (commit)
       via  6fd66ac74c0027650ef43577fdbe4d7f236051f2 (commit)
       via  238a89c5e410f61d2786cffca0a55dcf50325cd4 (commit)
       via  7bd3bcfebb31726b090ee1e94a598f7b1ae97ff8 (commit)
       via  483b15745ae9f8ea4490ca5fb87cb9c1405785a4 (commit)
       via  3fa74e6cd934b778a46812e85aacb75f5bb8ebf0 (commit)
       via  abef1f2b99a19695e75d2b8caca0409d68377a68 (commit)
       via  68a5e2c18948f7654ff9e1ba942e6384223eafd1 (commit)
       via  1ee91b8dc930c4a3093ada1ff16e46247143415f (commit)
       via  de9e84839d6034a7ceeb77c774f2e36e48cbd97d (commit)
       via  bee9c58b7e871312ed9f00f244dcfc3ea7888c0d (commit)
       via  104ac57ff96d3a8854569062910c42f7a9f762af (commit)
       via  6b02e7db494f5b445c71de1f59b034854008002b (commit)
       via  5371d4e89fdf618acf847a6337a8c91b99c673fa (commit)
       via  db6edb160e34a79d59886896b36650ac4e089539 (commit)
       via  c99aab9dc7c3a1bf110176158f87a630c08a719f (commit)
       via  fda4b74499e5d26b718a51b84ec637e435997fa6 (commit)
       via  88a05594363f87bf8fa19b0832c3fa96a61cbcf6 (commit)
       via  7be9989f3742c1a538e5736c86165e1aa03bc563 (commit)
       via  a7f9ca9cb797d653dc7919538e1dfa0c26010331 (commit)
       via  4c128abac9c5ae4c9f11f85d842cdc0c666499dc (commit)
       via  111bb24e08681edb232d7f8b0ac2b8bed3196fad (commit)
       via  442ce9b2cb41503472ed40a869324160b2579d1b (commit)
       via  18e847d87b24578d0972f1db0d968a3bf2cc2766 (commit)
       via  090670303d7de01450f38a906bfe3752f25ba783 (commit)
       via  92ab086d5a3f9dc7e03dfe21c98b70274fc411ea (commit)
       via  6080f942dde1a88ecfa33cead8fad514b87b6d7b (commit)
       via  0bfd830772cb56402c87b8561afdf5fdc066a15d (commit)
       via  e9051f959054c7c0e19515f8174d894726d345e9 (commit)
      from  204376e6b7f72da164f7db49480fcad7f69fc78e (commit)

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

- Log -----------------------------------------------------------------
commit 311969c984352ae38e3ff4d43492396015315e6a
Merge: f7937a6 6a1f184
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 10:08:37 2012 +0100

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

commit 6a1f18459e4faf17356d44e7e8269de7f9d8c8ec
Merge: 459eec9 ec62212
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 10:08:37 2012 +0100

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

commit ec62212449b4f70e43a04d8076cd1c4c568d02a7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 10:07:12 2012 +0100

    .

commit 011d4d2334b36d8cfaf01bdefbcf33f054ce3b90
Merge: c9b4729 2099d43
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 09:47:13 2012 +0100

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

commit c9b472987e839614da74f92cf5abebbf67dc94ea
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 09:47:11 2012 +0100

    .

commit 2099d4372ee9e6eca329f224d94cc5a33880da2f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 09:27:23 2012 +0100

    .

commit f7937a6f8f317213e5300be25b17e1142451d123
Merge: 204376e 459eec9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 08:50:07 2012 +0100

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

commit 459eec9c21505a409c6690859acf90abc2153762
Merge: e30d8fb de93e87
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 08:50:06 2012 +0100

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

commit de93e87120921ca5bbad92bc7a26fab0af3a0ebd
Merge: 01fb059 ad47fa6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 08:50:01 2012 +0100

    Merge branch 'secmove-misc2-warn' into secmove-misc2-warn-safepath
    
    Conflicts:
    	gdb/auto-load.c
    	gdb/python/py-auto-load.c

commit ad47fa6c6663bf108f196ed4c5fd06c06ea39d32
Merge: 90c5527 5f6c0ae
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 08:48:30 2012 +0100

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

commit 5f6c0ae84097c3c0aa617fccf546efcd22309e55
Merge: 12d2615 c680a2e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 08:48:30 2012 +0100

    Merge branch 'secmove' into secmove-misc2

commit c680a2e2992722985043ab1ec3cbfe93d22483a4
Merge: d651fc3 68c4998
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 08:48:29 2012 +0100

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

commit 12d2615ce8aaa8e7bb1a8e9bd8026fdbb0dca1d8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Mar 24 08:47:38 2012 +0100

    .

commit 68c4998cf419703473c5985f99aee1715c92d5e4
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sat Mar 24 05:38:34 2012 +0000

    [PATCH] sim: make sure to include strsignal prototype
    
    Before POSIX standardized strsignal(), old systems would hide the
    prototype unless the normal extension defines were enabled.  So use
    the AC_USE_SYSTEM_EXTENSIONS helper for that.
    
    Then make sure we include string.h ourselves in nrun.c rather than
    relying on implicit includes via other sim headers.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 5e92d838c0cd75ff9755f144aa84a1fb7d256e38
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sat Mar 24 05:37:10 2012 +0000

    sim: testsuite: regen configure after rl78 addition

commit 179a88f7f91130bc9ed3f62db06b7107909c0f17
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sat Mar 24 05:33:41 2012 +0000

    sim: cris: update testsuite output after strsignal change

commit 26d46e62d77bdac3c3593d4e45854ad6ea78c6f2
Author: mkuvyrkov <mkuvyrkov>
Date:   Sat Mar 24 01:09:28 2012 +0000

    	gas/
    	* config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
    	* doc/c-mips.texi: Mention XLP.
    
    	opcodes/
    	* mips-dis.c (mips_arch_choices): Add entry for Broadcom XLP.

commit 7542f04ef01f0c98f79d855104dd63f4304f51a1
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Mar 24 00:00:04 2012 +0000

    *** empty log message ***

commit 107456deabeb1c7b634264ab21818d64ae270ffe
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Mar 23 23:00:06 2012 +0000

    daily update

commit 103be0f063fb84666222b0388298d9aabe8f3588
Author: Doug Evans <dje@google.com>
Date:   Fri Mar 23 22:28:35 2012 +0000

    	* lib/gdb.exp (BUILD_DATA_DIRECTORY): New global.

commit 63b12f0554e013feafe2b86c19bb1b0c33659a8f
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Mar 23 20:27:08 2012 +0000

    2012-03-23  Pedro Alves  <palves@redhat.com>
    
    	* linux-low.c (linux_qxfer_libraries_svr4): Terminate the
    	"library-list-svr4" element's start tag when the the DSO list is
    	empty.

commit 6fd66ac74c0027650ef43577fdbe4d7f236051f2
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Mar 23 20:26:14 2012 +0000

    2012-03-23  Pedro Alves  <palves@redhat.com>
    
    	* linux-low.c (read_one_ptr): Read the inferior's pointer through
    	a variable whose type size is the same as the inferior's pointer
    	size.

commit 0bfd830772cb56402c87b8561afdf5fdc066a15d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 21:31:09 2012 +0100

    .

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

Summary of changes:
 bfd/ChangeLog                                  |   40 ++
 bfd/bfd-in.h                                   |    3 +
 bfd/bfd-in2.h                                  |    3 +
 bfd/config.in                                  |    3 +
 bfd/configure                                  |   16 +
 bfd/configure.in                               |    3 +
 bfd/elf.c                                      |   13 +-
 bfd/elf32-tic6x.c                              |    3 +
 bfd/elf64-ppc.c                                |    9 +-
 bfd/elflink.c                                  |   21 +-
 bfd/linker.c                                   |  143 +++---
 bfd/plugin.c                                   |   37 ++
 bfd/version.h                                  |    2 +-
 gdb/.gitignore                                 |    2 +
 gdb/ChangeLog                                  |   57 +++-
 gdb/MAINTAINERS                                |    1 +
 gdb/NEWS                                       |    4 +
 gdb/amd64-linux-nat.c                          |    4 +-
 gdb/arm-linux-nat.c                            |    2 +-
 gdb/auto-load.c                                |    3 +
 gdb/ax-gdb.c                                   |    2 +-
 gdb/doc/ChangeLog                              |    7 +
 gdb/doc/gdb.texinfo                            |   81 +++-
 gdb/expprint.c                                 |    3 +-
 gdb/expression.h                               |    2 +
 gdb/gdbserver/.gitignore                       |    8 +
 gdb/gdbserver/ChangeLog                        |   27 +
 gdb/gdbserver/linux-arm-low.c                  |    2 +-
 gdb/gdbserver/linux-low.c                      |   44 ++-
 gdb/gdbserver/linux-low.h                      |    5 +-
 gdb/gdbserver/linux-x86-low.c                  |    4 +-
 gdb/ia64-linux-nat.c                           |    2 +-
 gdb/jit.c                                      |   13 +-
 gdb/linux-nat.c                                |   16 +-
 gdb/linux-nat.h                                |    6 +-
 gdb/ppc-linux-nat.c                            |    2 +-
 gdb/procfs.c                                   |    2 +-
 gdb/python/py-auto-load.c                      |    2 +
 gdb/python/py-value.c                          |   43 ++
 gdb/sparc-linux-nat.c                          |    2 +-
 gdb/sparc-nat.c                                |    2 +-
 gdb/symtab.c                                   |    2 +-
 gdb/testsuite/ChangeLog                        |   12 +
 gdb/testsuite/gdb.python/Makefile.in           |    2 +-
 gdb/testsuite/gdb.python/py-objfile-script.exp |    2 +-
 gdb/testsuite/gdb.python/py-section-script.exp |    6 +-
 gdb/testsuite/gdb.python/py-value-cc.exp       |   48 ++
 gdb/testsuite/gdb.python/py-value.cc           |   39 ++
 gdb/testsuite/lib/gdb.exp                      |    5 +-
 gdb/version.in                                 |    2 +-
 opcodes/ChangeLog                              |    4 +
 opcodes/mips-dis.c                             |    8 +
 sim/arm/ChangeLog                              |    4 +
 sim/arm/aclocal.m4                             |   11 +-
 sim/arm/config.in                              |   32 ++
 sim/arm/configure                              |  304 +++++++-----
 sim/avr/ChangeLog                              |    4 +
 sim/avr/aclocal.m4                             |   11 +-
 sim/avr/config.in                              |   32 ++
 sim/avr/configure                              |  304 +++++++-----
 sim/bfin/ChangeLog                             |    4 +
 sim/bfin/aclocal.m4                            |   11 +-
 sim/bfin/config.in                             |   32 ++
 sim/bfin/configure                             |  370 +++++++++------
 sim/common/ChangeLog                           |   12 +
 sim/common/acinclude.m4                        |   65 ++-
 sim/common/aclocal.m4                          |   11 +-
 sim/common/config.in                           |   32 ++
 sim/common/configure                           |  298 +++++++-----
 sim/common/nrun.c                              |   10 +
 sim/cr16/ChangeLog                             |    4 +
 sim/cr16/aclocal.m4                            |   11 +-
 sim/cr16/config.in                             |   32 ++
 sim/cr16/configure                             |  376 +++++++++------
 sim/cris/ChangeLog                             |    4 +
 sim/cris/aclocal.m4                            |   11 +-
 sim/cris/config.in                             |   35 ++
 sim/cris/configure                             |  376 +++++++++------
 sim/d10v/ChangeLog                             |    4 +
 sim/d10v/aclocal.m4                            |   11 +-
 sim/d10v/config.in                             |   32 ++
 sim/d10v/configure                             |  376 +++++++++------
 sim/erc32/ChangeLog                            |    4 +
 sim/erc32/aclocal.m4                           |   11 +-
 sim/erc32/config.in                            |   32 ++
 sim/erc32/configure                            |  298 +++++++-----
 sim/frv/ChangeLog                              |    4 +
 sim/frv/aclocal.m4                             |   11 +-
 sim/frv/config.in                              |   32 ++
 sim/frv/configure                              |  304 +++++++-----
 sim/h8300/ChangeLog                            |    4 +
 sim/h8300/aclocal.m4                           |   11 +-
 sim/h8300/config.in                            |   32 ++
 sim/h8300/configure                            |  304 +++++++-----
 sim/igen/ChangeLog                             |    4 +
 sim/igen/configure                             |  116 ++++--
 sim/iq2000/ChangeLog                           |    4 +
 sim/iq2000/aclocal.m4                          |   11 +-
 sim/iq2000/config.in                           |   32 ++
 sim/iq2000/configure                           |  304 +++++++-----
 sim/lm32/ChangeLog                             |    4 +
 sim/lm32/aclocal.m4                            |   11 +-
 sim/lm32/config.in                             |   35 ++
 sim/lm32/configure                             |  304 +++++++-----
 sim/m32c/ChangeLog                             |    4 +
 sim/m32c/aclocal.m4                            |   11 +-
 sim/m32c/config.in                             |   34 ++-
 sim/m32c/configure                             |  304 +++++++-----
 sim/m32r/ChangeLog                             |    4 +
 sim/m32r/aclocal.m4                            |   11 +-
 sim/m32r/config.in                             |   32 ++
 sim/m32r/configure                             |  304 +++++++-----
 sim/m68hc11/ChangeLog                          |    4 +
 sim/m68hc11/aclocal.m4                         |   11 +-
 sim/m68hc11/config.in                          |   35 ++
 sim/m68hc11/configure                          |  376 +++++++++------
 sim/mcore/ChangeLog                            |    4 +
 sim/mcore/aclocal.m4                           |   11 +-
 sim/mcore/config.in                            |   32 ++
 sim/mcore/configure                            |  304 +++++++-----
 sim/microblaze/ChangeLog                       |    4 +
 sim/microblaze/aclocal.m4                      |   11 +-
 sim/microblaze/config.in                       |   32 ++
 sim/microblaze/configure                       |  304 +++++++-----
 sim/mips/ChangeLog                             |    4 +
 sim/mips/aclocal.m4                            |   11 +-
 sim/mips/config.in                             |   32 ++
 sim/mips/configure                             |  378 +++++++++------
 sim/mn10300/ChangeLog                          |    4 +
 sim/mn10300/aclocal.m4                         |   11 +-
 sim/mn10300/config.in                          |   35 ++
 sim/mn10300/configure                          |  376 +++++++++------
 sim/moxie/ChangeLog                            |    4 +
 sim/moxie/aclocal.m4                           |   11 +-
 sim/moxie/config.in                            |   47 ++
 sim/moxie/configure                            |  304 +++++++-----
 sim/rl78/ChangeLog                             |    4 +
 sim/rl78/aclocal.m4                            |   11 +-
 sim/rl78/config.in                             |   38 ++-
 sim/rl78/configure                             |  304 +++++++-----
 sim/rx/ChangeLog                               |    9 +
 sim/rx/aclocal.m4                              |   11 +-
 sim/rx/config.in                               |   44 ++-
 sim/rx/configure                               |  310 +++++++-----
 sim/rx/configure.ac                            |    6 +-
 sim/sh/ChangeLog                               |    4 +
 sim/sh/aclocal.m4                              |   11 +-
 sim/sh/config.in                               |   32 ++
 sim/sh/configure                               |  304 +++++++-----
 sim/sh64/ChangeLog                             |    4 +
 sim/sh64/aclocal.m4                            |   11 +-
 sim/sh64/config.in                             |   32 ++
 sim/sh64/configure                             |  304 +++++++-----
 sim/testsuite/ChangeLog                        |  617 +-----------------------
 sim/testsuite/configure                        |    3 +
 sim/testsuite/sim/arm/ChangeLog                |  117 +++++
 sim/testsuite/sim/cris/ChangeLog               |  163 +++++++
 sim/testsuite/sim/cris/asm/addqpc.ms           |    2 +-
 sim/testsuite/sim/cris/asm/boundmv32.ms        |    2 +-
 sim/testsuite/sim/cris/asm/fidxd.ms            |    2 +-
 sim/testsuite/sim/cris/asm/fidxi.ms            |    2 +-
 sim/testsuite/sim/cris/asm/ftagd.ms            |    2 +-
 sim/testsuite/sim/cris/asm/ftagi.ms            |    2 +-
 sim/testsuite/sim/cris/asm/halt.ms             |    2 +-
 sim/testsuite/sim/cris/asm/io6.ms              |    2 +-
 sim/testsuite/sim/cris/asm/io7.ms              |    2 +-
 sim/testsuite/sim/cris/asm/io8.ms              |    2 +-
 sim/testsuite/sim/cris/asm/io9.ms              |    2 +-
 sim/testsuite/sim/cris/asm/movecpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movempc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movepcb.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movepcd.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movepcw.ms          |    2 +-
 sim/testsuite/sim/cris/asm/moveqpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/moverbpc.ms         |    2 +-
 sim/testsuite/sim/cris/asm/moverdpc.ms         |    2 +-
 sim/testsuite/sim/cris/asm/moverpcb.ms         |    2 +-
 sim/testsuite/sim/cris/asm/moverpcw.ms         |    2 +-
 sim/testsuite/sim/cris/asm/moverwpc.ms         |    2 +-
 sim/testsuite/sim/cris/asm/movppc.ms           |    2 +-
 sim/testsuite/sim/cris/asm/movrss.ms           |    2 +-
 sim/testsuite/sim/cris/asm/movscpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movsmpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movsrpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movssr.ms           |    2 +-
 sim/testsuite/sim/cris/asm/movucpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movumpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/movurpc.ms          |    2 +-
 sim/testsuite/sim/cris/asm/msteppc1.ms         |    2 +-
 sim/testsuite/sim/cris/asm/msteppc2.ms         |    2 +-
 sim/testsuite/sim/cris/asm/msteppc3.ms         |    2 +-
 sim/testsuite/sim/cris/asm/rfg.ms              |    2 +-
 sim/testsuite/sim/cris/asm/sbfs.ms             |    2 +-
 sim/testsuite/sim/cris/asm/subqpc.ms           |    2 +-
 sim/testsuite/sim/cris/c/clone5.c              |    2 +-
 sim/testsuite/sim/cris/c/fcntl1.c              |    2 +-
 sim/testsuite/sim/cris/c/kill2.c               |    2 +-
 sim/testsuite/sim/cris/c/kill3.c               |    2 +-
 sim/testsuite/sim/cris/c/mprotect1.c           |    2 +-
 sim/testsuite/sim/cris/c/pipe5.c               |    2 +-
 sim/testsuite/sim/cris/c/readlink5.c           |    2 +-
 sim/testsuite/sim/cris/c/rtsigprocmask1.c      |    2 +-
 sim/testsuite/sim/cris/c/rtsigsuspend1.c       |    2 +-
 sim/testsuite/sim/cris/c/sig10.c               |    2 +-
 sim/testsuite/sim/cris/c/sig11.c               |    2 +-
 sim/testsuite/sim/cris/c/sig3.c                |    2 +-
 sim/testsuite/sim/cris/c/sig4.c                |    2 +-
 sim/testsuite/sim/cris/c/sig5.c                |    2 +-
 sim/testsuite/sim/cris/c/sig6.c                |    2 +-
 sim/testsuite/sim/cris/c/sig7.c                |    2 +-
 sim/testsuite/sim/cris/c/sig8.c                |    2 +-
 sim/testsuite/sim/cris/c/sigreturn1.c          |    2 +-
 sim/testsuite/sim/cris/c/sigreturn2.c          |    2 +-
 sim/testsuite/sim/cris/c/syscall1.c            |    2 +-
 sim/testsuite/sim/cris/c/syscall2.c            |    2 +-
 sim/testsuite/sim/cris/c/syscall3.c            |    2 +-
 sim/testsuite/sim/cris/c/syscall4.c            |    2 +-
 sim/testsuite/sim/cris/c/sysctl2.c             |    2 +-
 sim/testsuite/sim/fr30/ChangeLog               |  112 +++++
 sim/testsuite/sim/frv/ChangeLog                |   76 +++
 sim/testsuite/sim/m32r/ChangeLog               |  122 +++++
 sim/testsuite/sim/v850/ChangeLog               |   19 +
 sim/v850/ChangeLog                             |    4 +
 sim/v850/aclocal.m4                            |   11 +-
 sim/v850/config.in                             |   32 ++
 sim/v850/configure                             |  376 +++++++++------
 226 files changed, 7474 insertions(+), 4253 deletions(-)
 create mode 100644 gdb/testsuite/gdb.python/py-value-cc.exp
 create mode 100644 gdb/testsuite/gdb.python/py-value.cc
 create mode 100644 sim/testsuite/sim/arm/ChangeLog
 create mode 100644 sim/testsuite/sim/cris/ChangeLog
 create mode 100644 sim/testsuite/sim/fr30/ChangeLog
 create mode 100644 sim/testsuite/sim/frv/ChangeLog
 create mode 100644 sim/testsuite/sim/m32r/ChangeLog
 create mode 100644 sim/testsuite/sim/v850/ChangeLog

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 735a0ba..04c3b31 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,43 @@
+2012-03-23  Alan Modra  <amodra@gmail.com>
+
+	* elf.c (assign_file_positions_for_non_load_sections): Don't warn
+	on empty alloc sections.
+
+2012-03-23  Alan Modra  <amodra@gmail.com>
+
+	* linker.c (_bfd_nearby_section): New function, split out from..
+	(fix_syms): ..here.
+	* bfd-in.h (_bfd_nearby_section): Declare.
+	* bfd-in2.h: Regenerate.
+	* elflink.c (elf_link_input_bfd): Don't use text_index_section or
+	data_index_section with ld -q or ld -r output relocs against
+	stripped output sections.  Instead use _bfd_nearby_section.
+
+2012-03-23  Alan Modra  <amodra@gmail.com>
+
+	PR binutils/13894
+	* elf64-ppc.c (opd_entry_value): Read full symbol table when
+	sym hashes unavailable.
+
+2012-03-21  Eliot Dresselhaus  <eliot@sonic.net>
+
+	* elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
+	for non-C6X objects.
+
+2012-03-20  Kai Tietz  <ktietz@redhat.com>
+
+	PR ld/12742
+	* configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
+	* plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
+	Add windows.h header include if HAVE_WINDOWS_H is defined.
+	(dlerror): New static function if windows variant is used instead
+	of dlfcn.h.
+	(dlclose): Likewise.
+	(dlopen): Likewise.
+	(dlsym): Likewise.
+	* configure: Regenerated.
+	* config.in: Regenerated.
+
 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/13880
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 40ed786..c331f3b 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -705,6 +705,9 @@ extern int bfd_get_sign_extend_vma
 extern struct bfd_section *_bfd_elf_tls_setup
   (bfd *, struct bfd_link_info *);
 
+extern struct bfd_section *
+_bfd_nearby_section (bfd *, struct bfd_section *, bfd_vma);
+
 extern void _bfd_fix_excluded_sec_syms
   (bfd *, struct bfd_link_info *);
 
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index bea3a05..61513f2 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -712,6 +712,9 @@ extern int bfd_get_sign_extend_vma
 extern struct bfd_section *_bfd_elf_tls_setup
   (bfd *, struct bfd_link_info *);
 
+extern struct bfd_section *
+_bfd_nearby_section (bfd *, struct bfd_section *, bfd_vma);
+
 extern void _bfd_fix_excluded_sec_syms
   (bfd *, struct bfd_link_info *);
 
diff --git a/bfd/config.in b/bfd/config.in
index 98157e1..cb53b14 100644
--- a/bfd/config.in
+++ b/bfd/config.in
@@ -245,6 +245,9 @@
 /* Define if <sys/procfs.h> has win32_pstatus_t. */
 #undef HAVE_WIN32_PSTATUS_T
 
+/* Define to 1 if you have the <windows.h> header file. */
+#undef HAVE_WINDOWS_H
+
 /* Define to 1 if you have the <zlib.h> header file. */
 #undef HAVE_ZLIB_H
 
diff --git a/bfd/configure b/bfd/configure
index cff9b26..58a57ba 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13508,6 +13508,22 @@ fi
 
 fi
 
+
+for ac_header in windows.h dlfcn.h
+do :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+eval as_val=\$$as_ac_Header
+   if test "x$as_val" = x""yes; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
 if test "${gcc_cv_header_string+set}" = set; then :
diff --git a/bfd/configure.in b/bfd/configure.in
index c40c825..f443915 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -190,6 +190,9 @@ AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h)
 GCC_HEADER_STDINT(bfd_stdint.h)
 AC_HEADER_TIME
 AC_HEADER_DIRENT
+
+AC_CHECK_HEADERS(windows.h dlfcn.h)
+
 ACX_HEADER_STRING
 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
 AC_CHECK_FUNCS(strtoull)
diff --git a/bfd/elf.c b/bfd/elf.c
index 5aabeeb..df43a6a 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4820,12 +4820,13 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
 	BFD_ASSERT (hdr->sh_offset == hdr->bfd_section->filepos);
       else if ((hdr->sh_flags & SHF_ALLOC) != 0)
 	{
-	  (*_bfd_error_handler)
-	    (_("%B: warning: allocated section `%s' not in segment"),
-	     abfd,
-	     (hdr->bfd_section == NULL
-	      ? "*unknown*"
-	      : hdr->bfd_section->name));
+	  if (hdr->sh_size != 0)
+	    (*_bfd_error_handler)
+	      (_("%B: warning: allocated section `%s' not in segment"),
+	       abfd,
+	       (hdr->bfd_section == NULL
+		? "*unknown*"
+		: hdr->bfd_section->name));
 	  /* We don't need to page align empty sections.  */
 	  if ((abfd->flags & D_PAGED) != 0 && hdr->sh_size != 0)
 	    off += vma_page_aligned_bias (hdr->sh_addr, off,
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index 6d6b59b..8abfdd0 100644
--- a/bfd/elf32-tic6x.c
+++ b/bfd/elf32-tic6x.c
@@ -4011,6 +4011,9 @@ elf32_tic6x_merge_private_bfd_data (bfd *ibfd, bfd *obfd)
   if (!_bfd_generic_verify_endian_match (ibfd, obfd))
     return FALSE;
 
+  if (! is_tic6x_elf (ibfd) || ! is_tic6x_elf (obfd))
+    return TRUE;
+
   if (!elf32_tic6x_merge_attributes (ibfd, obfd))
     return FALSE;
 
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index f4f5d0b..e7a01c2 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -5585,15 +5585,18 @@ opd_entry_value (asection *opd_sec,
 	      unsigned long symndx = ELF64_R_SYM (look->r_info);
 	      asection *sec;
 
-	      if (symndx < symtab_hdr->sh_info)
+	      if (symndx < symtab_hdr->sh_info
+		  || elf_sym_hashes (opd_bfd) == NULL)
 		{
 		  Elf_Internal_Sym *sym;
 
 		  sym = (Elf_Internal_Sym *) symtab_hdr->contents;
 		  if (sym == NULL)
 		    {
-		      sym = bfd_elf_get_elf_syms (opd_bfd, symtab_hdr,
-						  symtab_hdr->sh_info,
+		      size_t symcnt = symtab_hdr->sh_info;
+		      if (elf_sym_hashes (opd_bfd) == NULL)
+			symcnt = symtab_hdr->sh_size / symtab_hdr->sh_entsize;
+		      sym = bfd_elf_get_elf_syms (opd_bfd, symtab_hdr, symcnt,
 						  0, NULL, NULL, NULL);
 		      if (sym == NULL)
 			break;
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 7f9ec60..3236911 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -9747,23 +9747,12 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
 			      r_symndx = osec->target_index;
 			      if (r_symndx == STN_UNDEF)
 				{
-				  struct elf_link_hash_table *htab;
-				  asection *oi;
-
-				  htab = elf_hash_table (finfo->info);
-				  oi = htab->text_index_section;
-				  if ((osec->flags & SEC_READONLY) == 0
-				      && htab->data_index_section != NULL)
-				    oi = htab->data_index_section;
-
-				  if (oi != NULL)
-				    {
-				      irela->r_addend += osec->vma - oi->vma;
-				      r_symndx = oi->target_index;
-				    }
+				  irela->r_addend += osec->vma;
+				  osec = _bfd_nearby_section (output_bfd, osec,
+							      osec->vma);
+				  irela->r_addend -= osec->vma;
+				  r_symndx = osec->target_index;
 				}
-
-			      BFD_ASSERT (r_symndx != STN_UNDEF);
 			    }
 			}
 
diff --git a/bfd/linker.c b/bfd/linker.c
index 0404474..2f8ecbb 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -3130,6 +3130,81 @@ _bfd_generic_section_already_linked (bfd *abfd ATTRIBUTE_UNUSED,
   return FALSE;
 }
 
+/* Choose a neighbouring section to S in OBFD that will be output, or
+   the absolute section if ADDR is out of bounds of the neighbours.  */
+
+asection *
+_bfd_nearby_section (bfd *obfd, asection *s, bfd_vma addr)
+{
+  asection *next, *prev, *best;
+
+  /* Find preceding kept section.  */
+  for (prev = s->prev; prev != NULL; prev = prev->prev)
+    if ((prev->flags & SEC_EXCLUDE) == 0
+	&& !bfd_section_removed_from_list (obfd, prev))
+      break;
+
+  /* Find following kept section.  Start at prev->next because
+     other sections may have been added after S was removed.  */
+  if (s->prev != NULL)
+    next = s->prev->next;
+  else
+    next = s->owner->sections;
+  for (; next != NULL; next = next->next)
+    if ((next->flags & SEC_EXCLUDE) == 0
+	&& !bfd_section_removed_from_list (obfd, next))
+      break;
+
+  /* Choose better of two sections, based on flags.  The idea
+     is to choose a section that will be in the same segment
+     as S would have been if it was kept.  */
+  best = next;
+  if (prev == NULL)
+    {
+      if (next == NULL)
+	best = bfd_abs_section_ptr;
+    }
+  else if (next == NULL)
+    best = prev;
+  else if (((prev->flags ^ next->flags)
+	    & (SEC_ALLOC | SEC_THREAD_LOCAL | SEC_LOAD)) != 0)
+    {
+      if (((next->flags ^ s->flags)
+	   & (SEC_ALLOC | SEC_THREAD_LOCAL)) != 0
+	  /* We prefer to choose a loaded section.  Section S
+	     doesn't have SEC_LOAD set (it being excluded, that
+	     part of the flag processing didn't happen) so we
+	     can't compare that flag to those of NEXT and PREV.  */
+	  || ((prev->flags & SEC_LOAD) != 0
+	      && (next->flags & SEC_LOAD) == 0))
+	best = prev;
+    }
+  else if (((prev->flags ^ next->flags) & SEC_READONLY) != 0)
+    {
+      if (((next->flags ^ s->flags) & SEC_READONLY) != 0)
+	best = prev;
+    }
+  else if (((prev->flags ^ next->flags) & SEC_CODE) != 0)
+    {
+      if (((next->flags ^ s->flags) & SEC_CODE) != 0)
+	best = prev;
+    }
+  else
+    {
+      /* Flags we care about are the same.  Prefer the following
+	 section if that will result in a positive valued sym.  */
+      if (addr < next->vma)
+	best = prev;
+    }
+
+  /* Refuse to choose a section for which we are out of bounds.  */
+  /* ??? This may make most of the above moot.  */
+  if (addr < best->vma || addr > best->vma + best->size)
+    best = bfd_abs_section_ptr;
+
+  return best;
+}
+
 /* Convert symbols in excluded output sections to use a kept section.  */
 
 static bfd_boolean
@@ -3146,74 +3221,10 @@ fix_syms (struct bfd_link_hash_entry *h, void *data)
 	  && (s->output_section->flags & SEC_EXCLUDE) != 0
 	  && bfd_section_removed_from_list (obfd, s->output_section))
 	{
-	  asection *op, *op1;
+	  asection *op;
 
 	  h->u.def.value += s->output_offset + s->output_section->vma;
-
-	  /* Find preceding kept section.  */
-	  for (op1 = s->output_section->prev; op1 != NULL; op1 = op1->prev)
-	    if ((op1->flags & SEC_EXCLUDE) == 0
-		&& !bfd_section_removed_from_list (obfd, op1))
-	      break;
-
-	  /* Find following kept section.  Start at prev->next because
-	     other sections may have been added after S was removed.  */
-	  if (s->output_section->prev != NULL)
-	    op = s->output_section->prev->next;
-	  else
-	    op = s->output_section->owner->sections;
-	  for (; op != NULL; op = op->next)
-	    if ((op->flags & SEC_EXCLUDE) == 0
-		&& !bfd_section_removed_from_list (obfd, op))
-	      break;
-
-	  /* Choose better of two sections, based on flags.  The idea
-	     is to choose a section that will be in the same segment
-	     as S would have been if it was kept.  */
-	  if (op1 == NULL)
-	    {
-	      if (op == NULL)
-		op = bfd_abs_section_ptr;
-	    }
-	  else if (op == NULL)
-	    op = op1;
-	  else if (((op1->flags ^ op->flags)
-		    & (SEC_ALLOC | SEC_THREAD_LOCAL | SEC_LOAD)) != 0)
-	    {
-	      if (((op->flags ^ s->flags)
-		   & (SEC_ALLOC | SEC_THREAD_LOCAL)) != 0
-		  /* We prefer to choose a loaded section.  Section S
-		     doesn't have SEC_LOAD set (it being excluded, that
-		     part of the flag processing didn't happen) so we
-		     can't compare that flag to those of OP and OP1.  */
-		  || ((op1->flags & SEC_LOAD) != 0
-		      && (op->flags & SEC_LOAD) == 0))
-		op = op1;
-	    }
-	  else if (((op1->flags ^ op->flags) & SEC_READONLY) != 0)
-	    {
-	      if (((op->flags ^ s->flags) & SEC_READONLY) != 0)
-		op = op1;
-	    }
-	  else if (((op1->flags ^ op->flags) & SEC_CODE) != 0)
-	    {
-	      if (((op->flags ^ s->flags) & SEC_CODE) != 0)
-		op = op1;
-	    }
-	  else
-	    {
-	      /* Flags we care about are the same.  Prefer the following
-		 section if that will result in a positive valued sym.  */
-	      if (h->u.def.value < op->vma)
-		op = op1;
-	    }
-
-	  /* Refuse to choose a section for which we are out of bounds.  */
-	  /* ??? This may make most of the above moot.  */
-	  if (h->u.def.value < op->vma
-	      || h->u.def.value > op->vma + op->size)
-	    op = bfd_abs_section_ptr;
-
+	  op = _bfd_nearby_section (obfd, s->output_section, h->u.def.value);
 	  h->u.def.value -= op->vma;
 	  h->u.def.section = op;
 	}
diff --git a/bfd/plugin.c b/bfd/plugin.c
index 064e273..0a29e37 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -25,7 +25,13 @@
 #if BFD_SUPPORTS_PLUGINS
 
 #include <assert.h>
+#ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
+#elif defined (HAVE_WINDOWS_H)
+#include <windows.h>
+#else
+#error Unknown how to handle dynamic-load-libraries.
+#endif
 #include <stdarg.h>
 #include "plugin-api.h"
 #include "sysdep.h"
@@ -34,6 +40,37 @@
 #include "libiberty.h"
 #include <dirent.h>
 
+#if !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H)
+
+#define RTLD_NOW 0      /* Dummy value.  */
+
+static void *
+dlopen (const char *file, int mode ATTRIBUTE_UNUSED)
+{
+  return LoadLibrary (file);
+}
+
+static void *
+dlsym (void *handle, const char *name)
+{
+  return GetProcAddress (handle, name);
+}
+
+static int ATTRIBUTE_UNUSED
+dlclose (void *handle)
+{
+  FreeLibrary (handle);
+  return 0;
+}
+
+static const char *
+dlerror (void)
+{
+  return "Unable to load DLL.";
+}
+
+#endif /* !defined (HAVE_DLFCN_H) && defined (HAVE_WINDOWS_H)  */
+
 #define bfd_plugin_close_and_cleanup                  _bfd_generic_close_and_cleanup
 #define bfd_plugin_bfd_free_cached_info               _bfd_generic_bfd_free_cached_info
 #define bfd_plugin_new_section_hook                   _bfd_generic_new_section_hook
diff --git a/bfd/version.h b/bfd/version.h
index 756abca..f12f4b5 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120320
+#define BFD_VERSION_DATE 20120324
 #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/.gitignore b/gdb/.gitignore
index f0cbd8c..7a0dd1a 100644
--- a/gdb/.gitignore
+++ b/gdb/.gitignore
@@ -7,7 +7,9 @@
 /cp-name-parser.c
 /f-exp.c
 /gdb
+/gdbtui
 /init.c
+/jit-reader.h
 /jv-exp.c
 /m2-exp.c
 /objc-exp.c
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d18163e..82fa1b4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,58 @@
+2012-03-22  Richard Henderson  <rth@redhat.com>
+
+	* sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
+	* sparc-nat.c (sparc_xfer_wcookie): Make static.
+
+2012-03-22  Richard Henderson  <rth@redhat.com>
+
+	* jit.c (jit_read_code_entry): Compute alignment and offset of
+	int64_t member before computing entry_size.
+
+2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
+
+	Python scripting: Add new method Value.referenced_value to
+	gdb.Value which can dereference pointer as well as reference
+	values.
+	* NEWS: Add entry under 'Python scripting' about the new method
+	Value.referenced_value on gdb.Value objects.
+	* python/py-value.c (valpy_referenced_value): New function
+	defining a new method on gdb.Value objects which can dereference
+	pointer and reference values.
+
+2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
+
+	* MAINTAINERS (Write After Approval): Add myself to the list.


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  204376e6b7f72da164f7db49480fcad7f69fc78e (commit)
       via  e30d8fbe4d07f96752382d95b4c5ecc8d7da4b3d (commit)
       via  01fb059ea068b42852d6faa4ff6a3c106a1d1e69 (commit)
       via  90c5527fbd752ced36a482bc1515a7a7bbb502a3 (commit)
       via  fd86fa17025ab1370f908cd3aae28e760dc490ea (commit)
       via  d651fc3d57f199a8b13433a8ab93ffb13ecedcdc (commit)
       via  856b6d33858f363c9f7b4f1276ffc1c35f336cf7 (commit)
       via  b878b3dd27664f3c1aea39f6bc5173c6054a0b4b (commit)
       via  b8ccb946064deec565e9649fb1eba34817f5fded (commit)
      from  736b9ee51145c64688d9f3dac2543c1e8272f08f (commit)

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

- Log -----------------------------------------------------------------
commit 204376e6b7f72da164f7db49480fcad7f69fc78e
Merge: 736b9ee e30d8fb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:39:01 2012 +0100

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

commit e30d8fbe4d07f96752382d95b4c5ecc8d7da4b3d
Merge: bdc6007 01fb059
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:39:01 2012 +0100

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

commit 01fb059ea068b42852d6faa4ff6a3c106a1d1e69
Merge: d23d429 90c5527
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:39:00 2012 +0100

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

commit 90c5527fbd752ced36a482bc1515a7a7bbb502a3
Merge: 482eed1 fd86fa1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:39:00 2012 +0100

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

commit fd86fa17025ab1370f908cd3aae28e760dc490ea
Merge: 2289e5b d651fc3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:39:00 2012 +0100

    Merge branch 'secmove' into secmove-misc2

commit d651fc3d57f199a8b13433a8ab93ffb13ecedcdc
Merge: e9c2841 856b6d3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:39:00 2012 +0100

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

commit 856b6d33858f363c9f7b4f1276ffc1c35f336cf7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Mar 20 18:16:28 2012 +0000

    Handle relocation against protected function for -Bsymbolic
    
    bfd/
    
    2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR ld/13880
    	* elf32-i386.c (elf_i386_relocate_section): Don't issue an error
    	for R_386_GOTOFF relocation against protected function if
    	SYMBOLIC_BIND is true.
    
    	* elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
    	error for R_X86_64_GOTOFF64 relocation against protected function
    	when building executable or SYMBOLIC_BIND is true.
    
    ld/testsuite/
    
    2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR ld/13880
    	* ld-i386/i386.exp: Run protected4 and protected5.
    	* ld-x86-64/x86-64.exp: Likewise.
    
    	* ld-i386/protected4.d: New.
    	* ld-i386/protected4.s: Likewise.
    	* ld-i386/protected5.d: Likewise.
    	* ld-i386/protected5.s: Likewise.
    	* ld-x86-64/protected4.d: Likewise.
    	* ld-x86-64/protected4.s: Likewise.
    	* ld-x86-64/protected5.d: Likewise.
    	* ld-x86-64/protected5.s: Likewise.

commit b878b3dd27664f3c1aea39f6bc5173c6054a0b4b
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Tue Mar 20 18:14:12 2012 +0000

    2012-03-20  Pedro Alves  <palves@redhat.com>
    
    	* remote.c (remote_start_remote): Clear `rs->starting_up' on early
    	returns.

commit b8ccb946064deec565e9649fb1eba34817f5fded
Author: qiyao <qiyao>
Date:   Tue Mar 20 07:08:52 2012 +0000

    gdb/
    	* amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
    	comment.

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

Summary of changes:
 bfd/ChangeLog      |   11 +++++++++++
 bfd/elf32-i386.c   |    1 +
 bfd/elf64-x86-64.c |    3 ++-
 gdb/ChangeLog      |   10 ++++++++++
 gdb/amd64-tdep.c   |    2 +-
 gdb/remote.c       |    2 ++
 6 files changed, 27 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b9849f8..735a0ba 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,14 @@
+2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/13880
+	* elf32-i386.c (elf_i386_relocate_section): Don't issue an error
+	for R_386_GOTOFF relocation against protected function if
+	SYMBOLIC_BIND is true.
+
+	* elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
+	error for R_X86_64_GOTOFF64 relocation against protected function
+	when building executable or SYMBOLIC_BIND is true.
+
 2012-03-16  Roland McGrath  <mcgrathr@google.com>
 
 	* config.bfd: Handle x86_64-*-nacl*.
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 4ae2166..f35e3c2 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -3503,6 +3503,7 @@ elf_i386_relocate_section (bfd *output_bfd,
 		  return FALSE;
 		}
 	      else if (!info->executable
+		       && !SYMBOLIC_BIND (info, h)
 		       && h->type == STT_FUNC
 		       && ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
 		{
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index f2f803a..cc5ee42 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -3464,8 +3464,9 @@ elf_x86_64_relocate_section (bfd *output_bfd,
 	  /* Check to make sure it isn't a protected function symbol
 	     for shared library since it may not be local when used
 	     as function address.  */
-	  if (info->shared
+	  if (!info->executable
 	      && h
+	      && !SYMBOLIC_BIND (info, h)
 	      && h->def_regular
 	      && h->type == STT_FUNC
 	      && ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aad141b..d18163e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2012-03-20  Pedro Alves  <palves@redhat.com>
+
+	* remote.c (remote_start_remote): Clear `rs->starting_up' on early
+	returns.
+
+2012-03-20  Yao Qi  <yao@codesourcery.com>
+
+	* amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
+	comment.
+
 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	Code cleanupp: Use cu_offset and sect_offset compile time type checking.
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index ea65d0d..a193099 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -1258,7 +1258,7 @@ amd64_displaced_step_copy_insn (struct gdbarch *gdbarch,
 				struct regcache *regs)
 {
   int len = gdbarch_max_insn_length (gdbarch);
-  /* Extra space for sentinels so fixup_{riprel,displaced_copy don't have to
+  /* Extra space for sentinels so fixup_{riprel,displaced_copy} don't have to
      continually watch for running off the end of the buffer.  */
   int fixup_sentinel_space = len;
   struct displaced_step_closure *dsc =
diff --git a/gdb/remote.c b/gdb/remote.c
index c246067..caf6116 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3378,6 +3378,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p)
 
 	  /* We're connected, but not running.  Drop out before we
 	     call start_remote.  */
+	  rs->starting_up = 0;
 	  return;
 	}
       else
@@ -3469,6 +3470,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p)
 
 	  /* We're connected, but not running.  Drop out before we
 	     call start_remote.  */
+	  rs->starting_up = 0;
 	  return;
 	}
 


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  736b9ee51145c64688d9f3dac2543c1e8272f08f (commit)
       via  bdc60070df4dc698571f249e0bea13fcad7d0fac (commit)
       via  d23d429e38d977518885a81e4376b3622726602c (commit)
       via  a3bca522660c1b7870afc9282df4396e7c022a4c (commit)
       via  f4fa3824f25e10021eed07c6f3bab2dfcc7ee449 (commit)
       via  aa5b65291f77dbb179f3a245340205102ea9cb64 (commit)
       via  482eed1f7f5d4768483a4250be97f6ee78aebddc (commit)
       via  8244d71bb869d8c138457361a04c81b07c3d60b2 (commit)
       via  1ff532be9341f8d4575dbbe662204e41e5446f12 (commit)
       via  c72d611900240fad4eb6a107bbe4a0b4270d4064 (commit)
       via  c6755f61cbcde555281e03c5257d23e1025fed0b (commit)
       via  2289e5bb9d71aed51196c8b239dc9c754a87ee47 (commit)
       via  515bd38396f6ec31a66bba44006ea1e7a2b61534 (commit)
       via  83f513258367be4c9e7278d0a1d6995549a13a3c (commit)
       via  de533a0da5e3381bffa209c9fa51253c5c4ee7fa (commit)
       via  a25d96b4631ba05f40a32a8ff07b349abdc8a3ec (commit)
       via  0d4166c955ad30c03dac9ab530b887aab8b3f6e0 (commit)
       via  4451fa0b228cbefdd60a3d4784c4c84960537187 (commit)
       via  554d44969be25884d0bd2ecdec24a94b40982f72 (commit)
       via  5e8d32fe5e1fc7c2e6d64371285e3d405bf3c7a9 (commit)
       via  331aff935651306ad020b31817106ea6e4ab9f6a (commit)
       via  fea8d94135a1a239af9fa3171ec339886f43edbd (commit)
       via  f9b226071c6212219e88c3eb2617ffdda3a8750d (commit)
       via  7039331b2cd618a3517eb656508d95a33aefc9be (commit)
       via  809b3e1b3548747d1f2e533df647889fa131e0cf (commit)
       via  90b8e4d560f853cd91f97d778df4ff367c2c3e3a (commit)
       via  e9c2841c2ea47fc7dda04d7e107e095bcd1698e2 (commit)
       via  a653dea6799b8e39d42cb7e133541a69e30cb238 (commit)
       via  9faa4a2a8ed056f9d999a7f0559e8e581e5a0bbc (commit)
      from  0a287816462ac6b27bb8a6d0d7a5ae5d6455932c (commit)

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

- Log -----------------------------------------------------------------
commit 736b9ee51145c64688d9f3dac2543c1e8272f08f
Merge: a3bca52 bdc6007
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:36:10 2012 +0100

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

commit bdc60070df4dc698571f249e0bea13fcad7d0fac
Merge: f4fa382 d23d429
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:35:42 2012 +0100

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

commit d23d429e38d977518885a81e4376b3622726602c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:35:01 2012 +0100

    .

commit a3bca522660c1b7870afc9282df4396e7c022a4c
Merge: 8244d71 f4fa382
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:33:11 2012 +0100

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

commit f4fa3824f25e10021eed07c6f3bab2dfcc7ee449
Merge: 1ff532b aa5b652
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:33:11 2012 +0100

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

commit aa5b65291f77dbb179f3a245340205102ea9cb64
Merge: c72d611 482eed1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:33:11 2012 +0100

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

commit 482eed1f7f5d4768483a4250be97f6ee78aebddc
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:33:08 2012 +0100

    .

commit 8244d71bb869d8c138457361a04c81b07c3d60b2
Merge: 515bd38 1ff532b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:32:23 2012 +0100

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

commit 1ff532be9341f8d4575dbbe662204e41e5446f12
Merge: 83f5132 c72d611
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:32:19 2012 +0100

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

commit c72d611900240fad4eb6a107bbe4a0b4270d4064
Merge: de533a0 c6755f6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:29:25 2012 +0100

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

commit c6755f61cbcde555281e03c5257d23e1025fed0b
Merge: a25d96b 2289e5b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 20:15:49 2012 +0100

    Merge branch 'secmove-misc2' into secmove-misc2-warn
    
    Conflicts:
    	gdb/auto-load.c
    	gdb/auto-load.h
    	gdb/main.c

commit 2289e5bb9d71aed51196c8b239dc9c754a87ee47
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 19:56:23 2012 +0100

    .

commit 515bd38396f6ec31a66bba44006ea1e7a2b61534
Merge: fea8d94 83f5132
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 19:32:27 2012 +0100

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

commit 83f513258367be4c9e7278d0a1d6995549a13a3c
Merge: f9b2260 de533a0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 19:32:26 2012 +0100

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

commit de533a0da5e3381bffa209c9fa51253c5c4ee7fa
Merge: 4451fa0 a25d96b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 19:32:26 2012 +0100

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

commit a25d96b4631ba05f40a32a8ff07b349abdc8a3ec
Merge: 554d449 0d4166c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 19:32:26 2012 +0100

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

commit 0d4166c955ad30c03dac9ab530b887aab8b3f6e0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 19:28:30 2012 +0100

    .

commit 4451fa0b228cbefdd60a3d4784c4c84960537187
Merge: 7039331 554d449
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 17:45:08 2012 +0100

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

commit 554d44969be25884d0bd2ecdec24a94b40982f72
Merge: 809b3e1 5e8d32f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 17:45:08 2012 +0100

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

commit 5e8d32fe5e1fc7c2e6d64371285e3d405bf3c7a9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 17:45:00 2012 +0100

    .

commit 331aff935651306ad020b31817106ea6e4ab9f6a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 12:04:44 2012 +0100

    .

commit fea8d94135a1a239af9fa3171ec339886f43edbd
Merge: 0a28781 f9b2260
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 08:37:22 2012 +0100

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

commit f9b226071c6212219e88c3eb2617ffdda3a8750d
Merge: 9a53ca2 7039331
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 08:37:22 2012 +0100

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

commit 7039331b2cd618a3517eb656508d95a33aefc9be
Merge: 2cfb45d 809b3e1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 08:37:21 2012 +0100

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

commit 809b3e1b3548747d1f2e533df647889fa131e0cf
Merge: 321c08a 90b8e4d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 08:37:21 2012 +0100

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

commit 90b8e4d560f853cd91f97d778df4ff367c2c3e3a
Merge: 42660c6 e9c2841
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 08:37:21 2012 +0100

    Merge branch 'secmove' into secmove-misc2

commit e9c2841c2ea47fc7dda04d7e107e095bcd1698e2
Merge: 61db129 a653dea
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 08:37:21 2012 +0100

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

commit a653dea6799b8e39d42cb7e133541a69e30cb238
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Tue Mar 20 00:00:03 2012 +0000

    *** empty log message ***

commit 9faa4a2a8ed056f9d999a7f0559e8e581e5a0bbc
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Mar 19 23:00:05 2012 +0000

    daily update

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

Summary of changes:
 bfd/version.h         |    2 +-
 gdb/auto-load.c       |   36 ++++++++++--
 gdb/auto-load.h       |    2 +
 gdb/linux-thread-db.c |  155 +++++++++++++++++++++++++++++++++++++++++++++++++
 gdb/main.c            |  100 ++++++++++++++++++--------------
 gdb/version.in        |    2 +-
 6 files changed, 246 insertions(+), 51 deletions(-)

First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 241c6fe..756abca 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120319
+#define BFD_VERSION_DATE 20120320
 #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/auto-load.c b/gdb/auto-load.c
index 0348b44..c1e04c5 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -111,6 +111,12 @@ static const char *const auto_load_local_gdbinit_enum[] =
 /* Auto-load .gdbinit file from the current directory?  */
 const char *auto_load_local_gdbinit = auto_load_local_gdbinit_warn_and_yes;
 
+/* Absolute pathname to the current directory .gdbinit, if it exists.  */
+char *auto_load_local_gdbinit_pathname = NULL;
+
+/* Boolean value if AUTO_LOAD_LOCAL_GDBINIT_PATHNAME has been loaded.  */
+int auto_load_local_gdbinit_loaded = 0;
+
 /* "show" command for the auto_load_local_gdbinit configuration variable.  */
 
 static void
@@ -769,6 +775,21 @@ info_auto_load_gdb_scripts (char *pattern, int from_tty)
   auto_load_info_scripts (pattern, from_tty, &script_language_gdb);
 }
 
+/* Implement 'info auto-load local-gdbinit'.  */
+
+static void
+info_auto_load_local_gdbinit (char *args, int from_tty)
+{
+  if (auto_load_local_gdbinit_pathname == NULL)
+    printf_filtered (_("Local .gdbinit file was not found.\n"));
+  else if (auto_load_local_gdbinit_loaded)
+    printf_filtered (_("Local .gdbinit file \"%s\" has been loaded.\n"),
+		     auto_load_local_gdbinit_pathname);
+  else
+    printf_filtered (_("Local .gdbinit file \"%s\" has not been loaded.\n"),
+		     auto_load_local_gdbinit_pathname);
+}
+
 /* Return non-zero if SCRIPT_NOT_FOUND_WARNING_PRINTED of PSPACE_INFO was unset
    before calling this function.  Always set SCRIPT_NOT_FOUND_WARNING_PRINTED
    of PSPACE_INFO.  */
@@ -906,6 +927,11 @@ This options has security implications for untrusted inferiors."),
 			   auto_load_set_cmdlist_get (),
 			   auto_load_show_cmdlist_get ());
 
+  add_cmd ("gdb-scripts", class_info, info_auto_load_gdb_scripts,
+	   _("Print the list of automatically loaded sequences of commands.\n\
+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, _("\
@@ -919,6 +945,11 @@ This options has security implications for untrusted inferiors."),
 			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 ());
+
   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,
@@ -944,9 +975,4 @@ When non-zero, debugging output for files of 'set auto-load ...'\n\
 is displayed."),
 			    NULL, show_debug_auto_load,
 			    &setdebuglist, &showdebuglist);
-
-  add_cmd ("gdb-scripts", class_info, info_auto_load_gdb_scripts,
-	   _("Print the list of automatically loaded sequences of commands.\n\
-Usage: info auto-load gdb-scripts [REGEXP]"),
-	   auto_load_info_cmdlist_get ());
 }
diff --git a/gdb/auto-load.h b/gdb/auto-load.h
index 1ec9a1d..fe8b146 100644
--- a/gdb/auto-load.h
+++ b/gdb/auto-load.h
@@ -37,6 +37,8 @@ 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 char *auto_load_local_gdbinit_pathname;
+extern int auto_load_local_gdbinit_loaded;
 
 extern struct auto_load_pspace_info *
   get_auto_load_pspace_data_for_loading (struct program_space *pspace);
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index d0ae6b0..8902b67 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -44,6 +44,7 @@
 #include "auto-load.h"
 
 #include <signal.h>
+#include <ctype.h>
 
 #ifdef HAVE_GNU_LIBC_VERSION_H
 #include <gnu/libc-version.h>
@@ -136,6 +137,10 @@ struct thread_db_info
   /* Handle from dlopen for libthread_db.so.  */
   void *handle;
 
+  /* Absolute pathname from gdb_realpath to disk file used for dlopen-ing
+     HANDLE.  It may be NULL for system library.  */
+  char *filename;
+
   /* Structure that identifies the child process for the
      <proc_service.h> interface.  */
   struct ps_prochandle proc_handle;
@@ -265,6 +270,8 @@ delete_thread_db_info (int pid)
   if (info->handle != NULL)
     dlclose (info->handle);
 
+  xfree (info->filename);
+
   if (info_prev)
     info_prev->next = info->next;
   else
@@ -824,6 +831,10 @@ try_thread_db_load (const char *library)
 
   info = add_thread_db_info (handle);
 
+  /* Do not save system library name, that one is always trusted.  */
+  if (strchr (library, '/') != NULL)
+    info->filename = gdb_realpath (library);
+
   if (try_thread_db_load_1 (info))
     return 1;
 
@@ -1836,6 +1847,145 @@ thread_db_resume (struct target_ops *ops,
   beneath->to_resume (beneath, ptid, step, signo);
 }
 
+/* qsort helper function for info_auto_load_libthread_db, sort the
+   thread_db_info pointers primarily by their FILENAME and secondarily by their
+   PID, both in ascending order.  */
+
+static int
+info_auto_load_libthread_db_compare (const void *ap, const void *bp)
+{
+  struct thread_db_info *a = *(struct thread_db_info **) ap;
+  struct thread_db_info *b = *(struct thread_db_info **) bp;
+  int retval;
+
+  retval = strcmp (a->filename, b->filename);
+  if (retval)
+    return retval;
+
+  return (a->pid > b->pid) - (a->pid - b->pid);
+}
+
+/* Implement 'info auto-load libthread-db'.  */
+
+static void
+info_auto_load_libthread_db (char *args, int from_tty)
+{
+  struct ui_out *uiout = current_uiout;
+  const char *cs = args ? args : "";
+  struct thread_db_info *info, **array;
+  unsigned info_count, unique_filenames;
+  size_t max_filename_len, max_pids_len, pids_len;
+  struct cleanup *back_to;
+  char *pids;
+  int i;
+
+  while (isspace (*cs))
+    cs++;
+  if (*cs)
+    error (_("'info auto-load libthread-db' does not accept any parameters"));
+
+  info_count = 0;
+  for (info = thread_db_list; info; info = info->next)
+    if (info->filename != NULL)
+      info_count++;
+
+  array = xmalloc (sizeof (*array) * info_count);
+  back_to = make_cleanup (xfree, array);
+
+  info_count = 0;
+  for (info = thread_db_list; info; info = info->next)
+    if (info->filename != NULL)
+      array[info_count++] = info;
+
+  /* Sort ARRAY by filenames and PIDs.  */
+
+  qsort (array, info_count, sizeof (*array),
+	 info_auto_load_libthread_db_compare);
+
+  /* Calculate the number of unique filenames (rows) and the maximum string
+     length of PIDs list for the unique filenames (columns).  */
+
+  unique_filenames = 0;
+  max_filename_len = 0;
+  max_pids_len = 0;
+  pids_len = 0;
+  for (i = 0; i < info_count; i++)
+    {
+      int pid = array[i]->pid;
+      size_t this_pid_len;
+
+      for (this_pid_len = 0; pid != 0; pid /= 10)
+	this_pid_len++;
+
+      if (i == 0 || strcmp (array[i - 1]->filename, array[i]->filename) != 0)
+	{
+	  unique_filenames++;
+	  max_filename_len = max (max_filename_len,
+				  strlen (array[i]->filename));
+
+	  if (i > 0)
+	    {
+	      pids_len -= strlen (", ");
+	      max_pids_len = max (max_pids_len, pids_len);
+	    }
+	  pids_len = 0;
+	}
+      pids_len += this_pid_len + strlen (", ");
+    }
+  if (i)
+    {
+      pids_len -= strlen (", ");
+      max_pids_len = max (max_pids_len, pids_len);
+    }
+
+  make_cleanup_ui_out_table_begin_end (uiout, 2, unique_filenames,
+				       "LinuxThreadDbTable");
+
+  ui_out_table_header (uiout, max_filename_len, ui_left, "filename",
+		       "Filename");
+  ui_out_table_header (uiout, pids_len, ui_left, "PIDs", "Pids");
+  ui_out_table_body (uiout);
+
+  pids = xmalloc (max_pids_len + 1);
+  make_cleanup (xfree, pids);
+
+  /* Note I is incremented inside the cycle, not at its end.  */
+  for (i = 0; i < info_count;)
+    {
+      struct cleanup *chain = make_cleanup_ui_out_tuple_begin_end (uiout, NULL);
+      char *pids_end;
+
+      info = array[i];
+      ui_out_field_string (uiout, "filename", info->filename);
+      pids_end = pids;
+
+      while (i < info_count && strcmp (info->filename, array[i]->filename) == 0)
+	{
+	  if (pids_end != pids)
+	    {
+	      *pids_end++ = ',';
+	      *pids_end++ = ' ';
+	    }
+	  pids_end += xsnprintf (pids_end, &pids[max_pids_len + 1] - pids_end,
+				 "%u", array[i]->pid);
+	  gdb_assert (pids_end < &pids[max_pids_len + 1]);
+
+	  i++;
+	}
+      *pids_end = '\0';
+
+      ui_out_field_string (uiout, "pids", pids);
+
+      ui_out_text (uiout, "\n");
+      do_cleanups (chain);
+    }
+
+  do_cleanups (back_to);
+
+  if (info_count == 0)
+    ui_out_message (uiout, 0, _("No auto-loaded libthread-db.\n"));
+}
+
 static void
 init_thread_db_ops (void)
 {
@@ -1909,6 +2059,11 @@ This options has security implications for untrusted inferiors."),
 			   auto_load_set_cmdlist_get (),
 			   auto_load_show_cmdlist_get ());
 
+  add_cmd ("libthread-db", class_info, info_auto_load_libthread_db,
+	   _("Print the list of loaded inferior specific libthread_db.\n\
+Usage: info auto-load libthread-db"),
+	   auto_load_info_cmdlist_get ());
+
   /* Add ourselves to objfile event chain.  */
   observer_attach_new_objfile (thread_db_new_objfile);
 
diff --git a/gdb/main.c b/gdb/main.c
index 72ccbae..521aca4 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -947,59 +947,71 @@ captured_main (void *data)
 
   /* Read the .gdbinit file in the current directory, *if* it isn't
      the same as the $HOME/.gdbinit file (it should exist, also).  */
-  if (local_gdbinit && !inhibit_gdbinit
-      && auto_load_local_gdbinit != auto_load_local_gdbinit_no)
+  if (local_gdbinit)
     {
-      /* Verify whether user has already specified `-x ./.gdbinit'.  */
-      for (i = 0; VEC_iterate (cmdarg_s, cmdarg_vec, i, cmdarg_p); i++)
-	if (cmdarg_p->type == CMDARG_FILE)
-	  {
-	    struct cleanup *old_cleanups;
-	    char *file;
-	    int fd;
+      auto_load_local_gdbinit_pathname = gdb_realpath (local_gdbinit);
+
+      if (!inhibit_gdbinit
+	  && auto_load_local_gdbinit != auto_load_local_gdbinit_no)
+	{
+	  /* Verify whether user has already specified `-x ./.gdbinit'.  */
+	  for (i = 0; VEC_iterate (cmdarg_s, cmdarg_vec, i, cmdarg_p); i++)
+	    if (cmdarg_p->type == CMDARG_FILE)
+	      {
+		struct cleanup *old_cleanups;
+		char *file;
+		int fd;
 
-	    file = tilde_expand (cmdarg_p->string);
-	    old_cleanups = make_cleanup (xfree, file);
+		file = tilde_expand (cmdarg_p->string);
+		old_cleanups = make_cleanup (xfree, file);
 
-	    fd = openp (source_path, OPF_TRY_CWD_FIRST, file, O_RDONLY, NULL);
+		fd = openp (source_path, OPF_TRY_CWD_FIRST, file, O_RDONLY,
+			    NULL);
 
-	    do_cleanups (old_cleanups);
+		do_cleanups (old_cleanups);
 
-	    if (fd != -1)
-	      {
-		struct stat statbuf;
+		if (fd != -1)
+		  {
+		    struct stat statbuf;
 
-		if (fstat (fd, &statbuf) == 0
-		    && memcmp (&statbuf, &local_gdbinit_stat,
-			       sizeof (statbuf)) == 0)
-		  local_gdbinit = NULL;
+		    if (fstat (fd, &statbuf) == 0
+			&& memcmp (&statbuf, &local_gdbinit_stat,
+				   sizeof (statbuf)) == 0)
+		      local_gdbinit = NULL;
 
-		close (fd);
-		if (local_gdbinit == NULL)
-		  break;
+		    close (fd);
+		    if (local_gdbinit == NULL)
+		      break;
+		  }
 	      }
-	  }
 
-      if (local_gdbinit)
-	{
-	  const char adv[] = N_("Use script associated with inferior "
-	                        "executable file instead.  "
-			        "See also 'set auto-load local-gdbinit'.  "
-			        "You may also use 'gdb -x .gdbinit ...'.");
-	  if (auto_load_local_gdbinit == auto_load_local_gdbinit_warn_and_yes)
-	    warning (_("Reading file .gdbinit in current directory but it has "
-		       "been deprecated and the reading will be removed.  %s"),
-		     _(adv));
-	  if (auto_load_local_gdbinit == auto_load_local_gdbinit_warn_and_no)
-	    warning (_("Ignoring file .gdbinit in current directory as it has "
-		       "been deprecated.  %s"),
-		     _(adv));
-	  else if (file_is_auto_load_safe (local_gdbinit,
-	                                   _("auto-load: Loading .gdbinit "
-					     "file \"%s\".\n"),
-					   local_gdbinit))
-	    catch_command_errors (source_script, local_gdbinit, 0,
-				  RETURN_MASK_ALL);
+	  if (local_gdbinit)
+	    {
+	      const char adv[] = N_("Use script associated with inferior "
+				    "executable file instead.  "
+				    "See also 'set auto-load local-gdbinit'.  "
+				    "You may also use 'gdb -x .gdbinit ...'.");
+	      if (auto_load_local_gdbinit
+		  == auto_load_local_gdbinit_warn_and_yes)
+		warning (_("Reading file .gdbinit in current directory but it "
+			   "has been deprecated and the reading will be "
+			   "removed.  %s"),
+			 _(adv));
+	      if (auto_load_local_gdbinit
+		  == auto_load_local_gdbinit_warn_and_no)
+		warning (_("Ignoring file .gdbinit in current directory as it "
+			   "has been deprecated.  %s"),
+			 _(adv));
+	      else if (file_is_auto_load_safe (local_gdbinit,
+					       _("auto-load: Loading .gdbinit "
+						 "file \"%s\".\n"),
+					       local_gdbinit))
+		{
+		  auto_load_local_gdbinit_loaded = 1;
+		  catch_command_errors (source_script, local_gdbinit, 0,
+					RETURN_MASK_ALL);
+		}
+	    }
 	}
     }
 
diff --git a/gdb/version.in b/gdb/version.in
index cad4a9f..426799f 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.4.50.20120319-cvs
+7.4.50.20120320-cvs


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  0a287816462ac6b27bb8a6d0d7a5ae5d6455932c (commit)
       via  9a53ca220541ef2f69ad7126ae36c03faba26a86 (commit)
       via  2cfb45d4b864dfcc4af97014d7866634f0777630 (commit)
       via  321c08a34ce080063e212583953af0526fd07ab3 (commit)
       via  42660c695e33e37071d335af53a7bb6f9912a1c1 (commit)
       via  a9de0e28d528fd139a7c03ee1b290a044947627e (commit)
       via  bd6cffaf447d1b2d0c45b3259952dd7ecf68a1af (commit)
       via  a37aeece2522c0fd960c3966360eaa6f5c366969 (commit)
       via  dcc21d52d2c7765095d0b063d77ba8552a0eccdd (commit)
       via  04d87e4adf7d45b73618b2245341ea19d5e4599f (commit)
       via  a2b0fa540d5b89571a47c543de726686d7f9a98a (commit)
       via  50be3db303ea87c48061ae8744045bb50ba360e4 (commit)
       via  3c38337a788e561173eb3b3ee61707b57ab2b0cd (commit)
       via  6c82884560a93eee038060280d925fbe2564d3a1 (commit)
       via  715abeaedde4625238944c7f94bbc2648b4ed6fb (commit)
       via  f52a654d20d82c3cb528b63aacbfd11434a2da10 (commit)
       via  b1a1e3bc7937cbcc502ec11c8b942867a16a862f (commit)
       via  517805593efad7d7f8c8e72ad68069c9157a381b (commit)
       via  3190055e0f41b9a8377ddf8d0f8bc4f6c3a32782 (commit)
       via  4f6fc94bad5664cd04fc462162325128c8570dc8 (commit)
       via  8992e810d033e65c77c3e728bee8531b2df4939f (commit)
       via  421e79e10b2f2c2f3dc53363decced9eb543709a (commit)
       via  5b133bd527b0dfdef9a6bd8e0c4cca54f201c431 (commit)
       via  195652c20487c2508d21a76435db69b9562cd6bf (commit)
       via  e7790fb2b118aa0d8e1e07cd6807e2044f249fd2 (commit)
       via  a92991f85d1aded8ab50ed3f7db9d7e26f52f567 (commit)
       via  0940281b0acf91d2dff2b3e8bdd3cbc1fc5ce6ed (commit)
       via  06d3bc0d3aed553e9b72ec0c5d769210bd2fb7e6 (commit)
       via  61db129da84871fb6aaff7d84d7cfc2606f140bd (commit)
       via  c44fcf813d108cd1e63c067117f72f6cc130ad53 (commit)
      from  fe4236cb1e811443bf11f862a1a4ad8a5da0439f (commit)

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

- Log -----------------------------------------------------------------
commit 0a287816462ac6b27bb8a6d0d7a5ae5d6455932c
Merge: a9de0e2 9a53ca2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 01:16:43 2012 +0100

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

commit 9a53ca220541ef2f69ad7126ae36c03faba26a86
Merge: bd6cffa 2cfb45d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 01:16:43 2012 +0100

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

commit 2cfb45d4b864dfcc4af97014d7866634f0777630
Merge: dcc21d5 321c08a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 01:16:40 2012 +0100

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

commit 321c08a34ce080063e212583953af0526fd07ab3
Merge: a2b0fa5 42660c6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 01:16:25 2012 +0100

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

commit 42660c695e33e37071d335af53a7bb6f9912a1c1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 01:16:23 2012 +0100

    .

commit a9de0e28d528fd139a7c03ee1b290a044947627e
Merge: 50be3db bd6cffa
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 00:50:51 2012 +0100

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

commit bd6cffaf447d1b2d0c45b3259952dd7ecf68a1af
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 00:50:42 2012 +0100

    .

commit a37aeece2522c0fd960c3966360eaa6f5c366969
Merge: 3c38337 dcc21d5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 00:32:59 2012 +0100

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

commit dcc21d52d2c7765095d0b063d77ba8552a0eccdd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 00:32:54 2012 +0100

    .

commit 04d87e4adf7d45b73618b2245341ea19d5e4599f
Merge: 6c82884 a2b0fa5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 00:03:52 2012 +0100

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

commit a2b0fa540d5b89571a47c543de726686d7f9a98a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Mar 20 00:03:46 2012 +0100

    .

commit 50be3db303ea87c48061ae8744045bb50ba360e4
Merge: 195652c 3c38337
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:43:29 2012 +0100

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

commit 3c38337a788e561173eb3b3ee61707b57ab2b0cd
Merge: e7790fb 6c82884
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:43:08 2012 +0100

    Merge branch 'secmove-misc2-warn-safepath' into secmove-misc2-warn-safepath-debug
    
    Conflicts:
    	gdb/NEWS

commit 6c82884560a93eee038060280d925fbe2564d3a1
Merge: a92991f 715abea
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:42:48 2012 +0100

    Merge branch 'secmove-misc2-warn' into secmove-misc2-warn-safepath
    
    Conflicts:
    	gdb/NEWS

commit 715abeaedde4625238944c7f94bbc2648b4ed6fb
Merge: b1a1e3b f52a654
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:42:21 2012 +0100

    .

commit f52a654d20d82c3cb528b63aacbfd11434a2da10
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:39:55 2012 +0100

    .

commit b1a1e3bc7937cbcc502ec11c8b942867a16a862f
Merge: 3190055 5178055
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:39:07 2012 +0100

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

commit 517805593efad7d7f8c8e72ad68069c9157a381b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:39:04 2012 +0100

    .

commit 3190055e0f41b9a8377ddf8d0f8bc4f6c3a32782
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:38:25 2012 +0100

    .

commit 4f6fc94bad5664cd04fc462162325128c8570dc8
Merge: 421e79e 8992e81
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:37:30 2012 +0100

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

commit 8992e810d033e65c77c3e728bee8531b2df4939f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:37:28 2012 +0100

    .

commit 421e79e10b2f2c2f3dc53363decced9eb543709a
Merge: 0940281 5b133bd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:36:30 2012 +0100

    Merge branch 'secmove-misc2' into secmove-misc2-warn
    
    Conflicts:
    	gdb/NEWS

commit 5b133bd527b0dfdef9a6bd8e0c4cca54f201c431
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 23:35:43 2012 +0100

    .

commit 195652c20487c2508d21a76435db69b9562cd6bf
Merge: fe4236c e7790fb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 22:31:02 2012 +0100

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

commit e7790fb2b118aa0d8e1e07cd6807e2044f249fd2
Merge: a3613cf a92991f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 22:31:01 2012 +0100

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

commit a92991f85d1aded8ab50ed3f7db9d7e26f52f567
Merge: 15a5243 0940281
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 22:31:01 2012 +0100

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

commit 0940281b0acf91d2dff2b3e8bdd3cbc1fc5ce6ed
Merge: 90ffcbd 06d3bc0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 22:31:01 2012 +0100

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

commit 06d3bc0d3aed553e9b72ec0c5d769210bd2fb7e6
Merge: f86f6c7 61db129
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 22:31:01 2012 +0100

    Merge branch 'secmove' into secmove-misc2

commit 61db129da84871fb6aaff7d84d7cfc2606f140bd
Merge: b14ef7c c44fcf8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 22:31:01 2012 +0100

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

commit c44fcf813d108cd1e63c067117f72f6cc130ad53
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:59:15 2012 +0000

    gdb/
    	Code cleanupp: Use cu_offset and sect_offset compile time type checking.
    	* dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
    	(ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
    	sect_offset.
    	* dwarf2expr.h (cu_offset, sect_offset): New types.
    	(struct dwarf_expr_context_funcs) <dwarf_call>
    	(struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
    	sect_offset.
    	(struct dwarf_expr_context) <len>: Improve the comment.
    	(struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
    	cu_offset and sect_offset.
    	* dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
    	(dwarf_expr_get_base_type, needs_frame_dwarf_call)
    	(dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
    	* dwarf2loc.h: Include dwarf2expr.h.
    	(dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
    	and sect_offset.
    	* dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
    	Improve the comment.
    	(struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
    	(struct signatured_type, struct line_header, struct partial_die_info)
    	(struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
    	(lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
    	(get_die_type_at_offset, create_cus_from_index)
    	(create_signatured_type_table_from_index, dw2_get_file_names)
    	(offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
    	(read_and_check_comp_unit_head, read_and_check_type_unit_head)
    	(create_debug_types_hash_table, process_psymtab_comp_unit)
    	(load_partial_comp_unit, create_all_comp_units)
    	(partial_die_parent_scope, partial_die_full_name, skip_one_die)
    	(load_full_comp_unit, dwarf2_physname, read_import_statement)
    	(inherit_abstract_dies, read_func_scope, read_call_site_scope)
    	(dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
    	(read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
    	(load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
    	(find_partial_die, read_attribute_value, lookup_die_type)
    	(dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
    	(is_ref_attr): New function comment.
    	(dwarf2_get_ref_die_offset): New function comment, new variable retval.
    	Use cu_offset and sect_offset.
    	(follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
    	(dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
    	(load_full_type_unit, read_signatured_type, per_cu_header_read_in)
    	(dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
    	(offset_and_type_hash, offset_and_type_eq, set_die_type)
    	(get_die_type_at_offset, partial_die_hash, partial_die_eq)
    	(write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
    	sect_offset.

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

Summary of changes:
 gdb/ChangeLog       |   51 +++++++
 gdb/NEWS            |   16 ++-
 gdb/auto-load.c     |   47 +++++--
 gdb/auto-load.h     |    8 +-
 gdb/doc/gdb.texinfo |  163 ++++++++++++++++++++++--
 gdb/dwarf2expr.c    |   52 +++++---
 gdb/dwarf2expr.h    |   25 +++-
 gdb/dwarf2loc.c     |   45 ++++---
 gdb/dwarf2loc.h     |    6 +-
 gdb/dwarf2read.c    |  365 ++++++++++++++++++++++++++++-----------------------
 gdb/main.c          |    6 +-
 11 files changed, 540 insertions(+), 244 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3059d69..aad141b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,56 @@
 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
+	Code cleanupp: Use cu_offset and sect_offset compile time type checking.
+	* dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
+	(ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
+	sect_offset.
+	* dwarf2expr.h (cu_offset, sect_offset): New types.
+	(struct dwarf_expr_context_funcs) <dwarf_call>
+	(struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
+	sect_offset.
+	(struct dwarf_expr_context) <len>: Improve the comment.
+	(struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
+	cu_offset and sect_offset.
+	* dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
+	(dwarf_expr_get_base_type, needs_frame_dwarf_call)
+	(dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
+	* dwarf2loc.h: Include dwarf2expr.h.
+	(dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
+	and sect_offset.
+	* dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
+	Improve the comment.
+	(struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
+	(struct signatured_type, struct line_header, struct partial_die_info)
+	(struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
+	(lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
+	(get_die_type_at_offset, create_cus_from_index)
+	(create_signatured_type_table_from_index, dw2_get_file_names)
+	(offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
+	(read_and_check_comp_unit_head, read_and_check_type_unit_head)
+	(create_debug_types_hash_table, process_psymtab_comp_unit)
+	(load_partial_comp_unit, create_all_comp_units)
+	(partial_die_parent_scope, partial_die_full_name, skip_one_die)
+	(load_full_comp_unit, dwarf2_physname, read_import_statement)
+	(inherit_abstract_dies, read_func_scope, read_call_site_scope)
+	(dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
+	(read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
+	(load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
+	(find_partial_die, read_attribute_value, lookup_die_type)
+	(dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
+	(is_ref_attr): New function comment.
+	(dwarf2_get_ref_die_offset): New function comment, new variable retval.
+	Use cu_offset and sect_offset.
+	(follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
+	(dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
+	(load_full_type_unit, read_signatured_type, per_cu_header_read_in)
+	(dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
+	(offset_and_type_hash, offset_and_type_eq, set_die_type)
+	(get_die_type_at_offset, partial_die_hash, partial_die_eq)
+	(write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
+	sect_offset.
+
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
 	Code cleanup.
 	* python/py-auto-load.c (source_section_scripts): New variable back_to.
 	Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
diff --git a/gdb/NEWS b/gdb/NEWS
index 890c761..d864720 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -84,7 +84,11 @@
   ** "info vtbl" can be used to show the virtual method tables for
      C++ and Java objects.
 
-  ** "info auto-load" shows the status of all kinds of auto-loaded scripts.
+  ** "info auto-load" shows the status of all kinds of auto-loaded scripts,
+     "info auto-load gdb-scripts", "info auto-load python-scripts",
+     "info auto-load local-gdbinit" and "info auto-load libthread-db" show
+     status of the specific kinds of auto-loaded scripts associated with
+     inferior.
 
   ** "info auto-load-scripts", "set auto-load-scripts on|off"
      and "show auto-load-scripts" commands have been deprecated, use their
@@ -114,17 +118,17 @@ show breakpoint condition-evaluation
 show auto-load
 set auto-load gdb-scripts on|off
 show auto-load gdb-scripts
-set auto-load libthread-db on|off
-show auto-load libthread-db
-set auto-load local-gdbinit on|off|warn-and-on|warn-and-off
-show auto-load local-gdbinit
 set auto-load python-scripts on|off
 show auto-load python-scripts
+set auto-load local-gdbinit on|off|warn-and-on|warn-and-off
+show auto-load local-gdbinit
+set auto-load libthread-db on|off
+show auto-load libthread-db
 set auto-load safe-path <dir1>[:<dir2>...]
 show auto-load safe-path
 set debug auto-load on|off
 show debug auto-load
-  Controls auto-loading of various kinds of scripts.
+  Controls auto-loading of various kinds of scripts associated with inferior.
 
 * New remote packets
 
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index f10d901..0348b44 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -30,6 +30,8 @@
 #include "exceptions.h"
 #include "cli/cli-script.h"
 #include "gdbcmd.h"
+#include "cli/cli-decode.h"
+#include "cli/cli-setshow.h"
 #include "gdb_vecs.h"
 
 /* The suffix of per-objfile scripts to auto-load as non-Python command files.
@@ -84,30 +86,30 @@ show_auto_load_gdb_scripts (struct ui_file *file, int from_tty,
 int global_auto_load = 1;
 
 /* Load current directory .gdbinit file automatically.  */
-const char auto_load_local_gdbinit_on[] = "on";
+const char auto_load_local_gdbinit_yes[] = "yes";
 
 /* Never load current directory .gdbinit file.  */
-const char auto_load_local_gdbinit_off[] = "off";
+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_on[] = "warn-and-on";
+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_off[] = "warn-and-off";
+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_on,
-  auto_load_local_gdbinit_off,
-  auto_load_local_gdbinit_warn_and_on,
-  auto_load_local_gdbinit_warn_and_off,
+  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_on;
+const char *auto_load_local_gdbinit = auto_load_local_gdbinit_warn_and_yes;
 
 /* "show" command for the auto_load_local_gdbinit configuration variable.  */
 
@@ -781,11 +783,34 @@ script_not_found_warning_print (struct auto_load_pspace_info *pspace_info)
   return retval;
 }
 
-/* Command "set auto-load" does nothing.  */
+/* The only valid "set auto-load" argument is off|0|no|disable.  */
 
 static void
 set_auto_load_cmd (char *args, int from_tty)
 {
+  struct cmd_list_element *list;
+  size_t length;
+
+  /* See parse_binary_operation in use by the sub-commands.  */
+
+  length = args ? strlen (args) : 0;
+
+  while (length > 0 && (args[length - 1] == ' ' || args[length - 1] == '\t'))
+    length--;
+
+  if (length == 0 || (strncmp (args, "off", length) != 0
+		      && strncmp (args, "0", length) != 0
+		      && strncmp (args, "no", length) != 0
+		      && strncmp (args, "disable", length) != 0))
+    error (_("Valid is only global 'set auto-load no'; "
+	     "otherwise check the auto-load sub-commands."));
+
+  for (list = *auto_load_set_cmdlist_get (); list != NULL; list = list->next)
+    if (list->var_type == var_boolean)
+      {
+	gdb_assert (list->type == set_cmd);
+	do_setshow_command (args, from_tty, list);
+      }
 }
 
 /* Initialize "set auto-load " commands prefix and return it.  */
@@ -801,7 +826,7 @@ Auto-loading specific settings\n\
 Configure various auto-load-specific variables such as\n\
 automatic loading of Python scripts"),
 		    &retval, "set auto-load ",
-		    0/*allow-unknown*/, &setlist);
+		    1/*allow-unknown*/, &setlist);
 
   return &retval;
 }
diff --git a/gdb/auto-load.h b/gdb/auto-load.h
index cf2a035..1ec9a1d 100644
--- a/gdb/auto-load.h
+++ b/gdb/auto-load.h
@@ -32,10 +32,10 @@ struct script_language
 
 extern int global_auto_load;
 
-extern const char auto_load_local_gdbinit_on[];
-extern const char auto_load_local_gdbinit_off[];
-extern const char auto_load_local_gdbinit_warn_and_on[];
-extern const char auto_load_local_gdbinit_warn_and_off[];
+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 struct auto_load_pspace_info *
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 86b2493..e8dd125 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1280,14 +1280,44 @@ that file.
 @item
 Processes command line options and operands.
 
+@anchor{local-gdbinit}
 @item
 Reads and executes the commands from init file (if any) in the current
-working directory.  This is only done if the current directory is
-different from your home directory.  Thus, you can have more than one
+working directory as long as @samp{set auto-load local-gdbinit} is set to
+@samp{yes} or @samp{warn-and-yes}.  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
 to the program you are debugging, in the directory where you invoke
 @value{GDBN}.
 
+This feature is deprecated, please use @ref{objfile-gdb.rc file} instead.
+
+You can control execution of this file:
+
+@table @code
+@kindex set auto-load local-gdbinit
+@item set auto-load local-gdbinit [yes|no|warn-and-yes|warn-and-no]
+Enable or disable the auto-loading of
+@xref{Sequences, Canned Sequences of Commands}, 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 the favor
+of @xref{objfile-gdb.rc file}.
+
+@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.
+
+@kindex info auto-load local-gdbinit
+@cindex print commands from current directory init file have been auto-loaded
+@item info auto-load local-gdbinit
+Print whether canned sequences of commands from init file in the
+current directory have been auto-loaded.
+@end table
+
+@anchor{-iex}
 @item
 If the command line specified a program to debug, or a process to
 attach to, or a core file, @value{GDBN} loads any auto-loaded
@@ -24640,13 +24670,17 @@ writable.
 
 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} and @code{.debug_gdb_scripts} section.
+@value{GDBN} will look for support scripts in several ways:
+@file{@var{objfile}-gdb.py} file, @file{@var{objfile}-gdb.rc} file
+and @code{.debug_gdb_scripts} section.
 
 @menu
 * objfile-gdb.py file::         The @file{@var{objfile}-gdb.py} file
+* objfile-gdb.rc file::         The @file{@var{objfile}-gdb.rc} file
 * .debug_gdb_scripts section::  The @code{.debug_gdb_scripts} section
 * Which flavor to choose?::
+* auto-load safe-path::         Security restriction for auto-loading
+* auto-load verbose mode::      Displaying files tried for auto-load
 @end menu
 
 The auto-loading feature is useful for supplying application-specific
@@ -24656,20 +24690,41 @@ Auto-loading can be enabled or disabled,
 and the list of auto-loaded scripts can be printed.
 
 @table @code
+@kindex set auto-load no
+@item set auto-load no
+Global disable of any auto-loading sub-commands of @value{GDBN}.  You may want
+to use this command with the @samp{-iex} option @pxref{-iex, -init-eval-command}.
+
 @kindex set auto-load python-scripts
 @item set auto-load python-scripts [yes|no]
-Enable or disable the auto-loading of Python scripts.
+Enable or disable the auto-loading of Python scripts, either specified as the
+@file{@var{objfile}-gdb.py} file or in the @code{.debug_gdb_scripts} section.
+
+@kindex set auto-load gdb-scripts
+@item set auto-load gdb-scripts [yes|no]
+Similar to the previous item but
+for @xref{Sequences, Canned Sequences of Commands}.
 
 @kindex show auto-load python-scripts
 @item show auto-load python-scripts
 Show whether auto-loading of Python scripts is enabled or disabled.
 
+@kindex show auto-load gdb-scripts
+@item show auto-load gdb-scripts
+Similar to the previous item but for canned sequences of commands.
+
 @kindex info auto-load python-scripts
 @cindex print list of auto-loaded Python scripts
 @item info auto-load python-scripts [@var{regexp}]
-Print the list of all scripts that @value{GDBN} auto-loaded.
+Print the list of all Python scripts that @value{GDBN} auto-loaded.
 
-Also printed is the list of scripts that were mentioned in
+@kindex info auto-load gdb-scripts
+@cindex print list of auto-loaded canned sequences of commands scripts.
+@item info auto-load gdb-scripts [@var{regexp}]
+Similar to the previous item but for canned sequences of commands.
+
+@samp{info auto-load python-scripts} also prints
+the list of Python scripts that were mentioned in
 the @code{.debug_gdb_scripts} section and were not found
 (@pxref{.debug_gdb_scripts section}).
 This is useful because their names are not printed when @value{GDBN}
@@ -24700,7 +24755,8 @@ registering objfile-specific pretty-printers.
 @cindex @file{@var{objfile}-gdb.py}
 
 When a new object file is read, @value{GDBN} looks for
-a file named @file{@var{objfile}-gdb.py},
+a file named @file{@var{objfile}-gdb.py} as long
+as @samp{set auto-load python-scripts} is set to @samp{yes},
 where @var{objfile} is the object file's real name, formed by ensuring
 that the file name is absolute, following all symlinks, and resolving
 @code{.} and @code{..} components.  If this file exists and is
@@ -24723,6 +24779,15 @@ is the object file's real name, as described above.
 So your @file{-gdb.py} file should be careful to avoid errors if it
 is evaluated more than once.
 
+@node objfile-gdb.rc file
+@subsubsection The @file{@var{objfile}-gdb.rc} file
+@cindex @file{@var{objfile}-gdb.rc}
+
+Similar to the @ref{objfile-gdb.py file} file @value{GDBN} also tries to load
+an @file{@var{objfile}-gdb.rc} file containing
+@xref{Sequences, Canned Sequences of Commands}, as long as
+@samp{set auto-load gdb-scripts} is set to @samp{yes}.
+
 @node .debug_gdb_scripts section
 @subsubsection The @code{.debug_gdb_scripts} section
 @cindex @code{.debug_gdb_scripts} section
@@ -24732,6 +24797,7 @@ when @value{GDBN} loads a new object file
 it will look for a special section named @samp{.debug_gdb_scripts}.
 If this section exists, its contents is a list of names of scripts to load.
 
+As long as @samp{set auto-load python-scripts} is set to @samp{yes},
 @value{GDBN} will look for each specified script file first in the
 current directory and then along the source search path
 (@pxref{Source Path, ,Specifying Source Directories}),
@@ -24767,7 +24833,7 @@ using this header will get a reference to the specified script.
 @node Which flavor to choose?
 @subsubsection Which flavor to choose?
 
-Given the multiple ways of auto-loading Python scripts, it might not always
+Given the multiple ways of auto-loading scripts, it might not always
 be clear which one to choose.  This section provides some guidance.
 
 Benefits of the @file{-gdb.py} way:
@@ -24788,6 +24854,14 @@ isn't a source directory in which to find the script.
 Doesn't require source code additions.
 @end itemize
 
+Benefits of the @file{-gdb.rc} way:
+
+@itemize @bullet
+@item
+Canned sequences of commands scripting can be used on systems where Python is
+not available for the build of @value{GDBN} itself.
+@end itemize
+
 Benefits of the @code{.debug_gdb_scripts} way:
 
 @itemize @bullet
@@ -24816,6 +24890,77 @@ cumbersome.  It may be easier to specify the scripts in the
 top of the source tree to the source search path.
 @end itemize
 
+@node auto-load safe-path
+@subsubsection Security restriction for auto-loading
+@cindex auto-load safe-path
+
+As the files of inferior can come from untrusted source (such as submitted by
+an application user) @value{GDBN} does not always load any files automatically.
+
+This setting should contain so called canonical filenames, after any symbolic
+links, current and parent directories have been resolved.  Both the
+@samp{auto-load safe-path} setting and the scripts being verified are
+canonicalized first for their matching.
+
+@table @code
+@kindex set auto-load safe-path
+@item set auto-load safe-path @var{directories}
+Set the list of directories (and their subdirectories) trusted for automatic
+loading and execution of scripts.  The list of directories uses directory
+separator as its delimiter.  You can also enter a specific trusted file.
+
+@kindex show auto-load safe-path
+@item show auto-load safe-path
+Show the list of directories (and their subdirectories) trusted for automatic
+loading and execution of scripts.
+@end table
+
+Setting this variable to an empty string disables this security protection.
+This variable is supposed to be set to the system directories writable by the
+system superuser only.  Users can add their source directories in home
+directories.  See also the deprecated option @xref{local-gdbinit}.
+
+Be aware even downloaded source packages may contain exploit code which may get
+executed by @value{GDBN} without explicitly running any program therein.
+
+@node auto-load verbose mode
+@subsubsection Displaying files tried for auto-load
+@cindex debug auto-load
+
+For better visibility of all the file locations where you can place scripts to
+be auto-loaded with inferior --- or to protect yourself against accidental
+execution of untrusted scripts --- @value{GDBN} provides a feature for printing
+all the files attempted to be loaded.  Both existing and non-existing files may
+be printed.
+
+For example @ref{auto-load safe-path} applies to canonicalized filenames which
+may not be too obvious while setting it up.
+
+@smallexample
+(gdb) set debug auto-load ues
+(gdb) file /home/user/gdb/gdb
+Reading symbols from /home/user/gdb/gdb...done.
+auto-load: Loading canned sequences of commands script
+           "/home/user/gdb/gdb-gdb.rc" for objfile "/home/user/gdb/gdb".
+auto-load: Resolved file "/home/user/gdb/gdb-gdb.rc"
+           as "/home/user/gdb/gdb-gdb.rc".
+auto-load: Updating directories of "/usr/local".
+auto-load: Resolved directory "/usr/local".
+warning: File "/home/user/gdb/gdb-gdb.rc" auto-loading has been declined
+         by your `auto-load safe-path' set to "/usr/local".
+@end smallexample
+
+@table @code
+@kindex set debug auto-load path 
+@item set debug auto-load [yes|no]
+Set whether printing of the filenames attempted to be auto-loaded is turned on.
+
+@kindex show debug auto-load
+@item show debug auto-load
+Show whether printing of the filenames attempted to be auto-loaded is turned
+on.
+@end table
+
 @node Python modules
 @subsection Python modules
 @cindex python modules
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 6757204..700d8cc 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -342,7 +342,7 @@ add_piece (struct dwarf_expr_context *ctx, ULONGEST size, ULONGEST offset)
     }
   else if (p->location == DWARF_VALUE_IMPLICIT_POINTER)
     {
-      p->v.ptr.die = ctx->len;
+      p->v.ptr.die.cu_off = ctx->len;
       p->v.ptr.offset = value_as_long (dwarf_expr_fetch (ctx, 0));
     }
   else if (p->location == DWARF_VALUE_REGISTER)
@@ -464,7 +464,7 @@ base_types_equal_p (struct type *t1, struct type *t2)
    size.  */
 
 static struct type *
-dwarf_get_base_type (struct dwarf_expr_context *ctx, ULONGEST die, int size)
+dwarf_get_base_type (struct dwarf_expr_context *ctx, cu_offset die, int size)
 {
   struct type *result;
 
@@ -869,7 +869,7 @@ execute_stack_op (struct dwarf_expr_context *ctx,
 	      error (_("DWARF-2 expression error: DW_OP_GNU_implicit_pointer "
 		       "is not allowed in frame context"));
 
-	    /* The referred-to DIE.  */
+	    /* The referred-to DIE of cu_offset kind.  */
 	    ctx->len = extract_unsigned_integer (op_ptr, ctx->ref_addr_size,
 						 byte_order);


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


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

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

The branch, archer-jankratochvil-autoload has been updated
       via  fe4236cb1e811443bf11f862a1a4ad8a5da0439f (commit)
       via  a3613cf236596d32ba4d759f2c6833fa5a696053 (commit)
       via  15a5243fe71d3306376ec980a1e241f4fd54ca02 (commit)
       via  90ffcbdd2c68c448820d0fa1cf87e6262df832bf (commit)
       via  f86f6c7cae6527786598132d62d07ef17c1ee9f0 (commit)
       via  b14ef7c5b2649c4f4c3bb1c68321aae28390dffb (commit)
       via  824b64104edaa089071b8205dcf1575eedc58e73 (commit)
       via  24d203495b3f6538bee59c3eb3fd63b708262c63 (commit)
       via  3bc5163e02e63d2a932df1fd068a6281926c5feb (commit)
       via  22d5ad2ba53e3860f819c12091c560665fd63186 (commit)
       via  0d05975cee149b03f975b4e6081d3ea2360f98b3 (commit)
       via  9da9d078d284391547e446d1e95d4a616ed954ff (commit)
       via  4faff13661d7a52e1701abba8e826eb9606f62b8 (commit)
       via  2835eadf9c1c04c0612aa4957392819477f1bca3 (commit)
       via  c9cff93189fa413d52c148cbdc0ac14688f0fdf6 (commit)
       via  ab600614d553cd616fdbc3ebc77e43f30dd301e2 (commit)
       via  23f3d45fa5cccdb7bb331f23484555e662a2ae4a (commit)
       via  03ae95e867a4c94f0bdf7a2358cedc39a19a1fdb (commit)
       via  35d2e24b5a91d04403d10514e896f68df8b40dea (commit)
       via  dff5a25c1f0ade13d791de1864948696381debeb (commit)
       via  2670804f2294d8162c2ccd92bb64a9bc49fef99b (commit)
       via  bc876d3117a40a012734653d9c058e410e8ee246 (commit)
       via  6c837efc3afd7a12a8f494363ed9cafd7dd9c132 (commit)
       via  7304a03f7079c1836cac33c2acd9a5972cf96b8e (commit)
       via  cbb969a6e8088260e66114ee74a8b4901b33c9c6 (commit)
       via  c25a770c8d4a1337257048a72cd6bef1779c7114 (commit)
       via  7cfcf6754084bdbf29f599d13d675ae3b74a371d (commit)
       via  fd41f12fe85a1b677b8c83bee9b2df20c792b615 (commit)
       via  f0a040c143cbcec1244eebc0970b32013fb98a8a (commit)
      from  64ecd11610152afda6e30f9f4d20929bb0c3e225 (commit)

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

- Log -----------------------------------------------------------------
commit fe4236cb1e811443bf11f862a1a4ad8a5da0439f
Merge: 824b641 a3613cf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 21:14:39 2012 +0100

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

commit a3613cf236596d32ba4d759f2c6833fa5a696053
Merge: 24d2034 15a5243
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 21:14:39 2012 +0100

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

commit 15a5243fe71d3306376ec980a1e241f4fd54ca02
Merge: 3bc5163 90ffcbd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 21:14:38 2012 +0100

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

commit 90ffcbdd2c68c448820d0fa1cf87e6262df832bf
Merge: 22d5ad2b f86f6c7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 21:14:38 2012 +0100

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

commit f86f6c7cae6527786598132d62d07ef17c1ee9f0
Merge: 0d05975 b14ef7c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 21:14:38 2012 +0100

    Merge branch 'secmove' into secmove-misc2

commit b14ef7c5b2649c4f4c3bb1c68321aae28390dffb
Merge: 9da9d07 23f3d45
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 21:14:38 2012 +0100

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

commit 824b64104edaa089071b8205dcf1575eedc58e73
Merge: 2670804 24d2034
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:27 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath-debug' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug-warnlocal

commit 24d203495b3f6538bee59c3eb3fd63b708262c63
Merge: bc876d3 3bc5163
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:27 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug

commit 3bc5163e02e63d2a932df1fd068a6281926c5feb
Merge: 6c837ef 22d5ad2b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:27 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2-warn' into initclean-initx-gdbinitb-move-misc2-warn-safepath

commit 22d5ad2ba53e3860f819c12091c560665fd63186
Merge: 7304a03 0d05975
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:26 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2' into initclean-initx-gdbinitb-move-misc2-warn

commit 0d05975cee149b03f975b4e6081d3ea2360f98b3
Merge: cbb969a 9da9d07
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:26 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move' into initclean-initx-gdbinitb-move-misc2

commit 9da9d078d284391547e446d1e95d4a616ed954ff
Merge: c25a770 4faff13
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:26 2012 +0100

    Merge branch 'initclean-initx-gdbinitb' into initclean-initx-gdbinitb-move

commit 4faff13661d7a52e1701abba8e826eb9606f62b8
Merge: 7cfcf67 2835ead
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:26 2012 +0100

    Merge branch 'initclean-initx' into initclean-initx-gdbinitb

commit 2835eadf9c1c04c0612aa4957392819477f1bca3
Merge: fd41f12 c9cff93
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:26 2012 +0100

    Merge branch 'initclean' into initclean-initx

commit c9cff93189fa413d52c148cbdc0ac14688f0fdf6
Merge: ab60061 03ae95e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:25 2012 +0100

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

commit ab600614d553cd616fdbc3ebc77e43f30dd301e2
Merge: 20ded24 dff5a25
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:53:23 2012 +0100

    Merge commit 'dff5a25c1f0ade13d791de1864948696381debeb' into initclean

commit 23f3d45fa5cccdb7bb331f23484555e662a2ae4a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 18:38:55 2012 +0000

    gdb/testsuite/
    	* gdb.base/auxv.c (func2): setrlimit to infinity to enable core dumps.
    	* gdb.base/auxv.exp: Try to compile it with -DUSE_RLIMIT first.
    	(generate native core dump): Make the test unsupported if core cannot
    	be generated.

commit 2670804f2294d8162c2ccd92bb64a9bc49fef99b
Merge: 64ecd11 bc876d3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:30 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath-debug' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug-warnlocal

commit bc876d3117a40a012734653d9c058e410e8ee246
Merge: b4c159b 6c837ef
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:30 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2-warn-safepath' into initclean-initx-gdbinitb-move-misc2-warn-safepath-debug

commit 6c837efc3afd7a12a8f494363ed9cafd7dd9c132
Merge: 673ec47 7304a03
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:29 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2-warn' into initclean-initx-gdbinitb-move-misc2-warn-safepath

commit 7304a03f7079c1836cac33c2acd9a5972cf96b8e
Merge: 1cac12d cbb969a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:29 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move-misc2' into initclean-initx-gdbinitb-move-misc2-warn

commit cbb969a6e8088260e66114ee74a8b4901b33c9c6
Merge: 81eb095 c25a770
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:29 2012 +0100

    Merge branch 'initclean-initx-gdbinitb-move' into initclean-initx-gdbinitb-move-misc2

commit c25a770c8d4a1337257048a72cd6bef1779c7114
Merge: 606ad59 7cfcf67
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:29 2012 +0100

    Merge branch 'initclean-initx-gdbinitb' into initclean-initx-gdbinitb-move

commit 7cfcf6754084bdbf29f599d13d675ae3b74a371d
Merge: 925a2ef fd41f12
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:29 2012 +0100

    Merge branch 'initclean-initx' into initclean-initx-gdbinitb

commit fd41f12fe85a1b677b8c83bee9b2df20c792b615
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Mar 19 19:14:25 2012 +0100

    .

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

Summary of changes:
 gdb/ChangeLog                   |   36 ++++++++++++++++++++++++++++++++++++
 gdb/NEWS                        |    2 +-
 gdb/doc/ChangeLog               |    7 +++++++
 gdb/doc/gdb.texinfo             |    8 +++++---
 gdb/gnu-v3-abi.c                |    2 +-
 gdb/testsuite/ChangeLog         |   14 ++++++++++++++
 gdb/testsuite/gdb.base/auxv.c   |   15 +++++++++++++++
 gdb/testsuite/gdb.base/auxv.exp |    7 +++++--
 8 files changed, 84 insertions(+), 7 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7325047..3059d69 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,39 @@
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup.
+	* python/py-auto-load.c (source_section_scripts): New variable back_to.
+	Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
+	with xfree.
+	(auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
+
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* NEWS: Describe new options --init-command=FILE, -ix and
+	--init-eval-command=COMMAND, -iex.
+	* main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
+	CMDARG_INIT_COMMAND.
+	(captured_main): New enum items OPT_IX and OPT_IEX.  Add
+	"init-command", "init-eval-command", "ix" and "iex" to the variable
+	long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
+	New comment for CMDARG_FILE and CMDARG_COMMAND processing.
+	(print_gdb_help): Describe --init-command=FILE, -ix and
+	--init-eval-command=COMMAND, -iex.
+
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup.
+	* main.c (struct cmdarg): Move it here from main.  Add more comments.
+	(cmdarg_s, VEC (cmdarg_s)): New.
+	(main): Move struct cmdarg from here.  New variables cmdarg_vec and
+	cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
+	Install cleanup for cmdarg_vec.  Update filling for options 'x' and
+	'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
+	of CMDARG.
+
+2012-03-19  Tom Tromey  <tromey@redhat.com>
+
+	* gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
+
 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	PR symtab/13777
diff --git a/gdb/NEWS b/gdb/NEWS
index 1f7a69a..890c761 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -142,7 +142,7 @@ QProgramSignals:
 
 * New command line options
 
---init-command=FILE, -ix          Like --init-command, -x but execute it
+--init-command=FILE, -ix          Like --command, -x but execute it
                                   before loading inferior.
 --init-eval-command=COMMAND, -iex Like --eval-command=COMMAND, -ex but
                                   execute it before loading inferior.
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index cb6d0e9..92e3e1b 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* gdb.texinfo (File Options): Describe --init-command=FILE, -ix and
+	--init-eval-command=COMMAND, -iex.
+	(Startup): Describe -iex and -ix.  Simplify the example
+	for "set auto-load-scripts off".
+
 2012-03-16  Gary Benson  <gbenson@redhat.com>
 
 	PR breakpoints/10738
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index b37215b..86b2493 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -994,14 +994,16 @@ also be interleaved with @samp{-command} as required.
 @itemx -ix @var{file}
 @cindex @code{--init-command}
 @cindex @code{-ix}
-Execute commands from file @var{file} before gdbinit files or inferior loading.
+Execute commands from file @var{file} before loading gdbinit files or the
+inferior.
 @xref{Startup}.
 
 @item -init-eval-command @var{command}
 @itemx -iex @var{command}
 @cindex @code{--init-eval-command}
 @cindex @code{-iex}
-Execute a single @value{GDBN} command before gdbinit files or inferior loading.
+Execute a single @value{GDBN} command before loading gdbinit files or the
+inferior.
 @xref{Startup}.
 
 @item -directory @var{directory}
@@ -1258,7 +1260,7 @@ Sets up the command interpreter as specified by the command line
 @item
 Executes commands and command files specified by the @samp{-iex} and
 @samp{-ix} options in their specified order.  Usually you should use the
-@samp{-ex} and @samp{-x} options instead but this way you can apply
+@samp{-ex} and @samp{-x} options instead, but this way you can apply
 settings before @value{GDBN} init files get executed and before inferior
 gets loaded.
 
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 72ca2a1..1095c60 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -907,7 +907,7 @@ gnuv3_print_vtable (struct value *value)
   struct value_print_options opts;
   htab_t offset_hash;
   struct cleanup *cleanup;
-  VEC (value_and_voffset_p) *result_vec;
+  VEC (value_and_voffset_p) *result_vec = NULL;
   struct value_and_voffset *iter;
   int i, count;
 
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f2ea686..0c05576 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,17 @@
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+	    Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* gdb.base/auxv.c (func2): setrlimit to infinity to enable core dumps.
+	* gdb.base/auxv.exp: Try to compile it with -DUSE_RLIMIT first.
+	(generate native core dump): Make the test unsupported if core cannot
+	be generated.
+
+2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* gdb.gdb/selftest.exp (do_steps_and_nexts): New entry
+	for cmdarg_vec = NULL.  Remove entries for cmdsize = 1, cmdarg = and
+	ncmd = 0.  New entry for VEC_cleanup cmdarg_s.
+
 2012-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
 	* gdb.base/cond-eval-mode.exp: Fix the anticipated warning string.
diff --git a/gdb/testsuite/gdb.base/auxv.c b/gdb/testsuite/gdb.base/auxv.c
index ed5f2b6..c87d0f7 100644
--- a/gdb/testsuite/gdb.base/auxv.c
+++ b/gdb/testsuite/gdb.base/auxv.c
@@ -35,6 +35,13 @@
 #define ABORT {char *invalid = 0; *invalid = 0xFF;}
 #endif
 
+#ifdef USE_RLIMIT
+# include <sys/resource.h>
+# ifndef RLIM_INFINITY
+#  define RLIM_INFINITY -1
+# endif
+#endif /* USE_RLIMIT */
+
 /* Don't make these automatic vars or we will have to walk back up the
    stack to access them. */
 
@@ -53,6 +60,14 @@ func2 (int x)
   int i;
   static int y;
 
+#ifdef USE_RLIMIT
+  {
+    struct rlimit rlim = { RLIM_INFINITY, RLIM_INFINITY };
+
+    setrlimit (RLIMIT_CORE, &rlim);
+  }
+#endif
+
   /* Make sure that coremaker_local doesn't get optimized away. */
   for (i = 0; i < 5; i++)
     coremaker_local[i] = i;
diff --git a/gdb/testsuite/gdb.base/auxv.exp b/gdb/testsuite/gdb.base/auxv.exp
index da10f05..16f12c7 100644
--- a/gdb/testsuite/gdb.base/auxv.exp
+++ b/gdb/testsuite/gdb.base/auxv.exp
@@ -31,7 +31,10 @@ set binfile ${objdir}/${subdir}/${testfile}
 set corefile ${objdir}/${subdir}/${testfile}.corefile
 set gcorefile ${objdir}/${subdir}/${testfile}.gcore
 
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
+		  {debug additional_flags=-DUSE_RLIMIT}] != ""
+     && [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
+		  {debug}] != "" } {
     untested "couldn't compile ${srcdir}/${subdir}/${srcfile}"
     return -1
 }
@@ -155,7 +158,7 @@ if {$core_works} {
     } else {
 	set core_works 0
 	warning "can't generate a core file - core tests suppressed - check ulimit -c"
-	fail $test
+	unsupported $test
     }
 } else {
     unsupported $test


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


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

end of thread, other threads:[~2012-03-29  8:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-24 17:25 [SCM] archer-jankratochvil-autoload: Merge branch 'secmove-misc2-warn-safepath-debug' into secmove-misc2-warn-safepath-debug-warnlocal jkratoch
  -- strict thread matches above, loose matches on Subject: below --
2012-03-29  8:50 jkratoch
2012-03-29  6:21 jkratoch
2012-03-29  6:17 jkratoch
2012-03-29  6:07 jkratoch
2012-03-29  5:45 jkratoch
2012-03-28 20:31 jkratoch
2012-03-25 19:10 jkratoch
2012-03-25 19:02 jkratoch
2012-03-25 16:56 jkratoch
2012-03-24  9:09 jkratoch
2012-03-20 19:39 jkratoch
2012-03-20 19:38 jkratoch
2012-03-20  0:17 jkratoch
2012-03-19 20:15 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).