How can core dumps be debugged?
"William M. Duke" <[email protected]> Wed, 7 Jan 2009 10:55:34 -0600
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
------_=_NextPart_001_01C970E8.C1FE75A1
Content-Type: text/plain;charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-EC0D2A8E-5CB7-4969-9C36-46D859D137BE-PartID: 399C4656-8CFA-420C-B20C-88FC63EBF211
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=3Di686-pc-linux-gnu
-target=3Dm68k-linux"). LinuxBSP is built on a PC running Fedora 7.
Thanks,
Bill
------_=_NextPart_001_01C970E8.C1FE75A1
Content-Type: text/html;charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-EC0D2A8E-5CB7-4969-9C36-46D859D137BE-PartID: 32FEE575-A788-46F8-AF9E-51D71414B159
<html>
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0in;
=09margin-bottom:.0001pt;
=09font-size:12.0pt;
=09font-family:"Times New Roman";}
a:link, span.MsoHyperlink
=09{color:blue;
=09text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
=09{color:purple;
=09text-decoration:underline;}
span.EmailStyle17
=09{mso-style-type:personal-compose;
=09font-family:Arial;
=09color:windowtext;}
@page Section1
=09{size:8.5in 11.0in;
=09margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
=09{page:Section1;}
-->
</style>
</head>
<body link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>We are using a MCF5474 ColdFire and LinuxBSP. The
application we are running on the ColdFire occasionally crashes. I have bee=
n
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 crashe=
s 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”.<=
/span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Is there a patch to gdb to get it to read core files?</s=
pan></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Is there another program that can be used to debug m68k =
core
files?</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>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=3Di686-pc-=
linux-gnu
–target=3Dm68k-linux”). LinuxBSP is built on a PC running Fedor=
a 7.</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Thanks,</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Bill</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'> </span></font></p>
</div>
</body>
</html>
[email protected]=09Send a post to the list.
[email protected]=09Join the list.
[email protected]=09Join the list in digest mode.
[email protected]=09Leave the list.
------_=_NextPart_001_01C970E8.C1FE75A1--