• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: debugger not displaying type double <incomplete type>???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugger not displaying type double <incomplete type>???


  • Subject: Re: debugger not displaying type double <incomplete type>???
  • From: Jim Ingham <email@hidden>
  • Date: Sun, 22 May 2005 16:37:44 -0700

The double error is because the debug information is somehow mangled. gdb knows what the "double" type is, but somehow the linkage between the double type, and the type of these variables is broken. I would have to see a debug version of the executable to say more what is going on.

If you can provide a copy of the app you are trying to debug with debug info (source is not necessary at first) then please file a bug with the debug version of the app, and the Xcode-gdb log, which you get by:

1) Quit Xcode
2) In Terminal.app, do

$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
$ defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/ includeInBug.log


3) Then run Xcode to the point where it shows bad behavior in the debugger
4) include /tmp/includeInBug.log in the bug.


Jim


On May 22, 2005, at 1:53 PM, Abe Stephens wrote:

Hi,


I am attempting to debug a large code base which is divided into a dozen or so static libs, the code I am interested in is in one object of one of the static libs.


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.

I also see the error: "mi_cmd_stack_list_frames: Not enough frames in stack." from the debugger in xcode. I have tried using -g -ggdb - gfull on the compiler command line. Do I have to add something to the linker command line explicitly?

Any advice?

(Xcode 2.0 running on Tiger).

Thanks you--Abe




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >debugger not displaying type double <incomplete type>??? (From: Abe Stephens <email@hidden>)

  • Prev by Date: Re: isnan
  • Next by Date: SCM Error: Permission denied
  • Previous by thread: debugger not displaying type double <incomplete type>???
  • Next by thread: XCode creates recursive symlinks??
  • Index(es):
    • Date
    • Thread