[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gdb-discuss] Dwarf Error: Cannot find referent at offset XXXXXX
From: |
sachidananda swain |
Subject: |
[Gdb-discuss] Dwarf Error: Cannot find referent at offset XXXXXX |
Date: |
Fri, 3 Sep 2004 04:23:52 -0700 (PDT) |
Hi all,
Please go through the attachment document which is in
text format.
waiting u r reply.
Thx
sachi
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
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 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/ and generating gdb.exe
following the steps given in 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