This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [gdb remote] run? resetting the target?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Heiko Panther <heiko dot panther at web dot de>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 17 May 2004 09:42:35 -0400
- Subject: Re: [gdb remote] run? resetting the target?
- References: <40A4FC07.90909@web.de>
On Fri, May 14, 2004 at 07:04:07PM +0200, Heiko Panther wrote:
> I am working on a gdb remote stub, and I'm trying to figure out how I can
> reset my target. What I imagine is downloading the code and then resetting
> it so it runs like the device has just been powered on. The reset disables
> some interrupts, so it is necessary. I could get the same effect with a
> little gdb script, but I'm looking for the simpler solution.
>
> When I issue a "run" or a "disconnect", gdb closes the connection to my
> target - clearly not what I want. I see that the gdb remote protocol has a
> 'R' command, which sounds like what I need. So how do I get gdb to issue
> the 'R'?
>
> Is there another alternative?
It sounds like you want 'target extended-remote'. Take a look at
remote.c in the gdb source to see more about extended remote.
--
Daniel Jacobowitz