I am trying to learn some debugging using this manual:
Apparently, I could set a breakpoint at the very beginning, but it doesn't get stopped at it:
This is the outline of my main:
What could be the hitch?
-
Apparently, I could set a breakpoint at the very beginning, but it doesn't get stopped at it:
Code:
sergei@s17:~ $ lldb -- bsdtest
(lldb) target create "bsdtest"
Current executable set to '/home/sergei/bsdtest' (i386).
(lldb) breakpoint set -n main
Breakpoint 1: where = bsdtest`main + 16 at bsdtest.cpp:367:5, address = 0x00403480
(lldb) process launch
Process 1734 launched: '/home/sergei/bsdtest' (i386)
Service is starting...
Service is closing...
Cancellation event
Process 1734 exited with status = 0 (0x00000000)
This is the outline of my main:
Code:
int main()
{
printf("Service is starting...\n");
[skip some code]
getchar();
printf("Service is closing...\n");
[skip some code]
return 0;
}
What could be the hitch?
-