--- In [email protected], raju raju <[EMAIL PROTECTED]> wrote:
>
> 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.

May I suggest that those who try to respond to this question read the
post more carefully? David asked how to set breakpoints during
compilation, not from within a debugger.
Your suggestions regarding gdb and ddd are nice but won't be of much
help for him.

[This also concerns me, as many of you know:]
Please, before responding, first read the post completely and
carefully. Useless "responses" which completely miss the target of the
post don't help anyone.

Regards,
Nico

Reply via email to