* How to use "Command to issue after attaching"
@ 2003-10-22 12:30 Cliff
2003-10-22 13:05 ` Peter Reilley
2003-10-22 16:19 ` Keith Seitz
0 siblings, 2 replies; 3+ messages in thread
From: Cliff @ 2003-10-22 12:30 UTC (permalink / raw)
To: insight
Hi, all:
I'm using arm-elf-insight with ocdlibremote, and I want to send some commands to ocdlibremote after attaching it.
I put them in .gdbinit file and it really executes, but when I push the "run" button, insight try to detach and re-attach the target, so my settings are all lost.
I want to write some registers into the target CPU(S3C44BOX) so that I can use it's SDRAM without initialize by the user program.
It is a serial of commands like
monitor long 0x01c80000 = 0x11111002
monitor long 0x01c80004 = 0x0600
monitor long 0x01c80008 = 0x7ffc
.....
Then I try the "Command to issue after attaching" in the Target Selection dialog, but it seems only one command to issue. How can I run more than one command after attaching the target?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use "Command to issue after attaching"
2003-10-22 12:30 How to use "Command to issue after attaching" Cliff
@ 2003-10-22 13:05 ` Peter Reilley
2003-10-22 16:19 ` Keith Seitz
1 sibling, 0 replies; 3+ messages in thread
From: Peter Reilley @ 2003-10-22 13:05 UTC (permalink / raw)
To: Cliff, insight
Cliff;
Do not use the "run" command when debugging a remote target,
use the "continue" command.
Pete.
----- Original Message -----
From: "Cliff" <gdbinsight@citiz.net>
To: <insight@sources.redhat.com>
Sent: Wednesday, October 22, 2003 8:31 AM
Subject: How to use "Command to issue after attaching"
> Hi, all:
>
> I'm using arm-elf-insight with ocdlibremote, and I want to send some
commands to ocdlibremote after attaching it.
>
> I put them in .gdbinit file and it really executes, but when I push the
"run" button, insight try to detach and re-attach the target, so my settings
are all lost.
>
> I want to write some registers into the target CPU(S3C44BOX) so that I can
use it's SDRAM without initialize by the user program.
>
> It is a serial of commands like
> monitor long 0x01c80000 = 0x11111002
> monitor long 0x01c80004 = 0x0600
> monitor long 0x01c80008 = 0x7ffc
> .....
>
> Then I try the "Command to issue after attaching" in the Target Selection
dialog, but it seems only one command to issue. How can I run more than one
command after attaching the target?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use "Command to issue after attaching"
2003-10-22 12:30 How to use "Command to issue after attaching" Cliff
2003-10-22 13:05 ` Peter Reilley
@ 2003-10-22 16:19 ` Keith Seitz
1 sibling, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2003-10-22 16:19 UTC (permalink / raw)
To: Cliff; +Cc: insight
On Wed, 2003-10-22 at 05:31, Cliff wrote:
> It is a serial of commands like
> monitor long 0x01c80000 = 0x11111002
> monitor long 0x01c80004 = 0x0600
> monitor long 0x01c80008 = 0x7ffc
> .....
Is your target set to use "continue" instad of "run"? Check the "More
Options" bit in the target selection dialog. Otherwise, there's a
workaround... The "more options" thing describes the commands that are
used when the Run button is pressed.
If it is using "continue", then I would recommend you try running using
only command-line gdb: "file MYEXE"; "set remotebaud BAUD" (if needed);
"target TGT [OPTIONS]"; "load"; "break FUNCTION"; "cont".
In insight, the Run button always means: "Do whatever needs to be done
to get something running on the target." Of course, this means different
things to various targets.
> Then I try the "Command to issue after attaching" in the Target
> Selection dialog, but it seems only one command to issue. How can
> I run more than one command after attaching the target?
Put all your commands into a text file. Then enter the command "source
MYFILE" in the "command to ...." in the target selection dialog.
Keith
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-22 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-22 12:30 How to use "Command to issue after attaching" Cliff
2003-10-22 13:05 ` Peter Reilley
2003-10-22 16:19 ` 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).