From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13978 invoked by alias); 9 Apr 2003 16:14:09 -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 13901 invoked from network); 9 Apr 2003 16:14:02 -0000 Received: from unknown (HELO ftpbox.mot.com) (129.188.136.101) by sources.redhat.com with SMTP; 9 Apr 2003 16:14:02 -0000 Received: from mothost.mot.com (mothost.mot.com [129.188.137.101]) by ftpbox.mot.com (Motorola/Ftpbox) with ESMTP id h39GDxc5004444 for ; Wed, 9 Apr 2003 09:13:59 -0700 (MST) Received: [from hyper.wm.sps.mot.com ([199.10.246.43]) by mothost.mot.com (MOT-pobox 2.0) with ESMTP id JAA17775 for ; Wed, 9 Apr 2003 09:13:47 -0700 (MST)] Received: (from pbarada@localhost) by hyper.wm.sps.mot.com (8.11.6/8.11.6) id h39GDx703850; Wed, 9 Apr 2003 12:13:59 -0400 Date: Wed, 09 Apr 2003 16:14:00 -0000 Message-Id: <200304091613.h39GDx703850@hyper.wm.sps.mot.com> From: Peter Barada To: Jan.Vermeulen@siemens.com CC: peter@baradas.org, gdb@sources.redhat.com, Peter.Barada@motorola.com In-reply-to: <57FD2C3A246F76438CA6FDAD8FE9F19597E9D2@hrtades7.atea.be> (message from Vermeulen Jan on Wed, 9 Apr 2003 08:21:41 +0200) Subject: Re: How to build application to run under the ppc simulator? References: <57FD2C3A246F76438CA6FDAD8FE9F19597E9D2@hrtades7.atea.be> X-SW-Source: 2003-04/txt/msg00080.txt.bz2 >> and it bombs with: >> >> >Program terminated with signal SIGSEGV, Segmentation fault. >> >The program no longer exists. >> >[Switching to process 0] >> >(gdb) > >This is quite normal, because your program is executed correctly and >executes an 'blr' instruction at the end of the main routine. This makes the >simulated CPU jump to what's currently in the link register, which can be >anything. There it will do crazy things untill it finally segfaults :) > >If in doubt, just 'stepi' the program, watching the assembly be executed. I can't stepi from the start, I have to run it. How(actually, *where*) can I set a breakpoint at the *first* instruction so I can *then* stepi? -- Peter Barada Peter.Barada@motorola.com Wizard 781-852-2768 (direct) WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)