From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18443 invoked by alias); 27 Sep 2002 17:18:48 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 18347 invoked from network); 27 Sep 2002 17:18:47 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 27 Sep 2002 17:18:47 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g8RH0Xi02195 for ; Fri, 27 Sep 2002 13:00:33 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g8RHIkf26779; Fri, 27 Sep 2002 13:18:46 -0400 Received: from valrhona.uglyboxes.com (IDENT:LAijqOjbBrwWqJE7+5cxIcaK4S59Mft4@vpn50-63.rdu.redhat.com [172.16.50.63]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g8RHIjJ30112; Fri, 27 Sep 2002 13:18:45 -0400 Date: Fri, 27 Sep 2002 10:18:00 -0000 From: Keith Seitz X-X-Sender: keiths@valrhona.uglyboxes.com To: "Heik H. Hellmich" cc: insight@sources.redhat.com Subject: Re: step through code In-Reply-To: <3D9491C7.84727946@mikro.ee.tu-berlin.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q3/txt/msg00198.txt.bz2 On Fri, 27 Sep 2002, Heik H. Hellmich wrote: The script I use for compilation: > #!/usr/bin/csh -f > mkdir -p v2pdk > mkdir -p v2pdk/debug > powerpc-eabi-gcc -Wall -gdwarf -msdata=eabi -mcpu=403 \ > -I/work/hellmich/sftwr/libs/bsp/include \ > -DV2PDK -DDEBUG -o v2pdk/debug/ppc.o -c ppc.c > powerpc-eabi-gcc -Wall -gdwarf -msdata=eabi -mcpu=403 \ > -I/work/hellmich/sftwr/libs/bsp/include \ > -DV2PDK -DDEBUG -Wl,-T,/work/hellmich/sftwr/mapfiles/mapfile_ppc \ > -u _boot -o v2pdk/debug/ppc_debug.elf v2pdk/debug/ppc.o \ > /work/hellmich/sftwr/libs/bsp/v2pdk/debug/bsp.a > mkdir -p v2pdk > mkdir -p v2pdk/release > powerpc-eabi-gcc -Wall -O3 -msdata=eabi -mcpu=403 \ > -I/work/hellmich/sftwr/libs/bsp/include \ > -DV2PDK -o v2pdk/release/ppc.o -c ppc.c > powerpc-eabi-gcc -Wall -O3 -msdata=eabi -mcpu=403 \ > -I/work/hellmich/sftwr/libs/bsp/include \ > -DV2PDK -Wl,-T,/work/hellmich/sftwr/mapfiles/mapfile_ppc \ > -u _boot -o v2pdk/release/ppc_release.elf v2pdk/release/ppc.o \ > /work/hellmich/sftwr/libs/bsp/v2pdk/release/bsp.a Hmm. Doesn't the sim need something like a "-msim" option (or a simulator linker script or a special specs file)? Does the simulator support the 403? It may just be a generic insn set simulator. Try "-msim". Try looking for a linker script (like sim.ld) in the install dir of the compiler. I'm sure one of these is needed. If this fails, I suggest asking on gdb@sources.redhat.com about how to build and debug something on the PPC simulator. The real experts hang out there. Keith