dwarf2 error(microblaze)

Michael Eager eager@eagerm.com
Wed Jun 8 22:04:00 GMT 2011


On 06/07/2011 11:05 PM, naga raj wrote:

>>> Invoking: MicroBlaze gcc compiler
>>> mb-gcc -Wall -O0 -g3 -gdwarf-3 -c -fmessage-length=0
>>> -I../../memory_tests_bsp_0/microblaze_0/include -mxl-barrel-shift
>>> -mxl-pattern-compare -mcpu=v8.20.a -mno-xl-soft-mul -MMD -MP
>>> -MF"src/memorytest.d" -MT"src/memorytest.d" -o"src/memorytest.o"
>>> "../src/memorytest.c"

Previously, you said
 >     I am using gdb-7.2 version and my target is Xilinx microblaze.

The gdb sources which you list do not correspond to gdb-7.2.  Your
listing of find_location_expression shows calling dwarf2_read_address()
but that was replaced with extract_signed_integer() in gdb-7.0.

Again, what version of gcc and gdb are you using?  Are these the
sources from the GNU repository?

Suggestion:

Compile memorytest.c with the default options for the compiler,
without -g3, -gdwarf-3.

Build gdb-7.2 (or GDB from the top of the GNU repository).  See if
you have the same problem.  If you do, print the DWARF for the
function main(), variable i, and the location lists referenced
by both.


-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



More information about the Gcc-help mailing list