User forums > Using Code::Blocks
GDB
cbuser405:
--- Quote ---What are there commands useful for?
--- End quote ---
I do not think that these commands can be especially helpful.
--- Quote ---Can you describe a use case where you need them?
--- End quote ---
I think that these commands can be useful in the tests. You can check whether they run.
--- Quote ---Where they should be executed? On the machine running gdb or the machine running gdbserver?
--- End quote ---
They should run on the machine running gdb.
oBFusCATed:
I want a real test case, so I can see what features do you need.
Like:
1. do you want to process the output of the commands
2. do you want piping and such things...
or
3. you just need a way to start the gdbserver on the remote machine using some shell script?
cbuser405:
That's a real commands:
--- Quote ---ssh root@192.168.12.214 "rm hello"
scp hello root@192.168.12.214:
ssh root@192.168.12.214 gdbserver :3333 hello
--- End quote ---
It would be nice to redirect the output of these commands to 'Program Console' window.
Thank you :)
scarphin:
--- Quote from: oBFusCATed on February 11, 2011, 08:57:14 am ---I want a real test case, so I can see what features do you need.
Like:
1. do you want to process the output of the commands
2. do you want piping and such things...
or
3. you just need a way to start the gdbserver on the remote machine using some shell script?
--- End quote ---
The main usage of these commands can be the firing up of the GDB Server before the GDB starts. On a PC a GDB Server may not be needed but on a embedded targat u have to fire up the associated GDB Server to help connect GDB to the target hardware through a debugger or so. So when debugging embedded target u need to fire up the GDB Server before u start GDB and it's have to be done manually currently.
1. In my case the visibility of the output is enough just to see what's going on (ie if it's connected to the target or not).
2. Piping may be useful but can't think of anything right now.
3. That's the idea. Remote or local.
Thnx...
oBFusCATed:
OK, Can you test the "shell" gdb command? http://sourceware.org/gdb/current/onlinedocs/gdb/Shell-Commands.html#Shell-Commands
In the "Additional GDB commands" put something like:
--- Code: ---shell ssh root@192.168.12.214 "rm hello"
shell scp hello root@192.168.12.214:
shell ssh root@192.168.12.214 gdbserver :3333 hello
--- End code ---
If that works I can implement it in the plugin or I can remove additional shell commands GUI and I can put some info how to do use the shell commands.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version