PDA

View Full Version : Debugging Error - C++ / Eclipse Ganymede




jujuwie
Nov 6, 2008, 01:16 PM
hello,
I have got problems when debugging a C++ sample application (default settings) in Eclipse Ganymede (Mac Os X10.5.5 + darwin) which consists of the following classes:

// BaseClass.h
class BaseClass {
public:
int member1;
int member2[5];
BaseClass();
virtual ~BaseClass();
};
// BaseClass.cpp
#include "BaseClass.h"
BaseClass::BaseClass() {
member1 = 55;
member2[3] = 33;
}
BaseClass::~BaseClass() {
}
// InheritedClass.h
#include "BaseClass.h"
class InheritedClass : public BaseClass {
public:
InheritedClass();
virtual ~InheritedClass();
};
// InheritedClass.cpp
#include "InheritedClass.h"
InheritedClass::InheritedClass() {
}
InheritedClass::~InheritedClass() {
}
// MainPgm.cpp
#include "InheritedClass.h"
using namespace std;

int main() {
InheritedClass myObj;
return 0; // breakpoint at this line
}

when stopping at the breakpoint (see comment) and when unfolding the details of myObj in the debug view "Variables":
myObj
-> BaseClass
-> member1
-> // empty and following error (see below)

'Label Job' has encountered a problem.
An internal error occurred during: "Label Job".
Details:
An internal error occurred during: "Label Job".
Zero length BigInteger

does anybody know where that comes from or even more useful how to get rid of it? I am new to Mac and to Ganymede. How about Ganymede for Mac? Buggy? ...

thx, Judith



yeroen
Nov 6, 2008, 09:25 PM
Kill your (Java) IDE.

Use DDD instead.

jujuwie
Nov 11, 2008, 09:18 AM
can anybody else help me with that because I would prefer to use the IDE Eclipse than that of Data Display Debugger (which on first glance does not seem very handy for navigating in source code).

btw, my debug configurations are (set by default)
- Debugger: gdb/mi
- Debugger Opitons
- GDB debugger: gdb
- GDB command file: .gdbinit
- GDB command set: Standard (Mac OS)
- Protocol: mi

bananaboy
Jul 8, 2009, 11:11 AM
Hello,

similar problem occurred to me as Jujuwie posted.

could any one offer advice? thank you!