From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10401 invoked by alias); 13 Nov 2001 18:06:40 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10360 invoked from network); 13 Nov 2001 18:06:36 -0000 Received: from unknown (HELO toenail.toronto.redhat.com) (216.138.202.10) by sourceware.cygnus.com with SMTP; 13 Nov 2001 18:06:36 -0000 Received: (from fche@localhost) by toenail.toronto.redhat.com (8.11.6/8.11.6) id fADI6Ud06775; Tue, 13 Nov 2001 13:06:30 -0500 X-Authentication-Warning: toenail.toronto.redhat.com: fche set sender to fche@redhat.com using -f To: Vermeulen Jan Cc: "'gdb@sources.redhat.com'" Subject: Re: powerpc simulator questions References: Content-Type: text/plain; charset=US-ASCII From: fche@redhat.com (Frank Ch. Eigler) Date: Thu, 01 Nov 2001 16:43:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 X-SW-Source: 2001-11/txt/msg00031.txt.bz2 Vermeulen Jan writes: : [...] : However, being a complete n00b on the gdb-topic, I compiled/installed : Insight-5.0 with the "--target=powerpc-eabi" option. : : I made a little test program, called 'destest' which simply encrypts and : decrypts an 8 byte value. No include files are used, there is only destest.c : : I compiled it with "powerpc-eabi-gcc -g -Wl,-Tmylink.ld -o destest : destest.c". : : mylink.ld: : [...] : MEMORY : { : vects (rx): ORIGIN = 0x0, LENGTH = 1023 : rom1 (rx): ORIGIN = 0x400, LENGTH= 511K : ramcode (rwx): ORIGIN = 0x800000, LENGTH = 2048K : ramdata (rw): ORIGIN = 0x0A00000, LENGTH = 2048K : } : [...] There are probably several problems in the details, but the main one is that the target memory layout used by your linked powerpc program does not match that simulated by psim ("target sim" in powerpc gdb). Why did you use a custom linker script? Try building your program with powerpc-eabi-gcc -msim FOO.c -o FOO.x and running it with powerpc-eabi-run FOO.x # to run under the stand-alone simulator #or powerpc-eabi-gdb FOO.x # then "target sim", etc. - FChE