Send executable to target in IDE

Hi,

Is there any way to just send the newly built executable to a desired
target without having to first run it in the IDE so that it will copy it
over?


Thanks

Paul Vander Byl wrote:

ftp? tftp? rcp? scp? Port-a-floppy?
what are those? I’ve never heard of them!

Wow, you are truly a dyed-in-the-wool IDE man :slight_smile:

Rennie

ftp? tftp? rcp? scp? Port-a-floppy?

dB

“Paul Vander Byl” <paul@gandacar.ca> wrote in message
news:afus0s$mhj$1@inn.qnx.com

Hi,

Is there any way to just send the newly built executable to a desired
target without having to first run it in the IDE so that it will copy it
over?


Thanks

what are those? I’ve never heard of them!

I meant from the IDE.

“David Bacon” <dbacon@qnx.com> wrote in message
news:afvjop$aho$1@inn.qnx.com

ftp? tftp? rcp? scp? Port-a-floppy?

dB

“Paul Vander Byl” <> paul@gandacar.ca> > wrote in message
news:afus0s$mhj$> 1@inn.qnx.com> …
Hi,

Is there any way to just send the newly built executable to a
desired
target without having to first run it in the IDE so that it will copy it
over?


Thanks
\

All but one of those is a traditional notion called a “command”. Can you
guess which one is not like the others?

Anyway, the suggestion implicit in your question actually seems quite
reasonable, but AFAIK the closest you can get to it in the current IDE is
(assuming default settings) to “debug” your program, which will make it
pause on the first executable line. Then, since what you really wanted to
do was have that program available for command-line invocation on the
target, and qconn has kindly put such an executable program in /tmp on the
target, simply copy that from /tmp to wherever you’d like it to reside
thereafter.

dB

“Paul Vander Byl” <paul@gandacar.ca> wrote in message
news:afvl76$bsb$1@inn.qnx.com

what are those? I’ve never heard of them!

I meant from the IDE.

“David Bacon” <> dbacon@qnx.com> > wrote in message
news:afvjop$aho$> 1@inn.qnx.com> …
ftp? tftp? rcp? scp? Port-a-floppy?

dB

“Paul Vander Byl” <> paul@gandacar.ca> > wrote in message
news:afus0s$mhj$> 1@inn.qnx.com> …
Hi,

Is there any way to just send the newly built executable to a
desired
target without having to first run it in the IDE so that it will copy
it
over?


Thanks


\

That is what I have been doing. I just though there might be a better way.
This sounds like a good feature idea for the next version.

Thanks


“David Bacon” <dbacon@qnx.com> wrote in message
news:ag1n8g$rmi$1@inn.qnx.com

All but one of those is a traditional notion called a “command”. Can you
guess which one is not like the others?

Anyway, the suggestion implicit in your question actually seems quite
reasonable, but AFAIK the closest you can get to it in the current IDE is
(assuming default settings) to “debug” your program, which will make it
pause on the first executable line. Then, since what you really wanted to
do was have that program available for command-line invocation on the
target, and qconn has kindly put such an executable program in /tmp on the
target, simply copy that from /tmp to wherever you’d like it to reside
thereafter.

dB

“Paul Vander Byl” <> paul@gandacar.ca> > wrote in message
news:afvl76$bsb$> 1@inn.qnx.com> …
what are those? I’ve never heard of them!

I meant from the IDE.

“David Bacon” <> dbacon@qnx.com> > wrote in message
news:afvjop$aho$> 1@inn.qnx.com> …
ftp? tftp? rcp? scp? Port-a-floppy?

dB

“Paul Vander Byl” <> paul@gandacar.ca> > wrote in message
news:afus0s$mhj$> 1@inn.qnx.com> …
Hi,

Is there any way to just send the newly built executable to a
desired
target without having to first run it in the IDE so that it will
copy
it
over?


Thanks




\

How can i debug the application from the host which is already in target.
“Paul Vander Byl” <paul@gandacar.ca> wrote in message
news:ag23a3$7bn$1@inn.qnx.com

That is what I have been doing. I just though there might be a better
way.
This sounds like a good feature idea for the next version.

Thanks


“David Bacon” <> dbacon@qnx.com> > wrote in message
news:ag1n8g$rmi$> 1@inn.qnx.com> …
All but one of those is a traditional notion called a “command”. Can
you
guess which one is not like the others?

