Noeud:Try Again..., Noeud « Next »:, Noeud « Previous »:The First Bug, Noeud « Up »:An example debugging session using gdb



Try Again...

Let's correct this and try again. For example purposes, the new code is in ecount2.c.

     bash$ gcc -g ecount2.c -o ecount2
     bash$ ecount2 example
     Segmentation fault (core dumped)