From: fche@redhat.com (Frank Ch. Eigler)
To: Vermeulen Jan <Jan.Vermeulen@siemens.atea.be>
Cc: "'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: Re: powerpc simulator questions
Date: Thu, 01 Nov 2001 16:43:00 -0000 [thread overview]
Message-ID: <o51yj2ilzu.fsf@toenail.toronto.redhat.com> (raw)
In-Reply-To: <E76F715C0429D5118F2100508BB9EDEE0261359D@hrtades7.atea.be>
Vermeulen Jan <Jan.Vermeulen@siemens.atea.be> 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
next prev parent reply other threads:[~2001-11-13 18:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-01 15:25 Vermeulen Jan
2001-11-01 16:30 ` Andrew Cagney
2001-11-01 16:43 ` Frank Ch. Eigler [this message]
2001-11-02 18:33 Vermeulen Jan
2001-11-27 20:39 ` Andrew Cagney
2001-11-18 11:45 ` Andrew Cagney
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=o51yj2ilzu.fsf@toenail.toronto.redhat.com \
--to=fche@redhat.com \
--cc=Jan.Vermeulen@siemens.atea.be \
--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