Xcode 4 debugging issues
Xcode 4 debugging issues
- Subject: Xcode 4 debugging issues
- From: rashid khan <email@hidden>
- Date: Sat, 17 Dec 2011 20:00:16 -0500
Hello All,
I am have a serious issue with XCODE 4 debuggers. (GDB & LLDB) . I have submitted a bug report to Apple. In the mean time, I am hoping that someone from the Xcode user community may be able spot the problem either with the configuration settings or indeed the structure of the program. My project works fine under XCODE 3.2 and Snow Leopard and I do not have any issues with the debuggers. ; Under Xcode 4, program runs OK, just can not debug it.
problem:
under LLDB, the program either crashes when it starts or when the cursor is hovered over a data structure. When the program crashes, it enters into the thread 0xffffffffffffff. clicking this thread name results in a long file name.(different each time) being displayed. The message indicates that the program tried to access a file that does not exit.
under GDB: When hovering over a data structure , a message “out of scope - summary unavailable” appears for each item in the data structure. Xcode does correctly identify the data structure and the number of elements it contains. For variables such as integers, float etc. a correct value is displayed when the cursor is moved over the variable.; and sometimes GDB may display the data. it is random.
I tried send this message with the attached test program .. it was bounced by Apple ,as the message was too big.
Here is the test program. i will be happy to send a zipped version of the test program, if required.
I would appreciate any suggestions.
Thanks
file 1: globalConstants.h
#ifndef Test_project_globalConstants_h #define Test_project_globalConstants_h
#define TOPVOTES 16 // number of lines to be discovered in a single Hough pass
#endif
file 2: global.c
#include "globalConstants.h"
#ifndef Test_project_global_c #define Test_project_global_c
float lowerx[TOPVOTES];
#endif
file 3 : global.h #import "globalConstants.h"
#ifndef Test_project_global_h #define Test_project_global_h
extern float lowerx[TOPVOTES];
#endif
file 4: controller.h
#import <Cocoa/Cocoa.h>
@interface controller : NSObject {
}
- (IBAction)imageDrop:(id)sender; // image dropped by user @end
file 5:
#import "Controller.h" #import "global.h"
@implementation controller
- (void) awakeFromNib { return; }
// Enter here when a user drops an Image into the view - (IBAction)imageDrop:(id)sender {
// initialise this array for testing. int i; for (i=0; i< TOPVOTES; i++) { lowerx[i]= i; }
NSImage * inputImage; if ([sender isKindOfClass:[NSImageView class ]]) {
// get the image dropped in the view
inputImage = [sender image];
// this is a system wide data structure. lowerx[1]=0; // This array should contain 1,2,3...….. when the program breaks here. } }
@end
|
_______________________________________________
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