its simple..From the command prompt just give the gdb executable name and then 
from the gdb prompt type break file name:Line number.Then from the gdb prompt 
type run.It will take you that break point.For more info use gdb help.Also make 
sure you compile the binary using the -g option with your compiler.
Thanks
-A

imran pathan <[EMAIL PROTECTED]> wrote:                                  
 Hi,
 Well if you are using linux desktop then you have DDD( graphical debugger),
 where you can specify binary to open(it should have debug symbols).
 It opens source code as well. And you can give break points, watch 
window,variables,execution window, graphs etc. More ever it looks like sdk.
 
 Other option to debug your program is to compile it with insecure .
 
 Regards
 imran.
 
 dvergnaud <[EMAIL PROTECTED]> wrote:                                  Hi,
  
  does anyone know whether it's possible to "set breakpoints" for gdb
  *in the source code*? like on windows, you can use the __asm int 3
  command to have your program break at the specified line. is something
  like that possible with gdb? i'm compiling with gcc 4.2.0, and am
  using GNU gdb 6.3-debian. 
  
  thx a lot in advance!
  
  David
  
  
      
                        
 
 ---------------------------------
  Looking for people who are YOUR TYPE?  Find them here!
 
 [Non-text portions of this message have been removed]
 
 
     
                       

       
---------------------------------
 Download prohibited? No problem! CHAT from any browser, without download.
       
---------------------------------
 Download prohibited? No problem! CHAT from any browser, without download.

[Non-text portions of this message have been removed]

Reply via email to