From patchwork Thu Oct 24 00:09:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omair Javaid X-Patchwork-Id: 21235 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1D9E420F5A for ; Thu, 24 Oct 2013 00:09:38 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id m4sf3446537qcy.7 for ; Wed, 23 Oct 2013 17:09:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:from:date:message-id :subject:to:cc:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=6KZx3l9pePKPKzsW6j9UxZ6uxJAsa1r1o3Wbz8Rqqsw=; b=Jor9WLbyk+CZDyHQezxiUqCnddqWoJ7jRb/pEud4XGogiDjuSAoRQ+qPwwxuhtkwJS mtUtjm2Xcpr7Yi2mcD/8OOsvuYtvEgh8WI3FYmyd1AtR7CwY+wzQd8+T1AUvFjyQ1QiG glcizfi4Mqv5Z/5To3KAY2khzbZbPjNMw8USS2s2oFpgfzwjO7BVXbXSQJpvfDqDYP2F 5Ab1Ez28lhD8fFSzkl2zSrziFCD3Lcu7xKzkSE7iJI3NIfhfLhrDYGm6+HTXKiZbpaRp CBg9RotbU4Ww5P9MYHee5+vmznc0EMxL5vG3gEiCKkQTC1jp1sOk9OTph2z5egrRWwv1 a4gg== X-Received: by 10.236.122.234 with SMTP id t70mr3559808yhh.23.1382573378684; Wed, 23 Oct 2013 17:09:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.64.68 with SMTP id m4ls669024qes.5.gmail; Wed, 23 Oct 2013 17:09:38 -0700 (PDT) X-Received: by 10.59.1.41 with SMTP id bd9mr14284ved.63.1382573378537; Wed, 23 Oct 2013 17:09:38 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id tq4si7841252vdc.77.2013.10.23.17.09.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Oct 2013 17:09:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id im17so1047750vcb.27 for ; Wed, 23 Oct 2013 17:09:38 -0700 (PDT) X-Gm-Message-State: ALoCoQlXYQB2Vq3x2S1ahew72a2dnP6k7Tq/lfGordh2R1NAMp9yM4bhlvDHqAXia0KFYSjCgLRZ X-Received: by 10.58.181.230 with SMTP id dz6mr583823vec.35.1382573378311; Wed, 23 Oct 2013 17:09:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp349515vcz; Wed, 23 Oct 2013 17:09:37 -0700 (PDT) X-Received: by 10.60.140.168 with SMTP id rh8mr41253oeb.76.1382573377381; Wed, 23 Oct 2013 17:09:37 -0700 (PDT) Received: from mail-oa0-f42.google.com (mail-oa0-f42.google.com [209.85.219.42]) by mx.google.com with ESMTPS id sy1si19794118obc.64.2013.10.23.17.09.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Oct 2013 17:09:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.219.42 is neither permitted nor denied by best guess record for domain of omair.javaid@linaro.org) client-ip=209.85.219.42; Received: by mail-oa0-f42.google.com with SMTP id k14so1700518oag.1 for ; Wed, 23 Oct 2013 17:09:37 -0700 (PDT) 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 05:09:16 +0500 Message-ID: Subject: [PATCH 0/2] GDB process record and reverse debugging improvements for arm*-linux* To: gdb-patches@sourceware.org Cc: Patch Tracking X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: omair.javaid@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 }