Hi, I am trying to debug my program using gdb, but I am getting this error for some reason:
(gdb) run test1.init /dev/null
Starting program: /auto/home-scf-27/chunchen/csci565/Lab3/test /dev/null
Program exited normally.
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
You can't do that without a process to debug
I know the warning should not matter to my program but I am not sure why it says you can't do that without a process to debug.
The program i am loading is simply a program that prints 0 to 9.
I just wanted to test whether i can see the output in gdb or not.
As you can see, it does not print the output for some reason..
I did compile with -g flag.
Any help would be appreciated ..