Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Changing a variable value through command prompt?: (5 Items)
   
Changing a variable value through command prompt?  
Hello, 

My end goal is to be able to update a static variable's value in QNX Momentics(IDE 4.7) through an external program (.
exe).
I figured there may be a way through window's command prompt. Is this possible? If so, how? Perhaps there could be a 
better way. Does QNX have an API library I could use to complete this task?
Re: Changing a variable value through command prompt?  
Sorry but the way this worded makes no sense. Please elaborate.
You trying to change value in source code by editing source
code? Or you trying to change value while program is running on the device?
In any of the cases above it has nothing to do with IDE.

On 2017-05-03 02:21 PM, Edgardo Torres-Villa wrote:
> Hello,
>
> My end goal is to be able to update a static variable's value in QNX Momentics(IDE 4.7) through an external program (.
exe).
> I figured there may be a way through window's command prompt. Is this possible? If so, how? Perhaps there could be a 
better way. Does QNX have an API library I could use to complete this task?
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post117700
> To cancel your subscription to this discussion, please e-mail general-ide-unsubscribe@community.qnx.com


Re: Changing a variable value through command prompt?  
Sorry,  I am trying to change the value while the program is running on a device. I am able to do so through the IDE's 
debugger. I figured there could be a way to do the same without doing it manually on the IDE. Does that make more sense?
Re: Changing a variable value through command prompt?  
Yeah it makes a lot more sense. You can use command line gdb (of 
specific architecture of your target)
then you write gdb script which will a) connect to target b) attach to 
process c) change value of variable d) detach
I think you can do it all using .gdbinit file, I don't have specific of 
command to use but its doable.
Check gdb command line docs (not necessary qnx specific). Qnx specific 
step will be a)

On 2017-05-03 02:29 PM, Edgardo Torres-Villa wrote:
> Sorry,  I am trying to change the value while the program is running on a device. I am able to do so through the IDE's
 debugger. I figured there could be a way to do the same without doing it manually on the IDE. Does that make more sense
?
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post117702
> To cancel your subscription to this discussion, please e-mail general-ide-unsubscribe@community.qnx.com


Re: Changing a variable value through command prompt?  
Thanks, that sounds like a good place to start.