|
From: | jhh |
Subject: | Re: execution of inactive statement in gdb run |
Date: | Mon, 10 Sep 2007 15:24:55 -0400 |
User-agent: | Thunderbird 2.0.0.5 (X11/20070716) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |