List Info

Thread: Run an external command prior to running the debugger




Run an external command prior to running the debugger
country flaguser name
Belgium
2008-02-17 12:10:38
Hi,

Is it possible to run a command prior to starting the
debugger?

I would like to do the following:

1. start Insight
2. start gdbserver on the target
3. type "R" to run the software on the debugger.

Is step 2 possible from within Insight?  In other words: can
I extend 
the Insight command "R" such that it first
launches the gdbserver on the 
target and only then launches the debug session?

*Best rgds,

-- Geert
*

Re: Run an external command prior to running the debugger
user name
2008-02-17 13:46:24
Geert Vancompernolle wrote:

> 1. start Insight
> 2. start gdbserver on the target
> 3. type "R" to run the software on the
debugger.
> 
> Is step 2 possible from within Insight?  In other
words: can I extend 
> the Insight command "R" such that it first
launches the gdbserver on the 
> target and only then launches the debug session?

Sort of, yes. It's kind of hacky, and I'm not entirely sure
how well it 
will work, but there is an "After Attaching"
preference in the Target 
Settings dialog (click the "More Options"
widget-thingy). This will run 
any gdb command after attaching to the target. You could add
something 
to use gdb's "shell" command to spawn your
gdbserver.

But like I said, I'm not sure how well that will work (or if
it will 
work). My guess it has bitrotted...

Keith

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )