From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10690 invoked by alias); 22 Jul 2013 06:10:43 -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 10662 invoked by uid 89); 22 Jul 2013 06:10:42 -0000 X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1 Received: from Unknown (HELO mail-bk0-f44.google.com) (209.85.214.44) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 22 Jul 2013 06:10:41 +0000 Received: by mail-bk0-f44.google.com with SMTP id 6so2331842bkj.3 for ; Sun, 21 Jul 2013 23:10:33 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.204.170.66 with SMTP id c2mr3675968bkz.101.1374473433135; Sun, 21 Jul 2013 23:10:33 -0700 (PDT) Received: by 10.204.25.84 with HTTP; Sun, 21 Jul 2013 23:10:33 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Jul 2013 06:10:00 -0000 Message-ID: Subject: Re: Reverse debugging for arm baremetal targets? From: Terry Guo To: Hui Zhu Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-07/txt/msg00070.txt.bz2 On Mon, Jul 22, 2013 at 10:07 AM, Hui Zhu wrote: > On Mon, Jul 22, 2013 at 9:37 AM, Terry Guo wrote: >> Hi there, >> >> Is this feature enabled for arm baremetal targets? If not, is it >> possible to do so and what kind of problems we need to solve to >> achieve this? Thanks in advance for your help. >> >> Best Regards, >> Terry > > If just for reverse debug, I think it is not depend on the arch. So I > think it is OK for ARM. > > And if I remember is right, simics support it. > > Thanks, > Hui Thanks for your reply. I did some tests and it seems to me that reverse debugging doesn't work for baremetal targets. My test includes a ARM Cortex-M3 board running a baremetal program, a gdb server and a baremetal gdb. The gdb version is: GNU gdb (GDB) 7.6 After I connect to M3 board and run command "record", I got: Breakpoint 1, main () at main.cpp:24 24 xyz = 0; (gdb) record Process record: the current architecture doesn't support record function. (gdb) show ar architecture args arm (gdb) show architecture The target architecture is set automatically (currently arm) (gdb) n 26 foo (); (gdb) s foo () at main.cpp:16 16 xyz = 1; (gdb) n 17 return bar (); (gdb) s bar () at main.cpp:10 10 xyz = 2; (gdb) reverse-next Target remote does not support this command. Am I doing something wrong? Please advise. BR, Terry