This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
RE: question about run download sequence
- From: Keith Seitz <keiths at redhat dot com>
- To: Aaron Case <aaron dot case at dynazign dot com>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: 20 Jun 2003 09:11:30 -0700
- Subject: RE: question about run download sequence
- Organization:
- References: <GBEOKKOEOGFDMKDFCHIMCEBGCAAA.aaron.case@dynazign.com>
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