public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Run an external command prior to running the debugger
@ 2008-02-17 18:10 Geert Vancompernolle
  2008-02-17 19:47 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Vancompernolle @ 2008-02-17 18:10 UTC (permalink / raw)
  To: Insight Foum

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
*

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Run an external command prior to running the debugger
  2008-02-17 18:10 Run an external command prior to running the debugger Geert Vancompernolle
@ 2008-02-17 19:47 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2008-02-17 19:47 UTC (permalink / raw)
  To: Geert Vancompernolle; +Cc: Insight Foum

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-17 19:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17 18:10 Run an external command prior to running the debugger Geert Vancompernolle
2008-02-17 19:47 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).