Subject: None
To: None <undisclosed-recipients>
From: SODA Noriyuki <soda@sra.co.jp>
List: port-arm
Date: 09/06/2004 22:32:15
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C493CB.27EF12C0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C493CB.27EF12C0"


------_=_NextPart_001_01C493CB.27EF12C0
Content-Type: text/plain

 

Hi all,

I am working on GDB for debugging. Tried with all gdb version and in all
cases I am getting Dwarf error. Please tell me how to overcome this error.
What I feel that there may be mismatching of dwarf format between ads
compiler and gdb. I saw so many numbers of people facing this problem. So
tell be very frankly that this problem can be solved or not; otherwise I
have to close this project because I am in a deadline. If any where I am
doing mistake please tell me how to do this. Once I can able to communicate
from host with all commands then I will start writing gdb-stub for target
side. I will be waiting for u r reply.

 

Host Side: PC (Intel P4 with Windows XP OS) with gdb-5.3/gdb-6.0/gdb-6.2

Target Side: ARM926EJ-S based System. Compilation is done through ADS 1.2
compiler.

I tried with all three GDB versions, results r giving below.

1: GDB-5.3 [download from www.sourceforge.net
<http://www.gnude.sourceforge.net/>  where arm-elf-gdb.exe was in built]

    Results: C:\gnude\bin>arm-elf-gdb.exe   ...........\........\target.elf

                 GNU gdb 5.3

                 Copyright 2002 Free Software Foundation, Inc.

     GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under certain
conditions.

     Type "show copying" to see the conditions.

     There is absolutely no warranty for GDB.  Type "show warranty" for
details.

     This GDB was configured as "--host=i386-pc-cygwin --target=arm-elf"...

      (gdb) set debug remote 1

      (gdb) print (a Global variable)

      Dwarf Error: Cannot find referent at offset 1301314.

      (gdb)

2: GBD-6.0 [download from http://ftp.gnu.org/gnu/gdb/
<http://ftp.gnu.org/gnu/gdb/>  and generating gdb.exe following the steps
given in http://gnude.sourceforge.net/ <http://gnude.sourceforge.net/>  ]

    Results: C:\gdb>gdb    .......\............\target.elf

     GNU gdb 6.0

     Copyright 2003 Free Software Foundation, Inc.

     GDB is free software, covered by the GNU General Public License, and
you are

      welcome to change it and/or distribute copies of it under certain
conditions.

      Type "show copying" to see the conditions.

      There is absolutely no warranty for GDB.  Type "show warranty" for
details.

      This GDB was configured as "--host=i386-pc-cygwin --target=arm-elf"...

       (gdb) set debug remote 1

       (gdb) print (a Global variable)

       Dwarf Error: Cannot find referent at offset 1301314 [in module
.......\............\target.elf]

       (gdb)

3: GDB-6.2 [same as gdb-6.0: (1) $ CFLAGS="-s -O3"  (2)export CFLAGS  (3)$
mkdir buildgdb; (4)cd buildgdb; (5)../configure --target=arm-elf
--prefix=/gnude --disable-shared --disable-nls --disable-win32-registry
--enable-interwork --enable-multilib; (6) make all install;   this will give
gdb.exe in gdb folder]

    Results: C:\gdb>gdb          ...........\........\target.elf

     GNU gdb 6.2

     Copyright 2004 Free Software Foundation, Inc.

     GDB is free software, covered by the GNU General Public License, and
you are

     welcome to change it and/or distribute copies of it under certain
conditions.

     Type "show copying" to see the conditions.

     There is absolutely no warranty for GDB.  Type "show warranty" for
details.

     This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf"...

     ../../gdb/dwarf2read.c:4994: internal-error: unsupported
inter-compilation-unit reference

     A problem internal to GDB has been detected,

     further debugging may prove unreliable.

     Quit this debugging session? (y or n) n

     ../../gdb/dwarf2read.c:4994: internal-error: unsupported
inter-compilation-unit reference

                 A problem internal to GDB has been detected,

                 further debugging may prove unreliable.

                 Create a core file of GDB? (y or n) y

                 (gdb) print (a Global variable)

     No symbol table is loaded.  Use the "file" command.

     (gdb)

 

Conclusion: I expect that u have gone through all the results. Please reply
all the necessary steps to do this. The main part is I will proceed or stop
here itself.  

 

Regards

Sachidananda

Engineer

 


------_=_NextPart_001_01C493CB.27EF12C0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Hi all,</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I am working on GDB for =
debugging.
Tried with all gdb version and in all cases I am getting Dwarf error. =
Please
tell me how to overcome this error. What I feel that there may be =
mismatching
of dwarf format between ads compiler and gdb. I saw so many numbers of =
people
facing this problem. So tell be very frankly that this problem can be =
solved or
not; otherwise I have to close this project because I am in a deadline. =
If any
where I am doing mistake please tell me how to do this. Once I can able =
to
communicate from host with all commands then I will start writing =
gdb-stub for
target side. I will be waiting for u r reply.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><b><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>Host =
Side</span></font></b><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>: PC (Intel
P4 with Windows XP OS) with gdb-5.3/gdb-6.0/gdb-6.2</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><b><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>Target =
Side</span></font></b><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>: ARM926EJ-S
based System. Compilation is done through </span></font><b><span
style=3D'font-weight:bold'>ADS 1.2 compiler</span></b>.</p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I tried with all three GDB =
versions,
results r giving below.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>1: GDB-5.3 [download from =
<a
href=3D"http://www.gnude.sourceforge.net/">www.sourceforge.net</a> =
where
arm-elf-gdb.exe was in built]</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; =
Results:
C:\gnude\bin&gt;arm-elf-gdb.exe&nbsp;&nbsp;
...........\........\target.elf</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
GNU gdb 5.3</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Copyright 2002 Free Software Foundation, Inc.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp; =
GDB is free
software, covered by the GNU General Public License, and you are =
welcome to
change it and/or distribute copies of it under certain =
conditions.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
Type &quot;show copying&quot; to see the conditions.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
There is absolutely no warranty for GDB.&nbsp; Type &quot;show =
warranty&quot;
for details.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
This GDB was configured as &quot;--host=3Di386-pc-cygwin =
--target=3Darm-elf&quot;...</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
(gdb) set debug remote 1</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
(gdb) print (a Global variable)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
Dwarf Error: Cannot find referent at offset 1301314.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
(gdb)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>2: GBD-6.0 [download from =
</span></font><a
href=3D"http://ftp.gnu.org/gnu/gdb/">http://ftp.gnu.org/gnu/gdb/</a> =
and generating
gdb.exe following the steps given in <font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><a
href=3D"http://gnude.sourceforge.net/">http://gnude.sourceforge.net/</a>=
 ]</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; =
Results:
C:\gdb&gt;gdb&nbsp;&nbsp;&nbsp; =
.......\............\target.elf</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
GNU gdb 6.0</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp; =
Copyright
2003 Free Software Foundation, Inc.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
GDB is free software, covered by the GNU General Public License, and =
you are</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
welcome to change it and/or distribute copies of it under certain =
conditions.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;Type &quot;show copying&quot; to see the =
conditions.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
There is absolutely no warranty for GDB.&nbsp; Type &quot;show =
warranty&quot;
for details.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
This GDB was configured as &quot;--host=3Di386-pc-cygwin
--target=3Darm-elf&quot;...</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
(gdb) set debug remote 1</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
(gdb) print (a Global variable)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
Dwarf Error: Cannot find referent at offset 1301314 [in module =
.......\............\target.elf]</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
(gdb)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>3: GDB-6.2 [same as =
gdb-6.0: (1) </span></font><font
size=3D1 color=3D"#333333" face=3DVerdana><span lang=3DEN =
style=3D'font-size:7.0pt;
font-family:Verdana;color:#333333'>$ CFLAGS=3D&quot;-s -O3&quot; =
&nbsp;(2)export
CFLAGS &nbsp;(3)$ mkdir buildgdb; (4)cd buildgdb; (5)../configure
--target=3Darm-elf --prefix=3D/gnude --disable-shared --disable-nls
--disable-win32-registry --enable-interwork --enable-multilib; (6) make =
all
install; &nbsp;&nbsp;this will give gdb.exe in gdb =
folder</span></font><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>]</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; =
Results:
C:\gdb&gt;gdb
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...........\......=
..\target.elf</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
GNU gdb 6.2</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
Copyright 2004 Free Software Foundation, Inc.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
GDB is free software, covered by the GNU General Public License, and =
you are</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
welcome to change it and/or distribute copies of it under certain =
conditions.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
Type &quot;show copying&quot; to see the conditions.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
There is absolutely no warranty for GDB.&nbsp; Type &quot;show =
warranty&quot;
for details.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
This GDB was configured as &quot;--host=3Di686-pc-cygwin
--target=3Darm-elf&quot;...</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
../../gdb/dwarf2read.c:4994: internal-error: unsupported =
inter-compilation-unit
reference</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
A problem internal to GDB has been detected,</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
further debugging may prove unreliable.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
Quit this debugging session? (y or n) n</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
../../gdb/dwarf2read.c:4994: internal-error: unsupported =
inter-compilation-unit
reference</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
A problem internal to GDB has been detected,</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
further debugging may prove unreliable.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Create a core file of GDB? (y or n) y</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(gdb) print (a Global variable)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
No symbol table is loaded.&nbsp; Use the &quot;file&quot; =
command.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;
(gdb)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Conclusion: I expect that =
u have
gone through all the results. Please reply all the necessary steps to =
do this.
The main part is I will proceed or stop here itself.&nbsp; =
</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Regards</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Sachidananda</span></font><=
/p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Engineer</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C493CB.27EF12C0--

------_=_NextPart_000_01C493CB.27EF12C0
Content-Type: text/plain;
	name="Drarf Error.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Drarf Error.txt"

Hi all,

I am working on GDB for debugging. Tried with all gdb version and in =
all cases I am getting Dwarf error. Please tell me how to overcome this =
error. What I feel that there may be mismatching of dwarf format =
between ads compiler and gdb. I saw so many numbers of people facing =
this problem. So tell be very frankly that this problem can be solved =
or not; otherwise I have to close this project because I am in a =
deadline. If any where I am doing mistake please tell me how to do =
this. Once I can able to communicate from host with all commands then I =
will start writing gdb-stub for target side. I will be waiting for u r =
reply.

=20

Host Side: PC (Intel P4 with Windows XP OS) with =
gdb-5.3/gdb-6.0/gdb-6.2

Target Side: ARM926EJ-S based System. Compilation is done through ADS =
1.2 compiler.

I tried with all three GDB versions, results r giving below.

1: GDB-5.3 [download from www.sourceforge.net where arm-elf-gdb.exe was =
in built]

    Results: C:\gnude\bin>arm-elf-gdb.exe   =
=85=85=85..\........\target.elf

                 GNU gdb 5.3

                 Copyright 2002 Free Software Foundation, Inc.

     GDB is free software, covered by the GNU General Public License, =
and you are welcome to change it and/or distribute copies of it under =
certain conditions.

     Type "show copying" to see the conditions.

     There is absolutely no warranty for GDB.  Type "show warranty" for =
details.

     This GDB was configured as "--host=3Di386-pc-cygwin =
--target=3Darm-elf"...

      (gdb) set debug remote 1

      (gdb) print (a Global variable)

      Dwarf Error: Cannot find referent at offset 1301314.

      (gdb)

2: GBD-6.0 [download from http://ftp.gnu.org/gnu/gdb/ and generating =
gdb.exe following the steps given in http://gnude.sourceforge.net/ ]

    Results: C:\gdb>gdb    =85=85.\............\target.elf

     GNU gdb 6.0

     Copyright 2003 Free Software Foundation, Inc.

     GDB is free software, covered by the GNU General Public License, =
and you are

      welcome to change it and/or distribute copies of it under certain =
conditions.

      Type "show copying" to see the conditions.

      There is absolutely no warranty for GDB.  Type "show warranty" =
for details.

      This GDB was configured as "--host=3Di386-pc-cygwin =
--target=3Darm-elf"...

       (gdb) set debug remote 1

       (gdb) print (a Global variable)

       Dwarf Error: Cannot find referent at offset 1301314 [in module =
=85=85.\............\target.elf]

       (gdb)

3: GDB-6.2 [same as gdb-6.0: (1) $ CFLAGS=3D"-s -O3"  (2)export CFLAGS  =
(3)$ mkdir buildgdb; (4)cd buildgdb; (5)../configure --target=3Darm-elf =
--prefix=3D/gnude --disable-shared --disable-nls =
--disable-win32-registry --enable-interwork --enable-multilib; (6) make =
all install;   this will give gdb.exe in gdb folder]

    Results: C:\gdb>gdb          =85=85=85..\........\target.elf

     GNU gdb 6.2

     Copyright 2004 Free Software Foundation, Inc.

     GDB is free software, covered by the GNU General Public License, =
and you are

     welcome to change it and/or distribute copies of it under certain =
conditions.

     Type "show copying" to see the conditions.

     There is absolutely no warranty for GDB.  Type "show warranty" for =
details.

     This GDB was configured as "--host=3Di686-pc-cygwin =
--target=3Darm-elf"...

     ../../gdb/dwarf2read.c:4994: internal-error: unsupported =
inter-compilation-unit reference

     A problem internal to GDB has been detected,

     further debugging may prove unreliable.

     Quit this debugging session? (y or n) n

     ../../gdb/dwarf2read.c:4994: internal-error: unsupported =
inter-compilation-unit reference

                 A problem internal to GDB has been detected,

                 further debugging may prove unreliable.

                 Create a core file of GDB? (y or n) y

                 (gdb) print (a Global variable)

     No symbol table is loaded.  Use the "file" command.

     (gdb)

=20

Conclusion: I expect that u have gone through all the results. Please =
reply all the necessary steps to do this. The main part is I will =
proceed or stop here itself. =20

=20

Regards

Sachidananda

Engineer

=20

------_=_NextPart_000_01C493CB.27EF12C0--