From: Peter Barada <pbarada@mail.wm.sps.mot.com>
To: Jan.Vermeulen@siemens.com
Cc: peter@baradas.org, gdb@sources.redhat.com, Peter.Barada@motorola.com
Subject: Re: How to build application to run under the ppc simulator?
Date: Wed, 09 Apr 2003 16:14:00 -0000 [thread overview]
Message-ID: <200304091613.h39GDx703850@hyper.wm.sps.mot.com> (raw)
In-Reply-To: <57FD2C3A246F76438CA6FDAD8FE9F19597E9D2@hrtades7.atea.be> (message from Vermeulen Jan on Wed, 9 Apr 2003 08:21:41 +0200)
>> and it bombs with:
>>
>> >Program terminated with signal SIGSEGV, Segmentation fault.
>> >The program no longer exists.
>> >[Switching to process 0]
>> >(gdb)
>
>This is quite normal, because your program is executed correctly and
>executes an 'blr' instruction at the end of the main routine. This makes the
>simulated CPU jump to what's currently in the link register, which can be
>anything. There it will do crazy things untill it finally segfaults :)
>
>If in doubt, just 'stepi' the program, watching the assembly be executed.
I can't stepi from the start, I have to run it. How(actually,
*where*) can I set a breakpoint at the *first* instruction so I can
*then* stepi?
--
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)
next prev parent reply other threads:[~2003-04-09 16:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 6:21 Vermeulen Jan
2003-04-09 16:14 ` Peter Barada [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-04-10 7:12 Vermeulen Jan
2003-04-10 6:02 Vermeulen Jan
2003-04-10 6:08 ` Peter Barada
2003-04-09 6:33 Vermeulen Jan
2003-04-09 4:40 Peter Barada
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=200304091613.h39GDx703850@hyper.wm.sps.mot.com \
--to=pbarada@mail.wm.sps.mot.com \
--cc=Jan.Vermeulen@siemens.com \
--cc=Peter.Barada@motorola.com \
--cc=gdb@sources.redhat.com \
--cc=peter@baradas.org \
/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