[coldfire-gnu-discuss] Using GDB with Coldfire M52233DEMO ev-board..
Nathan Sidwell
nathan at codesourcery.com
Thu Nov 23 11:26:11 UTC 2006
Mats Blide wrote:
>
> Hi,
>
> I'am trying to get started with coldfire and have a ev-boad M52233DEMO.
> I have loaded a program into flash using CF-flasher. And connected to
> GDB through m68k-elf-cfpe-stub.exe. Whitout realy knowing what I'am
> doing, I'am a complet novis on GDB, I have be able to get some basic
> controll over the execution of my program. But I am not able make
> breakpoints to work. If I set a breakpoint and then try to free run the
> program to that breakpoint I get:
You need to tell gdb to use hardware breakpoints (hbreak GoAexit). Also, you'll
find that next and step won't work well with ROM, because they still insist on
using patched breakpoints.
Both these issues are fixed in our upcoming update.
Because you're running a program from rom, without using 'load', you'll need to
set $pc to the entry point of your program. This can be done by
set $pc *_start
continue
or more simply
jump *_start
(replace _start with whatever the right entry point is)
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the coldfire-gnu-discuss
mailing list