|
From: | Prakash Barnwal |
Subject: | [gdb] query on execution of inactive statement in gdb run |
Date: | Fri, 07 Sep 2007 11:24:12 +0530 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
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
?
[Prev in Thread] | Current Thread | [Next in Thread] |