Compile the code with 'gcc -g -o readButton readButton.c' , and run it
with 'gdb readButton'. You will get a gdb prompt, so just give it the
'r' command. When you get the SEGV, gdb will stop and show you the
line it happened in, whereas you will be able to examine variables in
the program, etc.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to