Re: Cint debug mode

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Cint debug mode

by fons.rademakers (Bugzilla) :: Rate this Message:

| View Threaded | Show Only this Message

Hi Rishabh,

   I've been out of CINT internals since some time. They guys on CINT list
might be able to help you.

Cheers, Fons.


On 14/12/2010 10:48, Rishabh Dubey wrote:

> Hello Fons,
>
> i'm able to figure out the problem with brak point, now its setting up
> the brak-point for given line.
> but if i'm executing the script with
>   char *command = " .x";
>   G__process_cmd(command,'\0',&more,(int*)NULL,(G__value*)NULL );
>
> its not doing anything.
> neither its printing above the breakpoint nor till breakpoint line.
>
> and when i'm printing a variable using .p, it's ale to print the value
> of variable after breakpoint as well.
>
> Can you please suggest me anything on this.
>
> Rishabh Dubey.
>
>
> On Tue, Dec 14, 2010 at 9:22 AM, Rishabh Dubey<rishabh.dubey@...>  wrote:
>> Hello Masa/ Fons
>>
>>   I am using cint as an interpreter invoked from
>>   compiled code, by calling G__init_cint(), followed
>>   by and/or G__exec_text().
>>
>> though now i want to add a breakpoint feature in it. for this i'm
>> using the following steps
>>
>> 1. G__init_process_cmd()
>>
>> 2. loading the file which i want to debug  G__loadfile("script.cxx");
>>
>> 3. starting debug mode -
>>         char *command = " .debug";
>>         G__process_cmd(command,'\0',&more,(int*)NULL,(G__value*)NULL );
>>
>> 4. setting a breakpoint -
>>         char *command = " .b<some_line_no.>";
>>         G__process_cmd(command,'\0',&more,(int*)NULL,(G__value*)NULL );
>> then doing step in/out (s/S) or printing (p)
>>
>> but 1 to 3 its going fine, but while setting a breakpoint its giving
>> error "Can not put break point in included file"
>>
>> Please suggest me if there is another way i can set a break point.
>> more can you please elaborate me about structure G__filetable from
>> where it gets input.
>>
>> Thanks
>>
>> --
>> Rishabh Dubey
>> rishabh.dubey@...
>> mob. +919986924897
>>
>
>
>

--
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@...              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640