From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16712 invoked by alias); 6 Sep 2016 14:14:28 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 16681 invoked by uid 89); 6 Sep 2016 14:14:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=safe!, (unknown), Hx-languages-length:903, dear X-HELO: mail-qk0-f177.google.com Received: from mail-qk0-f177.google.com (HELO mail-qk0-f177.google.com) (209.85.220.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Sep 2016 14:14:25 +0000 Received: by mail-qk0-f177.google.com with SMTP id l2so218829333qkf.3 for ; Tue, 06 Sep 2016 07:14:25 -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; bh=vhRIk5g8+0dEwvZC9Xzs+egCoExo4wPRPWgw2WjAtto=; b=kyYapk6amwQgds1WTy4lm9z6NmPEEq29hxHCO2EFpFPA3rCbvkTUYZuUUHrPz6Akj1 0MueToMnE/IsJoNhTaQNfT4m5YkcaadyzG+4ZdTA6UyFL25MLM8AkbTuxjvDgBYeClan 7NKM16+S5QUv4YKnreWQULmVCJWIPd8TuEbsghvcBdR795tcLPdmiRTBWeylHdHsXxU+ KbIUyWbNnCLNtLOg52tvGetj/2pFAdlA2zAW8IcHFQwoKyXXbxqplhyQ2ExesSiOBOdX oUfy3WcLLlkw4Cv58hItRB5zX/r03seaB+L4f1Hf7bu3o+KquaoEtwmrcXnIdysxtdRC A4Cg== X-Gm-Message-State: AE9vXwOG4JsVs5PiUswno4L/F7pwC23Ceq1bD47k7wlBxYyGu2Mz8Yz8dd++jzICqtPGxM7Nn/MeVddPzQuY9A== X-Received: by 10.55.70.23 with SMTP id t23mr44425587qka.1.1473171263454; Tue, 06 Sep 2016 07:14:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.44.7 with HTTP; Tue, 6 Sep 2016 07:13:52 -0700 (PDT) From: =?UTF-8?B?5oWV5Yas5Lqu?= Date: Tue, 06 Sep 2016 14:14:00 -0000 Message-ID: Subject: How to show instructions in one record To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00028.txt.bz2 Dear all, I encounter the following problem when I show instructions in one record, (gdb) b main Breakpoint 1 at 0x80483f3: file simple.c, line 7. (gdb) r Starting program: /home/vagrant/simple/simple Breakpoint 1, main (argc=1, argv=0xbffff7a4) at simple.c:7 7 crash = buff; (gdb) record (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x08048420 in main (argc=1, argv=0xbffff7a4) at simple.c:10 10 for (p=buff,q=argv[1];(*q);p++,q++) (gdb) record btrace full goto save delete function-call-history instruction-history stop (gdb) record instruction-history You can't do that when your target is `record-full' Then I try "record-core", the same result. At last, I try "record-btrace", my system does not support branch tracing. So how to show instructions in one record? -- My best regards to you. No System Is Safe! Dongliang Mu