From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73901 invoked by alias); 27 Mar 2019 21:53:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 73884 invoked by uid 89); 27 Mar 2019 21:53:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=UD:ada-lang.c, ada-lang.c, adalangc, rust-lang.c X-HELO: mail-wm1-f50.google.com Received: from mail-wm1-f50.google.com (HELO mail-wm1-f50.google.com) (209.85.128.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Mar 2019 21:53:30 +0000 Received: by mail-wm1-f50.google.com with SMTP id y197so1720864wmd.0 for ; Wed, 27 Mar 2019 14:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id; bh=XIwxvrgeAiayx06cnHWbXgecJXI3sm6jEZPTCaDGV/4=; b=RP5AAy/Qsj0q28UDXS/yzS4QQmsSnmNhObyBvizQAvEYzSJkAU2X/0cvgH8eB25+ky 2qz+GcIoxv07qEfEnbqdZX1I8DfnXRMFu/+0JzmvXaYxyh67ROB4EVXNaMzuPZG7cRnL I+8LS8Y/4JtEvwBPorwPDbAEShAbxRz7rXdIVB27Q2ECpnsdqTwYcUcFh/xm/kN5zY/b r+vzWH6Phm/Y2GnDncc6hbVMNmwNFbPJaCYms1x3NUGlgWxtGsJ+BEvC0PCW7AzMKrw6 3ncuL0DLHUHLnR7OFPh/T+h2NiCvyod9Dlo5PPU544X4rqvF+xloThWFWbZ1E6JhfS/6 3JkA== Return-Path: Received: from localhost (host81-151-161-58.range81-151.btcentralplus.com. [81.151.161.58]) by smtp.gmail.com with ESMTPSA id z1sm14300035wrs.52.2019.03.27.14.53.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 14:53:27 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: richard.bunt@arm.com, Andrew Burgess Subject: [PATCH 0/2] Add new 'print max-depth' feature Date: Wed, 27 Mar 2019 21:53:00 -0000 Message-Id: X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00678.txt.bz2 To make code review a little easier I split this feature into two parts, first adding a new field to the language structure, which is then used in the second commit. For review purposes you're probably better looking at the second commit first, hopefully afer that the motivation for the first commit should be clearer. -- Andrew Burgess (2): gdb: Introduce new language field la_struct_too_deep_ellipsis gdb: Introduce 'print max-depth' feature gdb/ChangeLog | 42 ++++++ gdb/NEWS | 9 ++ gdb/ada-lang.c | 1 + gdb/c-lang.c | 4 + gdb/cp-valprint.c | 32 +++-- gdb/d-lang.c | 1 + gdb/doc/ChangeLog | 7 + gdb/doc/gdb.texinfo | 57 ++++++++ gdb/doc/guile.texi | 3 + gdb/doc/python.texi | 3 + gdb/f-lang.c | 1 + gdb/go-lang.c | 1 + gdb/guile/scm-pretty-print.c | 23 ++- gdb/language.c | 2 + gdb/language.h | 5 + gdb/m2-lang.c | 1 + gdb/objc-lang.c | 1 + gdb/opencl-lang.c | 1 + gdb/p-lang.c | 1 + gdb/python/py-prettyprint.c | 22 ++- gdb/rust-lang.c | 1 + gdb/testsuite/ChangeLog | 12 ++ gdb/testsuite/gdb.base/max-depth.c | 209 +++++++++++++++++++++++++++ gdb/testsuite/gdb.base/max-depth.exp | 122 ++++++++++++++++ gdb/testsuite/gdb.fortran/max-depth.exp | 41 ++++++ gdb/testsuite/gdb.fortran/max-depth.f90 | 40 ++++++ gdb/testsuite/gdb.python/py-nested-maps.c | 122 ++++++++++++++++ gdb/testsuite/gdb.python/py-nested-maps.exp | 211 ++++++++++++++++++++++++++++ gdb/testsuite/gdb.python/py-nested-maps.py | 129 +++++++++++++++++ gdb/testsuite/lib/gdb.exp | 30 ++++ gdb/valprint.c | 66 ++++++++- gdb/valprint.h | 3 + 32 files changed, 1188 insertions(+), 15 deletions(-) create mode 100644 gdb/testsuite/gdb.base/max-depth.c create mode 100644 gdb/testsuite/gdb.base/max-depth.exp create mode 100644 gdb/testsuite/gdb.fortran/max-depth.exp create mode 100644 gdb/testsuite/gdb.fortran/max-depth.f90 create mode 100644 gdb/testsuite/gdb.python/py-nested-maps.c create mode 100644 gdb/testsuite/gdb.python/py-nested-maps.exp create mode 100644 gdb/testsuite/gdb.python/py-nested-maps.py -- 2.14.5