From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20296 invoked by alias); 9 Apr 2003 04:40:33 -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 20288 invoked from network); 9 Apr 2003 04:40:32 -0000 Received: from unknown (HELO baradas.org) (66.166.225.55) by sources.redhat.com with SMTP; 9 Apr 2003 04:40:32 -0000 Received: by baradas.org (Postfix, from userid 500) id 78B6C98990; Wed, 9 Apr 2003 00:40:29 -0400 (EDT) From: Peter Barada To: gdb@sources.redhat.com Cc: Peter.Barada@motorola.com, peter@baradas.org Subject: How to build application to run under the ppc simulator? Message-Id: <20030409044029.78B6C98990@baradas.org> Date: Wed, 09 Apr 2003 04:40:00 -0000 X-SW-Source: 2003-04/txt/msg00077.txt.bz2 I'm trying to get a handle on how the ppc simulator runs. I've built a --target=ppc-eabi toolchain, and I've built a tiny little test program: int a,b; int foo(void) { a = 0x1234 b = 0x5678; } I built it with 'ppc-eabi-gcc -o test -g test.c' and fire up ppc-eabi-gcc on test, and execute: tar sim load run and it bombs with: >Program terminated with signal SIGSEGV, Segmentation fault. >The program no longer exists. >[Switching to process 0] >(gdb) I'm confused as to how I build/link a program to run under the simulator. My real goal is to extract from the ppc simulator what I need to build a coldfire simulator. Any comments/ideas are *most* appreciated -- Peter Barada peter@baradas.org