From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78058 invoked by alias); 15 Dec 2017 01:12:53 -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 78049 invoked by uid 89); 15 Dec 2017 01:12:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Dec 2017 01:12:51 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D9EA4E4C3; Fri, 15 Dec 2017 01:12:50 +0000 (UTC) Received: from psique.yyz.redhat.com (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id 84C2E5D962; Fri, 15 Dec 2017 01:12:49 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Tom Tromey , Eli Zaretskii , Simon Marchi , Pedro Alves , Keith Seitz Subject: [PATCH v7 0/2] Implement pahole-like 'ptype /o' option (and do some code reorg) Date: Fri, 15 Dec 2017 01:12:00 -0000 Message-Id: <20171215011247.7396-1-sergiodj@redhat.com> In-Reply-To: <20171121160709.23248-1-sergiodj@redhat.com> References: <20171121160709.23248-1-sergiodj@redhat.com> X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00362.txt.bz2 Changes from v6: - Updated examples in the documentation. - Removed stale comments about the test being x86_64-specific from tests. - Added tests for "ptype /oTM", "ptype /TMo", and for the regression Pedro caught. - Removed "print_offset_default_data". - Fixed regression reported by Pedro. - s/endpos/end_bitpos/ - Filtered out the languages that don't implement the feature so that their type printing output doesn't get clobbered by "ptype /o" when they use "common" code (which is not actually common; it lives inside c-typeprint.c). I decided to do that by checking the current language on typeprint.c:whatis_exp, before setting the "print_offset" bit. The documentation parts have been approved by Eli, and haven't changed.