From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1632 invoked by alias); 14 May 2008 23:39:17 -0000 Received: (qmail 1623 invoked by uid 22791); 14 May 2008 23:39:17 -0000 X-Spam-Check-By: sourceware.org Received: from wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.169) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 May 2008 23:39:00 +0000 Received: by wf-out-1314.google.com with SMTP id 28so116035wfc.24 for ; Wed, 14 May 2008 16:38:58 -0700 (PDT) Received: by 10.143.164.19 with SMTP id r19mr669636wfo.179.1210808338341; Wed, 14 May 2008 16:38:58 -0700 (PDT) Received: by 10.142.136.11 with HTTP; Wed, 14 May 2008 16:38:58 -0700 (PDT) Message-ID: <40a670230805141638m7c6474a5kd60b241c9aaa47f3@mail.gmail.com> Date: Wed, 14 May 2008 23:39:00 -0000 From: "Roman Mashak" To: "Roman Mashak" , gdb@sourceware.org Subject: Re: gdb for AT91SAM7 In-Reply-To: <20080514113929.GA5721@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <40a670230805140042m311ccf04xb948628d0fa4532c@mail.gmail.com> <20080514113929.GA5721@caradoc.them.org> X-IsSubscribed: yes 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 X-SW-Source: 2008-05/txt/msg00119.txt.bz2 Hello. thanks for feedback. 2008/5/14 Daniel Jacobowitz : > On Wed, May 14, 2008 at 12:42:46AM -0700, Roman Mashak wrote: >> #arm-elf-gdb main.elf >> #target remote localhost:2331 >> #break *0x100000 >> #continue >> Continuing. >> ... > > Is the application already loaded or in flash? And is the PC already > pointing at 0x100000? You have to get it pointing to there somehow. The application is in flash before GDB runs. I checked PC value right after GDB has started and it's not 0x100000, it varies with every start, for example 0x10009a0, next it's 0x0. Should I set PC value in the .gdbinit: set $pc = 0x100000 > > If the PC is already 0x100000 when you say continue, GDB assumes > you're trying to continue, not stop at the current location. > -- Roman