|
11/10/2008 10:11 AM
post16307
|
I think you trying to debug "test" shell command.
Try
gdb ./test
or rename you binary.
Yael Frommer wrote:
> Hello,
>
> I have a problem running gdb on a QNX machine, even for the most simple C
> program (just a loop from 0 to 9, which prints the counter value)
> The executable name is test, so in the terminal window i write:
>
> $gdb test
>
> I get the debugger prompt, and try to actually run, after setting a
> breakpoint on "main"
>
> (gdb) b main
> Breakpoint 1 at 0x8048452: file test.c, line 7.
> (gdb)r
> Starting program: /home/qa/Yael/profiles/test/test
>
> The gdb prompt is displayed again, and i don't reach the breakpoint:
>
> (gdb) where
> #0 0xb0334792 in ?? ()
>
> I try to continue:
>
> (gdb) c
> Continuing
>
> And nothing happens. I can't stop the execution with ctrl+C, and the
> application doesn't print it's outputs. The only way out is to kill the
> process from another window.
>
> What am i doing wrong?
>
> Thanks,
> Yael Frommer
> Software Development
> Modeling Solutions Product Division
> Telelogic, An IBM Company
> 2 Pekeris St. Tamar Park
> Rehovot 76100
> Israel
> Phone: 972-8-9484688
> Fax: 972-8-9471313
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post16272
>
|
|
|
|
|