From: Peter Barada <peter@baradas.org>
To: gdb@sources.redhat.com
Cc: Peter.Barada@motorola.com, peter@baradas.org
Subject: How to build application to run under the ppc simulator?
Date: Wed, 09 Apr 2003 04:40:00 -0000 [thread overview]
Message-ID: <20030409044029.78B6C98990@baradas.org> (raw)
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
next reply other threads:[~2003-04-09 4:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 4:40 Peter Barada [this message]
2003-04-09 6:21 Vermeulen Jan
2003-04-09 16:14 ` Peter Barada
2003-04-09 6:33 Vermeulen Jan
2003-04-10 6:02 Vermeulen Jan
2003-04-10 6:08 ` Peter Barada
2003-04-10 7:12 Vermeulen Jan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030409044029.78B6C98990@baradas.org \
--to=peter@baradas.org \
--cc=Peter.Barada@motorola.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox