This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to build application to run under the ppc simulator?
- From: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- To: Jan dot Vermeulen at siemens dot com
- Cc: peter at baradas dot org, gdb at sources dot redhat dot com, Peter dot Barada at motorola dot com
- Date: Wed, 9 Apr 2003 12:13:59 -0400
- Subject: Re: How to build application to run under the ppc simulator?
- References: <57FD2C3A246F76438CA6FDAD8FE9F19597E9D2@hrtades7.atea.be>
>> 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 dot Barada at motorola dot com
Wizard 781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)