Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Remote/simulator differences
@ 2004-05-19 19:16 Jon Beniston
  2004-05-19 19:25 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Beniston @ 2004-05-19 19:16 UTC (permalink / raw)
  To: gdb

Hi,

I'm doing some work trying to get GDB to work with the eclipse IDE.
However, I can't get my head around a difference between simulator and
remote targets. With the simulator, I can do:

cpu-elf-gdb prog.x
target sim
load
run

And the program runs fine. However, with a remote target, when I execute
run, it says the program has already started:

cpu-elf-gdb prog.x
target remote /dev/com1
load
run
The program being debugged has been started already.
Start it from the beginning? (y or n)

What's causing it to think that the program has already been started? Is
it possible that something in the remote stub is causing this? Any
insight would be appreciated. I'm using GDB 6.0.

Cheers,
JonB


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

* Re: Remote/simulator differences
  2004-05-19 19:16 Remote/simulator differences Jon Beniston
@ 2004-05-19 19:25 ` Daniel Jacobowitz
  2004-05-19 21:36   ` Jon Beniston
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2004-05-19 19:25 UTC (permalink / raw)
  To: Jon Beniston; +Cc: gdb

On Wed, May 19, 2004 at 08:03:22PM +0100, Jon Beniston wrote:
> Hi,
> 
> I'm doing some work trying to get GDB to work with the eclipse IDE.
> However, I can't get my head around a difference between simulator and
> remote targets. With the simulator, I can do:
> 
> cpu-elf-gdb prog.x
> target sim
> load
> run
> 
> And the program runs fine. However, with a remote target, when I execute
> run, it says the program has already started:
> 
> cpu-elf-gdb prog.x
> target remote /dev/com1
> load
> run
> The program being debugged has been started already.
> Start it from the beginning? (y or n)
> 
> What's causing it to think that the program has already been started? Is
> it possible that something in the remote stub is causing this? Any
> insight would be appreciated. I'm using GDB 6.0.

For remote, the appropriate command is "continue", or sometimes "jump". 
It depends on your particular target and monitor.

-- 
Daniel Jacobowitz


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

* RE: Remote/simulator differences
  2004-05-19 19:25 ` Daniel Jacobowitz
@ 2004-05-19 21:36   ` Jon Beniston
  2004-05-21 15:06     ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Beniston @ 2004-05-19 21:36 UTC (permalink / raw)
  To: 'Daniel Jacobowitz'; +Cc: gdb


> > What's causing it to think that the program has already 
> been started? 
> > Is it possible that something in the remote stub is causing 
> this? Any 
> > insight would be appreciated. I'm using GDB 6.0.
> 
> For remote, the appropriate command is "continue", or 
> sometimes "jump". 
> It depends on your particular target and monitor.

Okay. I have hacked eclipse to take this into account. It works, but I
guess I was hoping for something a little cleaner (at least from
eclipse's perspective).

Cheers,
JonB


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

* Re: Remote/simulator differences
  2004-05-19 21:36   ` Jon Beniston
@ 2004-05-21 15:06     ` Andrew Cagney
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2004-05-21 15:06 UTC (permalink / raw)
  To: Jon Beniston; +Cc: 'Daniel Jacobowitz', gdb

>>>What's causing it to think that the program has already 
>>
>>> been started? 
>>
>>>> > Is it possible that something in the remote stub is causing 
>>
>>> this? Any 
>>
>>>> > insight would be appreciated. I'm using GDB 6.0.
>>
>>> 
>>> For remote, the appropriate command is "continue", or 
>>> sometimes "jump". 
>>> It depends on your particular target and monitor.
> 
> 
> Okay. I have hacked eclipse to take this into account. It works, but I
> guess I was hoping for something a little cleaner (at least from
> eclipse's perspective).

Yes.

GDB is very inconsistent when it comes to attaching / starting a target. 
  We [gdb] need to be willing to first define/fix the behavior and 
second conduct a pr exercise explaining why things are changing to our 
users.

Andrew



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

end of thread, other threads:[~2004-05-21 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-19 19:16 Remote/simulator differences Jon Beniston
2004-05-19 19:25 ` Daniel Jacobowitz
2004-05-19 21:36   ` Jon Beniston
2004-05-21 15:06     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox