SIGSEGV with b main

jhh <[email protected]>
Newsgroups gmane.comp.gdb.general
Organization ADC
Message-ID <[email protected]>
[email protected] wrote:
> (gdb) b main
> Breakpoint 1 at 0x401050: file 
> Program received signal SIGSEGV, Segmentation fault.
>
>   
  Sometimes gdb behaves better for me if I am more specific.  Try 
putting the break at line 15, in the body of your program, ie, b 
main:15.  This way all the stack adjustments are assured of being finished.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.