|
-
October 13th, 2005, 11:23 AM
#1
Urgent C debugging with gdb
Hi,
It's been while in touch with C program debugging. I wrote sample program and trying to debug with gdb. I am having problem to go step by step. The program works fine. when i say step, it is executing whole function. Also when i say print specific parameter value, it say's "No symbol "i" in current context". Here is the complile option that i have used to compile it and debug it.
gcc -g test.c -o test
gcc -g -Wall -o test test.c
gcc -Wall -O -g -o test test.c
gcc -Wall -O -g test.c
Any help would be appreciate.
Thanks in advance,
Srini
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|