RE: gdb on M54455EVB Linux

"Douglas, Jim (Jim)" <[email protected]> Fri, 27 Jun 2008 10:25:41 +0100
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <5958B8D7916AB84781FE0E7B57C218CB59EE6E@306900ANEX2.global.avaya.com>
Thanks for your offer.  This is what I have done:

I am using the Freescale M54455EVB eval system, and the
m54455_20071214-ltib-final.iso BSP.  

I am running from an NFS image.  I have added gdb to the image (native
gdb and cross gdb and gdbserver).  

Then I try to run gdb.  For example, 

/ # gdb /bin/sleep
GNU gdb 6.3.50.20051117
....
(gdb) run 1
Starting program: /bin/sleep 1

Program received signal SIGILL, Illegal instruction.
0x800980b2 in ?? ()
(gdb) x/i $pc
0x800140b2:		orib #94, %d0
(gdb) x/4i $pc-4
0x800140ae: 	bras 0x80014060
0x800140b0:		linkw %fp, #0
0x80040b4:		unlk %fp
0x800140b6:		rts

... In other words, it almost looks like the program counter has got out
of line by 2 bytes!
... I get the same problem with my own executables, (compiled with and
without debug symbols).  

--jim

> -----Original Message-----
> From: [email protected]
[mailto:[email protected]]
> On Behalf Of Kurt Mahan
> Sent: 26 June 2008 17:26
> To: Douglas, Jim (Jim)
> Subject: Re: [ColdFire] gdb on M54455EVB Linux
> 
> Hi Jim,
> 
> Could you describe the setup you are using? I'll look into this but
I'd
> like to make sure I'm following the same steps as you.
> 
> --Kurt
> 
> Douglas, Jim (Jim) wrote:
> >
> > Has anyone had any success running gdb using the Freescale Linux BSP
> > for the M54455EVB eval board?
> >
> > I just get 'illegal instruction' when I try to run anything inside
the
> > debugger.
> >
> > --jim douglas
> >
> > [email protected] Send a post to the list.
> > [email protected] Join the list.
[email protected]
> > Join the list in digest mode. [email protected] Leave the
> list.
> 
> ---
> [email protected]              Send a post to the list.
> [email protected]        Join the list.
> [email protected]    Join the list in digest mode.
> [email protected]     Leave the list.

---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.