From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16203 invoked by alias); 19 Dec 2001 18:43:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16181 invoked from network); 19 Dec 2001 18:43:19 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 19 Dec 2001 18:43:19 -0000 Received: from redhat.com (totem.toronto.redhat.com [172.16.14.242]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id KAA00171; Wed, 19 Dec 2001 10:42:56 -0800 (PST) Message-ID: <3C20DFAF.5AFAD7CC@redhat.com> Date: Wed, 19 Dec 2001 10:43:00 -0000 From: Fernando Nasser Organization: Red Hat , Inc. - Toronto X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Shaun Jackman CC: gdb@sources.redhat.com, Elena Zannoni Subject: Re: Can't connect to remote target in a confused state References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00171.txt.bz2 Shaun, This is a known problem. Please see the thread: http://sources.redhat.com/ml/gdb-patches/2001-11/msg00396.html Fernando Shaun Jackman wrote: > > Occasionally my target (arm-elf) may lose its brain due to a program error, > or what have you. Regardless, I'd still like to be able to attach to it > with gdb. I use a JTAG device (BDI2000) and as long as the ARM core isn't > frozen I should be able to attach. This is the error I'm getting... > > (gdb) target remote bdi:2001 > Couldn't establish connection to remote target > Cannot access memory at address 0xeafffff4 > > Now, I assume when I attach gdb is trying to figure out what frame/stack etc > it's in. So one of the frame pointer, or stack pointer, or program counter is > sitting at 0xeafffff4 and gdb is trying to read the memory there. When it > can't, it fails. Unfortunately, when this happens I have to power-cycle my > target and restart gdb to be able to get back to debugging. > > Is my analysis correct? Is there some way I can get gdb to attach to the > target even if it has been left in a "confused" state? My next actions are > likely going to be to "load" and "run" anyways, so I really don't care that > it's confused at the moment. > > Thanks, > Shaun -- Fernando Nasser Red Hat - Toronto E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9