From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7869) id A01F83858C5F; Thu, 9 Feb 2023 18:50:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A01F83858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675968648; bh=UkGPA2F7HktiSwQMdoChYP0t9d6YuWRU8g3cTxNFVpU=; h=From:To:Subject:Date:From; b=KIpWIl9qAUhTyAMpUdolV5SlWAfhxXSLN4EveyULCMGR8YCFJOBPnYbmscEcAHG6Z ZfmyRlnRQBuhXPHA5r+43n2BS0p7LzHqdjSQOulbuAz37bl1VvIJPmHxTb2xDU8PkV YNOzqps2/mn82w3JKnqM7x24BwnGSXQUUYUFeYrw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Christina Schimpe To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb, testsuite: Remove unnecessary call of "set print pretty on" X-Act-Checkin: binutils-gdb X-Git-Author: Christina Schimpe X-Git-Refname: refs/heads/master X-Git-Oldrev: 1775f8b3804744c22611ed0c9fd2df4f5b4d8641 X-Git-Newrev: 31cf28c7842497aa1f6472b7d76828cf009d2298 Message-Id: <20230209185048.A01F83858C5F@sourceware.org> Date: Thu, 9 Feb 2023 18:50:48 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D31cf28c78424= 97aa1f6472b7d76828cf009d2298 commit 31cf28c7842497aa1f6472b7d76828cf009d2298 Author: Christina Schimpe Date: Fri Oct 21 09:02:57 2022 -0700 gdb, testsuite: Remove unnecessary call of "set print pretty on" =20 The command has no effect for the loading of GDB pretty printers and is removed by this patch to avoid confusion. =20 Documentation for "set print pretty" "Cause GDB to print structures in an indented format with one member pe= r line" Diff: --- gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp | 4 = ---- .../gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp | 2 = -- 2 files changed, 6 deletions(-) diff --git a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp b/gdb/t= estsuite/gdb.python/pretty-print-call-by-hand.exp index 7ab2b1facf7..01ee7b9d3d2 100644 --- a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp +++ b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp @@ -50,8 +50,6 @@ proc start_test { breakpoint_comment } { gdb_breakpoint [gdb_get_line_number ${breakpoint_comment} ${testfile}.= c ] gdb_continue_to_breakpoint ${breakpoint_comment} ".*" =20 - gdb_test_no_output "set print pretty on" "starting to pretty print" - set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/$= {testfile}.py] gdb_test_no_output "source ${remote_python_file}" "load python file" =20 @@ -64,8 +62,6 @@ with_test_prefix "run to frame" { untested "couldn't run to main" } =20 - gdb_test_no_output "set print pretty on" "starting to pretty print" - set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/$= {testfile}.py] gdb_test_no_output "source ${remote_python_file}" "load python file" =20 diff --git a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newo= bjfile-event.exp b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-i= n-newobjfile-event.exp index 2217e2e6527..eefa99c8fa1 100644 --- a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-= event.exp +++ b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-= event.exp @@ -61,8 +61,6 @@ gdb_test_no_output "source ${remote_python_event_handler_= file}" "load python fil =20 gdb_load ${binfile} =20 -gdb_test_no_output "set print pretty on" - if { ![runto_main] } { return }