Forum Topic - gdb on QNX 6.3.2: Page 2 of 2 (30 Items)
   
Re: gdb on QNX 6.3.2  
Why you don't want to use IDE? It has integrated debugging support.

Yael Frommer wrote:
> Is there an editor (like emacs on Unix) for qnx, where i can run gdb in?
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post16511
> 
Re: gdb on QNX 6.3.2  
Just checking, the target you running code on is it x86?
Re: gdb on QNX 6.3.2  
Yes



From:
Elena Laskavaia <community-noreply@qnx.com>
To:
general-toolchain <post16464@community.qnx.com>
Date:
11/12/2008 04:27 PM
Subject:
Re: gdb on QNX 6.3.2



Just checking, the target you running code on is it x86?

_______________________________________________
General
http://community.qnx.com/sf/go/post16464



Re: gdb on QNX 6.3.2  
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
> 
Re: gdb on QNX 6.3.2  
I don't know what is the test shell command, when i write "which test"
there is no test command in the path.
Running gdb ./test gives the same results described in my initial post.