This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: question about run download sequence


On Fri, 2003-06-20 at 08:40, Aaron Case wrote:

> 5)Next I try to download Connect->Download the code to the target. This
> appears to work and gives a message indicating that the file was downloaded.
> 
> 6)Then I click Connect->Run.  This is where the problems begin. Insight then
> gets stuck in an infinite loop of downloading and popping up the target
> settings box with no way to exit.

Ok, that's the problem. One does not use "run" on remote targets. This
is a gdb policy. It has to do with gdb's staunch assertion that run
actually creates an inferior PROCESS. Remote boards don't have processes
(at least in gdb's view of the board). Use "continue" instead. The
download will have set the PC to the entry address in the file. This is
essentially the same as "running" it. It's a little technical, but,
well, that's the way gdb works.

I recommend NOT doing steps 5 & 6. Instead, just click the run button.
It will do the download and automatically continue the target. (These
settings can be modified in the Target Settings dialog. Click "More
options".)

Let me know how that goes.

Keith



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]