From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20737 invoked by alias); 21 Nov 2016 15:49:07 -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 20709 invoked by uid 89); 21 Nov 2016 15:49:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=994 X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Nov 2016 15:48:56 +0000 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 21 Nov 2016 07:48:55 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga005.fm.intel.com with ESMTP; 21 Nov 2016 07:48:53 -0800 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id uALFmrJv026266; Mon, 21 Nov 2016 15:48:53 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id uALFmrsc024777; Mon, 21 Nov 2016 16:48:53 +0100 Received: (from twiederh@localhost) by ulvlx001.iul.intel.com with œ id uALFmqKQ024774; Mon, 21 Nov 2016 16:48:52 +0100 From: Tim Wiederhake To: gdb-patches@sourceware.org Cc: palves@redhat.com, markus.t.metzger@intel.com Subject: [PATCH v3 0/8] Python bindings for btrace recordings Date: Mon, 21 Nov 2016 15:49:00 -0000 Message-Id: <1479743318-24523-1-git-send-email-tim.wiederhake@intel.com> X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00605.txt.bz2 This patch series adds Python bindings for btrace recordings. V1 of this series can be found here: https://sourceware.org/ml/gdb-patches/2016-10/msg00733.html V2 of this series can be found here: https://sourceware.org/ml/gdb-patches/2016-11/msg00084.html Changes in V3: - Rebased to current master. - Replaced some strncmp with strcmp in patch 4 ("Add record_start function"). - Incorporated Eli's feedback regarding the documentation part. Tim Wiederhake (8): btrace: Count gaps as one instruction explicitly. btrace: Export btrace_decode_error function. btrace: Use binary search to find instruction. Add record_start function. python: Create Python bindings for record history. python: Implement btrace Python bindings for record history. python: Add tests for record Python bindings Add documentation for new instruction record Python bindings. gdb/Makefile.in | 4 + gdb/NEWS | 4 + gdb/btrace.c | 163 +++-- gdb/btrace.h | 21 +- gdb/doc/python.texi | 237 ++++++ gdb/python/py-btrace.c | 994 ++++++++++++++++++++++++++ gdb/python/py-btrace.h | 32 + gdb/python/py-record.c | 257 +++++++ gdb/python/py-record.h | 57 ++ gdb/python/python-internal.h | 7 + gdb/python/python.c | 14 + gdb/record-btrace.c | 131 ++-- gdb/record-full.c | 20 + gdb/record.c | 28 + gdb/record.h | 5 + gdb/target-debug.h | 2 + gdb/target-delegates.c | 33 + gdb/target.c | 7 + gdb/target.h | 10 + gdb/testsuite/gdb.python/py-record-btrace.c | 48 ++ gdb/testsuite/gdb.python/py-record-btrace.exp | 160 +++++ 21 files changed, 2096 insertions(+), 138 deletions(-) create mode 100644 gdb/python/py-btrace.c create mode 100644 gdb/python/py-btrace.h create mode 100644 gdb/python/py-record.c create mode 100644 gdb/python/py-record.h create mode 100644 gdb/testsuite/gdb.python/py-record-btrace.c create mode 100644 gdb/testsuite/gdb.python/py-record-btrace.exp -- 2.7.4