GDB Debugging


I am trying to debug the simple program. Basically, i am learning how to use gdb.

#qcc -ggdb test.c -o test
#gdb test
#sym test
#run test
#br test.c:25
#next or step

  1. When I do step or next - I get “cannot find the bounds of current function”
  2. When I run the program I don’t get printf statement on the console

Please anyone can help me

thanks in advance