[ROOT] CINT - Debug mode

From: Meir Ron (meirr@tti-telecom.com)
Date: Mon Jul 23 2001 - 10:06:14 MEST


Hi Fox

I have some difficulties with the debug mode.

I'm using the CINT as an interpreter in my program:
I handle it with a special class that send  commands to the CINT.
example:
Interpreter::Interpreter()
{
	int ret;
	ret = G__init_cint((char*)"cint");    // if(ret!=0)
}
Interpreter::~Interpreter()
{
	G__scratch_all();
}
long Interpreter::Exec(string text)
{
	return G__int(G__exec_text((char*)(text.c_str())));
}
long Interpreter::Calc(string funcname)
{
	return G__int(G__calc((char*)(funcname.c_str())));
}
void Interpreter::LoadFile(string filename)
{
	try{
	int ret;
	ret = G__loadfile((char*)(filename.c_str()));
	}catch(...){
		cerr << "BUG: Interpreter::LoadFile"<<endl;
	}
}

My propose is to switch the CINT to debug mode, set break points etz.
WITHOUT adding command to the script file which loaded.   (adding
G__pause()...  to the file is not good for me)
I tried to use G__process_cmd command but I didn't succeed!

I'll be thankful for any help!



Meir Ron 
Tel: +(972)-3-9269007 
Home: +(972)-3-9220847 
Email: meirr@tti-telecom.com <mailto:meirr@tti-telecom.com>



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:52 MET