From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16186 invoked by alias); 4 Oct 2002 18:39:57 -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 16069 invoked from network); 4 Oct 2002 18:39:55 -0000 Received: from unknown (HELO cygnus.equallogic.com) (65.170.102.10) by sources.redhat.com with SMTP; 4 Oct 2002 18:39:55 -0000 Received: from cygnus.equallogic.com (localhost.localdomain [127.0.0.1]) by cygnus.equallogic.com (8.11.6/8.11.6) with ESMTP id g94IdrN01760 for ; Fri, 4 Oct 2002 14:39:53 -0400 Received: from deneb.dev.equallogic.com (deneb.dev.equallogic.com [172.16.1.99]) by cygnus.equallogic.com (8.11.6/8.11.6) with ESMTP id g94Idrk01751; Fri, 4 Oct 2002 14:39:53 -0400 Received: from pkoning.dev.equallogic.com.equallogic.com (localhost.localdomain [127.0.0.1]) by deneb.dev.equallogic.com (8.11.6/8.11.6) with ESMTP id g94IdqG14136; Fri, 4 Oct 2002 14:39:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15773.57464.541988.125069@pkoning.dev.equallogic.com> Date: Fri, 04 Oct 2002 11:39:00 -0000 From: Paul Koning To: pjlahaie@steamballoon.com Cc: gdb@sources.redhat.com Subject: Re: Problem cross-debugging from Solaris to Linux/PPC References: <1033750049.3667.19.camel@elenuial.steamballoon.com> X-SW-Source: 2002-10/txt/msg00043.txt.bz2 >>>>> "Paul" == Paul J Y Lahaie writes: Paul> I'm trying to cross-debug from Solaris 9/SPARC to Linux/PPC and Paul> I am unable to get it working. Paul> I've got Linux/x86 to Linux/PPC working with gdb 5.2 and I am Paul> using the same gdbserver on the Linux/PPC host. Paul> On the Solaris host I get the following: Paul> (gdb) file ~/hello Reading symbols from ~/hello...done. (gdb) Paul> target remote ppc:5000 Remote debugging using ppc:5000 Paul> 0x30010e40 in ?? () (gdb) break main Breakpoint 1 at Paul> 0x100004bc: file hello.c, line 5. (gdb) cont Continuing. Paul> warning: Cannot insert breakpoint -1: Cannot access memory at Paul> address 0x3001a084 (gdb) I tripped over this too on a different target. What a pain. The problem is that gdb is trying to set a breakpoint at _start, __start, or main, whichever it finds first. If the one it finds is an address that you can't access, you get this error. It sure would be better if gdb would ignore errors in such attempts to set internally generated magical breakpoints, rather than throwing up like this. As a solution, either make _start or __start go away (so main is used, which apparently is a valid address) or redefine them to some innocent address. paul