From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75991 invoked by alias); 16 Apr 2019 23:06:19 -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 75975 invoked by uid 89); 16 Apr 2019 23:06:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Envelope-From:sk:andrew., H*RU:sk:host86-, HX-Spam-Relays-External:sk:host86-, H*r:sk:host86- X-HELO: mail-wm1-f65.google.com Received: from mail-wm1-f65.google.com (HELO mail-wm1-f65.google.com) (209.85.128.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Apr 2019 23:06:17 +0000 Received: by mail-wm1-f65.google.com with SMTP id z24so1069976wmi.5 for ; Tue, 16 Apr 2019 16:06:17 -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:in-reply-to:references; bh=/bt0Xsk7/8Xgfi4yPXsYXUQn1F9WUNf0pAndglAW978=; b=RjMilF1E7D4Rumn6nEBWvwZCIUSFqg9HcjgKrKAi5VgN1mGSjxyESpEK4ahNOIMooC nfmc7IEdoW9ydlgdZ9mvVO8s8XeE9n3NI0LV4fIxr6MHCfmQszNUbODg2eLEQr7vxidf HCrrngaNjEdqYlcPupaCkDO6eJrNrIcEucqOyC9k3arItEiLMmUxmHdMsBnP795kB07q 2R2BbZJxJVbaghASHbNT7OFDCo/gUA4LuT4EXDMprr96rrnTOnrKVbXF+vChL7/4bFln E0TrSs1ZDCacTW/+6iGwmVD7z4/eTYtSsaxcAoN7Ej0VGb9TTyE6wzvaegGTJei/ASWE QB+Q== Return-Path: Received: from localhost (host86-164-133-98.range86-164.btcentralplus.com. [86.164.133.98]) by smtp.gmail.com with ESMTPSA id 7sm184580180wrc.81.2019.04.16.16.06.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 16:06:13 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 0/5] Add new 'print max-depth' feature Date: Tue, 16 Apr 2019 23:06:00 -0000 Message-Id: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00282.txt.bz2 This revision hopefully addresses all of the feedback from the first version. Patches #1 and #2 are new, minor clean up patches. Patch #3 (previously #1) is unchanged. Patch #4 is new, this adds a new predicate to the language structure to decide if a given type is a string or not. Patch #5 this is updated from the previous version, there's more documentation, many more tests, minor code issues identified in v1 have been addressed. -- Andrew Burgess (5): gdb/ada: Update some predicate functions to return bool gdb/testsuite: Don't add gcc flags when compiling rust tests gdb: Introduce new language field la_struct_too_deep_ellipsis gdb: Introduce new language field la_is_string_type_p gdb: Introduce 'print max-depth' feature gdb/ChangeLog | 85 +++++++++ gdb/NEWS | 9 + gdb/ada-lang.c | 12 +- gdb/ada-lang.h | 4 +- gdb/c-lang.c | 47 ++++- gdb/c-lang.h | 5 + gdb/cp-valprint.c | 80 +++++---- gdb/d-lang.c | 4 +- gdb/doc/ChangeLog | 8 + gdb/doc/gdb.texinfo | 70 ++++++++ gdb/doc/guile.texi | 3 + gdb/doc/python.texi | 8 + gdb/f-lang.c | 14 +- gdb/go-lang.c | 14 +- gdb/guile/scm-pretty-print.c | 19 +- gdb/language.c | 22 ++- gdb/language.h | 13 ++ gdb/m2-lang.c | 25 ++- gdb/objc-lang.c | 4 +- gdb/opencl-lang.c | 4 +- gdb/p-lang.c | 14 +- gdb/python/py-prettyprint.c | 15 +- gdb/python/py-value.c | 7 +- gdb/rust-lang.c | 24 ++- gdb/testsuite/ChangeLog | 23 +++ gdb/testsuite/gdb.base/max-depth.c | 232 +++++++++++++++++++++++++ gdb/testsuite/gdb.base/max-depth.exp | 165 ++++++++++++++++++ gdb/testsuite/gdb.fortran/max-depth.exp | 41 +++++ gdb/testsuite/gdb.fortran/max-depth.f90 | 42 +++++ gdb/testsuite/gdb.go/max-depth.exp | 40 +++++ gdb/testsuite/gdb.go/max-depth.go | 41 +++++ gdb/testsuite/gdb.modula2/max-depth.c | 45 +++++ gdb/testsuite/gdb.modula2/max-depth.exp | 37 ++++ gdb/testsuite/gdb.python/py-format-string.exp | 21 +++ gdb/testsuite/gdb.python/py-nested-maps.c | 130 ++++++++++++++ gdb/testsuite/gdb.python/py-nested-maps.exp | 238 ++++++++++++++++++++++++++ gdb/testsuite/gdb.python/py-nested-maps.py | 135 +++++++++++++++ gdb/testsuite/lib/gdb.exp | 36 +++- gdb/valprint.c | 56 +++++- gdb/valprint.h | 12 ++ 40 files changed, 1746 insertions(+), 58 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.go/max-depth.exp create mode 100644 gdb/testsuite/gdb.go/max-depth.go create mode 100644 gdb/testsuite/gdb.modula2/max-depth.c create mode 100644 gdb/testsuite/gdb.modula2/max-depth.exp 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