Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] trouble debugging


Chronological Thread 
  • From: Abe Stephens <abe@sci.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [MANTA] trouble debugging
  • Date: Sun, 22 May 2005 13:57:51 -0700

Hi,
I can't seem to get gdb to produce the values of any double locals when I hit a breakpoint, it just says <incomplete type> for each.

Has anyone else actually checked the values of variables while debugging manta in gdb? (Several that I have talked to have not.)

The problem is that when I stop at a break point, all of the double variables are labeled <incomplete type> for example:

int i0, i1;
i0 = 1; i1 = 100;

double d0, d1;
d0 = d1 = 101.0;

float f0, f1;
f0 = f1 = 2.2;

In this case the debugger would correctly report i0, i1, f0, f1. But d0 and d1 are reported as incomplete type. If I manually cast them to double in the expression window, I get the correct result. I've tried making a simple test program on the command line and compiling it with g++ -g and running gdb manually, and I get the values I expect from d0 and d1.

This is an error that gdb produces:
mi_cmd_stack_list_frames: Not enough frames in stack.

Here is a compile command (this is from inside xcode but the behavior is present if I run from the command line using make):

CompileC lib/Manta.build/Manta_Model.build/Objects-normal/ppc/Cube.o /Users/abe/Manta/Model/Primitives/Cube.cc normal ppc c++ com.apple.compilers.gcc.4_0
   cd /Users/abe/Manta/build-xcode
/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -gfull -O0 -fmessage-length=0 -mtune=G4 -F/Users/abe/Manta/build-xcode/lib -I/Users/abe/Manta/build-xcode/lib/include -I/usr/X11R6/include -I/Users/abe/Manta -I/Users/abe/Manta/SCIRun -I/Users/abe/Manta/SCIRun/include -I/Users/abe/Manta/build-xcode/lib/Manta.build/Manta_Model.build/DerivedSources -DManta_Model_EXPORTS -g -fPIC -c /Users/abe/Manta/Model/Primitives/Cube.cc -o /Users/abe/Manta/build-xcode/lib/Manta.build/Manta_Model.build/Objects-normal/ppc/Cube.o

Here is a link command:

Ld /Users/abe/Manta/build-xcode/lib/libManta_Model.dylib normal ppc
   cd /Users/abe/Manta/build-xcode
/usr/bin/g++-4.0 -o /Users/abe/Manta/build-xcode/lib/libManta_Model.dylib -L/Users/abe/Manta/build-xcode/lib -L/Users/abe/Manta/build-xcode/lib -F/Users/abe/Manta/build-xcode/lib -filelist /Users/abe/Manta/build-xcode/lib/Manta.build/Manta_Model.build/Objects-normal/ppc/libManta_Model.LinkFileList -arch ppc -prebind -Wl,-single_module -dynamiclib -compatibility_version 1 -current_version 1 -lManta_Interface -lManta_Core -lSCIRun_Core
ld: warning prebinding disabled because dependent library: /Users/abe/Manta/build-xcode/lib/libManta_Interface.dylib is not prebound

I'm stumped, I might have to resort to printf...

Abe





Archive powered by MHonArc 2.6.16.

Top of page