From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4449 invoked by alias); 24 Oct 2013 00:09:41 -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 4421 invoked by uid 89); 24 Oct 2013 00:09:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f170.google.com Received: from mail-ob0-f170.google.com (HELO mail-ob0-f170.google.com) (209.85.214.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 24 Oct 2013 00:09:38 +0000 Received: by mail-ob0-f170.google.com with SMTP id wp18so1619995obc.1 for ; Wed, 23 Oct 2013 17:09:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-type; bh=6KZx3l9pePKPKzsW6j9UxZ6uxJAsa1r1o3Wbz8Rqqsw=; b=C7J+aX872qwrWqBxw86zsTHEN+LwixSFbo099K39IzUdN7DFLteG5XVDtQdoDlPE26 2tqEwK+dWtHidT63pXvE3+5tsgSYHPsB0UYaXEdYKRuETVUFP8NRhDVspFvoUa97dGeF lVQLPiIabYAReYw1sBeXty8oYtsec8sl3RWqZQFRNF/sojb8/REt2beqBBys1PYV/pzG RdkN3GMKHkPpUL0iG0LyihZ1uKZ94utzXuNhOZv+ghEV6l0h7Qdma4IqrWq6i7aeDDey spYYcsVu+YRZ1o/oZFdRy3Uk7MUotlgHgpqRc754rPMwEh1jvRvyFE9VwGqdE0pK1UNV 1xQA== X-Gm-Message-State: ALoCoQnpghKd4Yok7kXLocX+xsGX8LGBhi7N9CsTDps8Mf2h9swa1Y8mK0SGZ8iZLUUxt6lRVzz/ X-Received: by 10.182.250.163 with SMTP id zd3mr27964obc.20.1382573376989; Wed, 23 Oct 2013 17:09:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.137.135 with HTTP; Wed, 23 Oct 2013 17:09:16 -0700 (PDT) From: Omair Javaid Date: Thu, 24 Oct 2013 00:09:00 -0000 Message-ID: Subject: [PATCH 0/2] GDB process record and reverse debugging improvements for arm*-linux* To: gdb-patches@sourceware.org Cc: Patch Tracking Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00739.txt.bz2 Hi, This patch series improves gdb process record and reverse debugging capabilities for arm targets. There are three patches in the current list and they divided as below: Patch 0) Enables gdb.reverse testsuite for arm and also enables linux-record for arm by making changes to configure.tgt file. Patch 1) Adds support in arm process record code to decode system call and various types of thumb32 instructions. Patch 2) Includes changes required to implement system call instruction recording on arm targets. This patch has been tested on arm ARMv7 Processor rev 4 (v7l). Also regression testing has been performed on a x86_64 machine. gdb.reverse Testsuite Results (ARM-Native Configuration) Previous: 508 Pass With This Patch: 2211 Pass (ARM-Remote Configuration) Previous: 501 Pass With This Patch: 2193 Pass == PATCH 0 == This patch adds a news entry about improved process record-replay on arm*-linux* targets. It also adds linux-record.o to gdb_target_obs in configure.tgt and enables gdb.reverse testsuite for arm*-linux* targets. gdb: 2013-10-24 Omair Javaid * NEWS: Add note on improved process record-replay on arm*-linux* targets. * configure.tgt: Add linux-record.o to gdb_target_obs. gdb/testsuite/lib: 2013-10-24 Omair Javaid * gdb.exp: Enable gdb.reverse testsuite for arm*-linux* targets. Index: gdb/NEWS =================================================================== RCS file: /cvs/src/src/gdb/NEWS,v retrieving revision 1.622 diff -u -p -r1.622 NEWS --- gdb/NEWS 11 Oct 2013 13:51:26 -0000 1.622 +++ gdb/NEWS 23 Oct 2013 20:34:42 -0000 @@ -3,6 +3,12 @@ *** Changes since GDB 7.6 +* Improved support of process record-replay and reverse debugging on + arm*-linux* targets. + +Support for thumb32 instructions and syscall recording has been added. +gdb/testsuite/gdb.reverse is now enabled for arm*-linux* targets. + * GDB now supports Fission DWP file format version 2. http://gcc.gnu.org/wiki/DebugFission Index: gdb/configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.281 diff -u -p -r1.281 configure.tgt --- gdb/configure.tgt 1 Oct 2013 13:21:17 -0000 1.281 +++ gdb/configure.tgt 23 Oct 2013 20:34:42 -0000 @@ -89,7 +89,7 @@ arm*-wince-pe | arm*-*-mingw32ce*) arm*-*-linux*) # Target: ARM based machine running GNU/Linux gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \ - solib-svr4.o symfile-mem.o linux-tdep.o" + solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" build_gdbserver=yes ;; arm*-*-netbsd* | arm*-*-knetbsd*-gnu) Index: gdb/testsuite/lib/gdb.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v retrieving revision 1.250 diff -u -p -r1.250 gdb.exp --- gdb/testsuite/lib/gdb.exp 18 Oct 2013 20:40:03 -0000 1.250 +++ gdb/testsuite/lib/gdb.exp 23 Oct 2013 20:34:49 -0000 @@ -1774,7 +1774,8 @@ proc supports_process_record {} { return [target_info gdb,use_precord] } - if { [istarget "x86_64-*-linux*"] || [istarget "i\[34567\]86-*-linux*"] } { + if { [istarget "arm*-*-*"] || [istarget "x86_64-*-linux*"] + || [istarget "i\[34567\]86-*-linux*"] } { return 1 } @@ -1789,7 +1790,8 @@ proc supports_reverse {} { return [target_info gdb,can_reverse] } - if { [istarget "x86_64-*-linux*"] || [istarget "i\[34567\]86-*-linux*"] } { + if { [istarget "arm*-*-*"] || [istarget "x86_64-*-linux*"] + || [istarget "i\[34567\]86-*-linux*"] } { return 1 }