How can core dumps be debugged?

View: New views
3 Messages — Rating Filter:   Alert me  

How can core dumps be debugged?

by William M. Duke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

We are using a MCF5474 ColdFire and LinuxBSP. The application we are running on the ColdFire occasionally crashes. I have been able to do some debugging using gdb and gdbserver (over Ethernet); however, this method slows down the application. I have also been able to get crashes to generate core files, but when I attempt to debug the core file with gdb, I get the message “GDB can’t read core files on this machine”.

 

Is there a patch to gdb to get it to read core files?

 

Is there another program that can be used to debug m68k core files?

 

NOTE: The LinuxBSP we are using has a 2.6.10 kernel, gcc at 3.4.0, and gdb at 6.6-16.fc7rh (configured as “—host=i686-pc-linux-gnu –target=m68k-linux”). LinuxBSP is built on a PC running Fedora 7.

 

 

Thanks,

 

Bill

 

 

coldfire@... Send a post to the list. coldfire-join@... Join the list. coldfire-digest@... Join the list in digest mode. coldfire-leave@... Leave the list.

Re: How can core dumps be debugged?

by philwil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi William,

Sorry for the silly question.
Are you using the m68k version of gdb to read the core files.
(m68k-linux-gdb)


Regards
   Phil Wilshire

William M. Duke wrote:

> We are using a MCF5474 ColdFire and LinuxBSP. The application we are
> running on the ColdFire occasionally crashes. I have been able to do
> some debugging using gdb and gdbserver (over Ethernet); however, this
> method slows down the application. I have also been able to get crashes
> to generate core files, but when I attempt to debug the core file with
> gdb, I get the message “GDB can’t read core files on this machine”.
>
>  
>
> Is there a patch to gdb to get it to read core files?
>
>  
>
> Is there another program that can be used to debug m68k core files?
>
>  
>
> NOTE: The LinuxBSP we are using has a 2.6.10 kernel, gcc at 3.4.0, and
> gdb at 6.6-16.fc7rh (configured as “—host=i686-pc-linux-gnu
> –target=m68k-linux”). LinuxBSP is built on a PC running Fedora 7.
>
>  
>
>  
>
> Thanks,
>
>  
>
> Bill
>
>  
>
>  
>
> coldfire@... Send a post to the list.
> coldfire-join@... Join the list. coldfire-digest@...
> Join the list in digest mode. coldfire-leave@... Leave the list.

---
coldfire@...              Send a post to the list.
coldfire-join@...        Join the list.
coldfire-digest@...    Join the list in digest mode.
coldfire-leave@...     Leave the list.


RE: How can core dumps be debugged?

by William M. Duke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, I am using the m68k version of gdb (m68k-linux-gdb) to read the
core files.


 

-----Original Message-----
From: coldfire-bounce@... [mailto:coldfire-bounce@...]
On Behalf Of Phil Wilshire
Sent: Thursday, January 08, 2009 6:42 AM
To: William M. Duke
Subject: Re: [ColdFire] How can core dumps be debugged?

Hi William,

Sorry for the silly question.
Are you using the m68k version of gdb to read the core files.
(m68k-linux-gdb)


Regards
   Phil Wilshire

William M. Duke wrote:
> We are using a MCF5474 ColdFire and LinuxBSP. The application we are
> running on the ColdFire occasionally crashes. I have been able to do
> some debugging using gdb and gdbserver (over Ethernet); however, this
> method slows down the application. I have also been able to get
crashes
> to generate core files, but when I attempt to debug the core file with

> gdb, I get the message "GDB can't read core files on this machine".
>
>  
>
> Is there a patch to gdb to get it to read core files?
>
>  
>
> Is there another program that can be used to debug m68k core files?
>
>  
>
> NOTE: The LinuxBSP we are using has a 2.6.10 kernel, gcc at 3.4.0, and

> gdb at 6.6-16.fc7rh (configured as "-host=i686-pc-linux-gnu
> -target=m68k-linux"). LinuxBSP is built on a PC running Fedora 7.
>
>  
>
>  
>
> Thanks,
>
>  
>
> Bill
>
>  
>
>  
>
> coldfire@... Send a post to the list.
> coldfire-join@... Join the list. coldfire-digest@...

> Join the list in digest mode. coldfire-leave@... Leave the
list.

---
coldfire@...              Send a post to the list.
coldfire-join@...        Join the list.
coldfire-digest@...    Join the list in digest mode.
coldfire-leave@...     Leave the list.

---
coldfire@...              Send a post to the list.
coldfire-join@...        Join the list.
coldfire-digest@...    Join the list in digest mode.
coldfire-leave@...     Leave the list.