From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21080 invoked by alias); 21 Oct 2008 01:04:17 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 21051 invoked by uid 306); 21 Oct 2008 01:04:15 -0000 Date: Tue, 21 Oct 2008 01:04:00 -0000 Message-ID: <20081021010415.21036.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-python: * gdb.python/python-prettyprint.exp: Fixed comment. X-Git-Refname: refs/heads/archer-tromey-python X-Git-Reftype: branch X-Git-Oldrev: 24c99704a1274c445251bd3216b99cc0461fe5ec X-Git-Newrev: e726423960c41516007f440ed0173b1acf3ba4d9 X-SW-Source: 2008-q4/txt/msg00025.txt.bz2 List-Id: The branch, archer-tromey-python has been updated via e726423960c41516007f440ed0173b1acf3ba4d9 (commit) via b0505281b5d04aced8b06827329d61f8b3b4b595 (commit) via a26e95fa14e29c04633a58b5ebbd575109d6f5f8 (commit) from 24c99704a1274c445251bd3216b99cc0461fe5ec (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit e726423960c41516007f440ed0173b1acf3ba4d9 Author: Tom Tromey Date: Mon Oct 20 15:00:08 2008 -0600 * gdb.python/python-prettyprint.exp: Fixed comment. commit b0505281b5d04aced8b06827329d61f8b3b4b595 Author: Tom Tromey Date: Mon Oct 20 14:58:34 2008 -0600 * gdb.python/Makefile.in (EXECUTABLES): Add python-prettyprint.< commit a26e95fa14e29c04633a58b5ebbd575109d6f5f8 Author: Tom Tromey Date: Mon Oct 20 14:57:23 2008 -0600 gdb * mi/mi-main.c (mi_cmd_list_features): Add "python" feature. gdb/doc * gdb.texinfo (GDB/MI Miscellaneous Commands): Mention 'python' feature. ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 4 ++++ gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 4 ++++ gdb/mi/mi-main.c | 4 ++++ gdb/testsuite/ChangeLog | 8 ++++++++ gdb/testsuite/gdb.python/Makefile.in | 2 +- gdb/testsuite/gdb.python/python-prettyprint.exp | 4 ++-- 7 files changed, 28 insertions(+), 3 deletions(-) First 500 lines of diff: diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 991d3cf..582cc95 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2008-10-20 Tom Tromey + * mi/mi-main.c (mi_cmd_list_features): Add "python" feature. + +2008-10-20 Tom Tromey + * python/python.c (pretty_print_one_value): Copy value if needed. 2008-10-20 Tom Tromey diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 4b8143a..8831116 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-10-20 Tom Tromey + + * gdb.texinfo (GDB/MI Miscellaneous Commands): Mention 'python' + feature. + 2008-10-17 Tom Tromey * gdb.texinfo (Pretty Printing): Update. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index d7b05bc..edbf51e 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -23346,6 +23346,10 @@ as possible presense of the @code{frozen} field in the output of @code{-varobj-create}. @item pending-breakpoints Indicates presence of the @option{-f} option to the @code{-break-insert} command. +@item python +Indicates presence of Python scripting support, Python-based +pretty-printing commands, and possible presence of the +@samp{display_hint} field in the output of @code{-var-list-children} @item thread-info Indicates presence of the @code{-thread-info} command. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 034dc28..2e4789e 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -908,6 +908,10 @@ mi_cmd_list_features (char *command, char **argv, int argc) ui_out_field_string (uiout, NULL, "frozen-varobjs"); ui_out_field_string (uiout, NULL, "pending-breakpoints"); ui_out_field_string (uiout, NULL, "thread-info"); + +#if HAVE_PYTHON + ui_out_field_string (uiout, NULL, "python"); +#endif do_cleanups (cleanup); return; diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9e7e4a7..a41bbb0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2008-10-20 Tom Tromey + * gdb.python/python-prettyprint.exp: Fixed comment. + +2008-10-20 Tom Tromey + + * gdb.python/Makefile.in (EXECUTABLES): Add python-prettyprint. + +2008-10-20 Tom Tromey + * gdb.python/python-prettyprint.exp (run_lang_tests): Add tests. * gdb.python/python-prettyprint.c (string_repr, container): New types. diff --git a/gdb/testsuite/gdb.python/Makefile.in b/gdb/testsuite/gdb.python/Makefile.in index 6516ad9..7cf532e 100644 --- a/gdb/testsuite/gdb.python/Makefile.in +++ b/gdb/testsuite/gdb.python/Makefile.in @@ -1,7 +1,7 @@ VPATH = @srcdir@ srcdir = @srcdir@ -EXECUTABLES = python-value +EXECUTABLES = python-value python-prettyprint all info install-info dvi install uninstall installcheck check: @echo "Nothing to be done for $@..." diff --git a/gdb/testsuite/gdb.python/python-prettyprint.exp b/gdb/testsuite/gdb.python/python-prettyprint.exp index 0c9a08b..d6aa537 100644 --- a/gdb/testsuite/gdb.python/python-prettyprint.exp +++ b/gdb/testsuite/gdb.python/python-prettyprint.exp @@ -13,8 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# This file is part of the GDB testsuite. It tests the mechanism -# exposing values to Python. +# This file is part of the GDB testsuite. It tests Python-based +# pretty-printing for the CLI. if $tracelevel then { strace $tracelevel hooks/post-receive -- Repository for Project Archer.