From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by sourceware.org (Postfix) with ESMTPS id 0F91C384B07C for ; Wed, 6 Jul 2022 13:36:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0F91C384B07C X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="282498938" X-IronPort-AV: E=Sophos;i="5.92,250,1650956400"; d="scan'208";a="282498938" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 06:36:48 -0700 X-IronPort-AV: E=Sophos;i="5.92,250,1650956400"; d="scan'208";a="620313165" Received: from sugan-001.iul.intel.com (HELO localhost) ([172.28.50.209]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 06:36:47 -0700 From: Ari Hannula To: gdb-patches@sourceware.org Subject: [PATCH v3 0/2] Function call history patches (MI) Date: Wed, 6 Jul 2022 15:36:37 +0200 Message-Id: <20220706133639.114681-1-ari.hannula@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2022 13:36:52 -0000 Hi all, again on behalf of Tim, I am posting another revision of the function call history MI commands. This time I have fixed the issues found from v2 by the reviewers. Additionally I have fixed some issues, which I found just recently and those are commented in the commit messages. To recap, the new MI command -function-call-history gets the data from record-btrace.c which had some issues related to the naming of the MI fields which I assumed are not allowed to have spaces in them. I have therefore renamed the field names. See the documentation. There should not be any backwards compatibility issues since this is a new MI command which has not yet been used by any clients. I have added documentation for the commands to gdb.texinfo. I have fixed and amended some issues in the tests. Link to v2: https://sourceware.org/pipermail/gdb-patches/2022-April/188360.html Tim Wiederhake (2): [func_call] Add function-call-history-length command to MI. [func_call] Add function-call-history command to MI. gdb/Makefile.in | 1 + gdb/doc/gdb.texinfo | 126 ++++++++++++ gdb/mi/mi-cmd-record.c | 85 ++++++++ gdb/mi/mi-cmd-record.h | 32 +++ gdb/mi/mi-cmds.c | 3 + gdb/mi/mi-cmds.h | 2 + gdb/record-btrace.c | 34 +++- gdb/record.c | 28 +-- gdb/record.h | 18 ++ gdb/target-delegates.c | 27 +++ gdb/target.c | 8 + gdb/target.h | 7 + .../gdb.mi/mi-function_call_history.c | 43 ++++ .../gdb.mi/mi-function_call_history.exp | 184 ++++++++++++++++++ 14 files changed, 576 insertions(+), 22 deletions(-) create mode 100644 gdb/mi/mi-cmd-record.c create mode 100644 gdb/mi/mi-cmd-record.h create mode 100644 gdb/testsuite/gdb.mi/mi-function_call_history.c create mode 100644 gdb/testsuite/gdb.mi/mi-function_call_history.exp -- 2.25.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928