Anyway, the suggestion implicit in your question actually seems quite
reasonable, but AFAIK the closest you can get to it in the current IDE
is
(assuming default settings) to “debug” your program, which will make it
pause on the first executable line. Then, since what you really wanted
to
do was have that program available for command-line invocation on the
target, and qconn has kindly put such an executable program in /tmp on
the
target, simply copy that from /tmp to wherever you’d like it to reside
thereafter.

dB

“Paul Vander Byl” <> paul@gandacar.ca> > wrote in message
news:afvl76$bsb$> 1@inn.qnx.com> …
what are those? I’ve never heard of them!

I meant from the IDE.

“David Bacon” <> dbacon@qnx.com> > wrote in message
news:afvjop$aho$> 1@inn.qnx.com> …
ftp? tftp? rcp? scp? Port-a-floppy?

dB

“Paul Vander Byl” <> paul@gandacar.ca> > wrote in message
news:afus0s$mhj$> 1@inn.qnx.com> …
Hi,

Is there any way to just send the newly built executable to a
desired
target without having to first run it in the IDE so that it will
copy
it
over?


Thanks






\

vasdev <vasdev_vs@hotmail.com> wrote:

How can i debug the application from the host which is already in target.

Select the project
Debug dropdown->Debug->Attach to Remote Process

-David


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

My requirement is for example.
I am having an debuggable executable test in /home/mine/ directory of
target.
How can i debug that ie run from Host.
“David Gibbs” <dagibbs@qnx.com> wrote in message
news:ai4ect$o5t$3@nntp.qnx.com

vasdev <> vasdev_vs@hotmail.com> > wrote:
How can i debug the application from the host which is already in
target.

Select the project
Debug dropdown->Debug->Attach to Remote Process

-David


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

vasdev <vasdev_vs@hotmail.com> wrote:

My requirement is for example.
I am having an debuggable executable test in /home/mine/ directory of
target.
How can i debug that ie run from Host.

Are you trying to debug using the Eclipse-based IDE?

If so, as far as I can tell, it will only debug programs built inside
the IDE.

If using the command line tools, then you can do this – but
you will have to have access to the symbol information & source
on the host side, as the debugger will run on the host side.

On the target, run pdebug, either tcpip or serial connection.

On the host: run gdb, at the prompt:

% target qnx … <where this specs either ip & port or serial connect to pdebug>
% run /home/mine/test
% sym
% break main
% continue

If neither of these describes what you are trying to do, I’ll need a far
more detailed description of your environment, both host & target, and
exactly what you are trying to do. This is a situation where commands
issued must match the configuration, and without knowing your configuration,
I can at best make a guess at some potentially helpful commands.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Thanks for the reply. Actually i did it thro gdb as u mentioned. But i
wanted it by IDE. From ur reply i am sure that it is not possible to debug
an executable “test”(compiled using cc -V gcc_ntox86 test.c -o test) , which
is in target,from IDE.
“David Gibbs” <dagibbs@qnx.com> wrote in message
news:ai6p02$j3p$1@nntp.qnx.com

vasdev <> vasdev_vs@hotmail.com> > wrote:
My requirement is for example.
I am having an debuggable executable test in /home/mine/ directory of
target.
How can i debug that ie run from Host.

Are you trying to debug using the Eclipse-based IDE?

If so, as far as I can tell, it will only debug programs built inside
the IDE.

If using the command line tools, then you can do this – but
you will have to have access to the symbol information & source
on the host side, as the debugger will run on the host side.

On the target, run pdebug, either tcpip or serial connection.

On the host: run gdb, at the prompt:

% target qnx … <where this specs either ip & port or serial connect to
pdebug
% run /home/mine/test
% sym <host path to symbol table for test
% break main
% continue

If neither of these describes what you are trying to do, I’ll need a far
more detailed description of your environment, both host & target, and
exactly what you are trying to do. This is a situation where commands
issued must match the configuration, and without knowing your
configuration,
I can at best make a guess at some potentially helpful commands.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

vasdev <vasdev_vs@hotmail.com> wrote:

Thanks for the reply. Actually i did it thro gdb as u mentioned. But i
wanted it by IDE. From ur reply i am sure that it is not possible to debug
an executable “test”(compiled using cc -V gcc_ntox86 test.c -o test) , which
is in target,from IDE.

It could be done – but by way of creating a project to wrap around
test.c.

Run IDE
– create a “Standard Make C Project”
– import/copy in test.c & test to the project
– debug the test project

But, by this point, you’ve essentially made it an IDE project.

-David


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.