This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Adding new target in Targetselection.itb
- From: Keith Seitz <keiths at redhat dot com>
- To: msarasa at fh-konstanz dot de
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: 01 Jul 2003 12:34:48 -0700
- Subject: Re: Adding new target in Targetselection.itb
- Organization:
- References: <1057059523.3f0172c3446d1@webmail.fh-konstanz.de>
[forwarded to proper mailing list -- reply in follow-up]
On Tue, 2003-07-01 at 04:38, msarasa@fh-konstanz.de wrote:
> I've added a new target type succesfully , it's a software-simulated uart,
> that can be called among the remote protocol. It means that now I'm allowed to
> connect a target not only using a real serial line , but with a software
> serial line. Useful to connect software-sim boards.
> But , I want to include an option in the dialog-box "target selection" I've
> modified the "targetselection.itb" file and appended a new target
> It looks like:
> # Remote
> set gdb_target(remote,pretty-name) "Remote/Serial"
> set gdb_target(remote,defbaud) "9600"
> set gdb_target(remote,baud-rates) {9600 19200 38400 57600 115200}
> set gdb_target(remote,cmd) "remote com1"
> set gdb_target(remote,runlist) {1 1 0 1}
> set gdb_target(remote,after_attaching) {}
> set gdb_target(remotetcp,pretty-name) "Remote/TCP"
> set gdb_target(remotetcp,defbaud) "TCP"
> set gdb_target(remotetcp,baud-rates) {}
> set gdb_target(remotetcp,cmd) "remote tcpX"
> set gdb_target(remotetcp,runlist) {1 1 0 1}
> set gdb_target(remotetcp,after_attaching) {}
> # Simuart E1
> set gdb_target(remote,pretty-name) "Remote/Simuart_e1"
> set gdb_target(remote,defbaud) ""
> set gdb_target(remote,baud-rates) {}
> set gdb_target(remote,cmd) "remote simuart"
> set gdb_target(remote,runlist) {1 1 0 1}
> set gdb_target(remote,after_attaching) {}
>
>
> But the problem is that this overwrites the Remote serial option. This way
> just Simuart and TCP are displayed in the option box menu.
>
> What should I modify in order to maintain the other options and add mine
> without overwriting?
>
> Thanks a lot!!
> Miguel
>