Hi Mike, Thanks for your reply. >Can you reproduce the error with a small test program? No, I am unable to reproduce the error. It is working fine with small programs > How are you compiling it? I am giving following compiler flags -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.20.a -mno-xl-soft-mul > What gdb commands do you use which causes the error? (gdb) target remote <ip-addr>:portnumber (gdb)load (gdb)break main (gdb) c (gdb)s (gdb)print i Could not find the frame base for "main" >What is the Dwarf for the function and variables where the error occurs? I dont know how to see Dwarf for the function and variable. Please find the attached microblaze-readelf output file. >What is the locptr value that you think is incorrect? In gdb source gdb/gdb/dwarf2loc.c file find_location_expression function It is calculating low/high addresses and comparing them with pc if (pc >= low && pc < high) { *locexpr_length = length; return loc_ptr; } But in this particular case this condition is never met as a result I am getting the error "Could not find the frame base for "main"" The same application is working fine with Dwarf3. I have used -gdwarf-3 in compilation and now GDN is displaying local variables correctly. On Thu, Jun 2, 2011 at 11:21 AM, Michael Eager <eager@xxxxxxxxxxxx> wrote: > On 06/01/2011 08:58 PM, naga raj wrote: >> >> Hi Ian, >> >> Thanks for the reply. >> I am using gdb-7.2 version and my target is Xilinx microblaze. > > If you put MicroBlaze in the subject line, I'm much more likely to > notice your email. > > What sources are you using for GCC? When you say you ported GCC > to MicroBlaze and made Dwarf debugging the default, this is very > odd, since there is support in GCC-4.6 for MicroBlaze which defaults > to Dwarf debug support. Gcc-4.1.2 in the Xilinx EDK sources also > support Dwarf debugging. > > As Ian said, there isn't enough information to tell whether > there is a bug in gcc or not. > > Can you reproduce the error with a small test program? > How are you compiling it? > What gdb commands do you use which causes the error? > What is the Dwarf for the function and variables where the error occurs? > What is the locptr value that you think is incorrect? > > -- > Michael Eager eager@xxxxxxxxxxxx > 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077 >
Attachment:
info
Description: Binary data