[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gdb] query on execution of inactive statement in gdb run
From: |
prakash |
Subject: |
Re: [gdb] query on execution of inactive statement in gdb run |
Date: |
Sat, 8 Sep 2007 13:17:02 +0530 (IST) |
User-agent: |
SquirrelMail/1.4.8 |
Hi Charles,
Thanks for reply. In my programme (printf("I am here\n");) will never
execute as it is inside if(0) statement. But I want to excecute this
statement in gdb. Please give me detail command. How can I achieve this
with continue statement?
Regards,
Prakash
> On Friday 07 September 2007 17:54:12 Prakash Barnwal wrote:
>> Hi ,
>>
>> I want to run gdb and wants to execute a particular line of code which
>> is not feasible in normal flow ;
>>
>> main(){
>> int i = 0;
>>
>> printf ("i=== %d\n",i);
>> if(0){
>> printf("I am here\n");
>> }
>> In this case if(0) will always be false but I want to execute line
>> (printf("I am here\n");) in gdb run. Could you please help me how to do
>> this ?
>
> You might be able to use continue from a specified line number.
>
>
>
>