This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Dwarf-2 problem in Insight GDB


On Thu, 15 Aug 2002, Cheng, Cheuk wrote:

> Hi Keith, I had compiled test.c into test.o by using "sparc-elf-gcc -c
> -gdwarf-2 test.c" (and then loader test.o inside sparc-elf-gdb.exe which
> I built).  I have to admit that my knowledge of GDB and debug info is
> very little.  Please let me know if you need further information in
> addition to the following.
> 
> The following is the output from "sparc-elf-readelf --syms test.o".

[snip]

I don't really know a whole lot about DWARF(-2), but I wonder if using an 
unlinked object file is causing you problems. Hmmm... I just tried this 
with linux:

  gcc -gdwarf-2 -c test.c
  gdb test.o

and it "worked" -- source was displayed, could set breakpoints.

Here's what I would do... Try setting breakpoints, examining code, etc, 
with the console version (gdb -nw). If that also fails to work, send a 
note to gdb@sources.redhat.com asking for help (make sure you tell them 
how you compiled your object file and include a sample session).

If everything works fine with the console, let me know. Something goofy is
going on (and I already erased your zip file). 

Keith



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]