This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Adding new target in Targetselection.itb
- From: msarasa at fh-konstanz dot de
- To: gdb at sources dot redhat dot com
- Date: Tue, 1 Jul 2003 13:38:43 +0200
- Subject: Adding new target in Targetselection.itb
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