[coldfire-gnu-discuss] Using GDB with Coldfire M52233DEMO ev-board..

Mats Blide matsblide at hotmail.com
Thu Nov 23 12:04:37 UTC 2006


Thank you guys that's realy what I wanted to know :-).

If I want to have a GUI to GDB, is there any that would work. I have tried 
Zylin CDT plugin to Eclips but it didn't work or rather gives me the same 
problem as I explaind earlier. And after this discussion I realise that it 
my not be able to handle the board I'am using.

Rgds,
Mats






>From: Nathan Sidwell <nathan at codesourcery.com>
>To: Mats Blide <matsblide at hotmail.com>
>CC: coldfire-gnu-discuss at codesourcery.com
>Subject: Re: [coldfire-gnu-discuss] Using GDB with Coldfire M52233DEMO 
>ev-board..
>Date: Thu, 23 Nov 2006 11:26:11 +0000
>
>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
>

_________________________________________________________________
Kom i balans http://www.msn.se/halsa/




More information about the coldfire-gnu-discuss mailing list