This is the mail archive of the insight@sourceware.org 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: Adding new target type


Robert S. Grimes wrote:
<snip>
  # Remote
<snip>
  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) {}

  # RTEMS Remote - NEW!
  set gdb_target(rtemsremotetcp,pretty-name) "RTEMS Remote/TCP"
  set gdb_target(rtemsremotetcp,defbaud) "TCP"
  set gdb_target(rtemsremotetcp,baud-rates) {}
  set gdb_target(rtemsremotetcp,cmd) "rtems-remote tcpX"
  set gdb_target(rtemsremotetcp,runlist) {1 1 0 1}
  set gdb_target(rtemsremotetcp,after_attaching) {}

That looks correct.


Then I rebuilt and installed ("make && make install").  Didn't seem to
make any difference, so I did a "make clean" in the gdb/gdbtk directory,
and tried again.  Make worked a bit harder, but the results are the same
- no new target.

Hmm... Odd... [BTW, it's tcl: just reinstall or copy the changed targetselection.itb to the install directory.]


The only thing I can think of off the top of my head (other than an installation error) is TargetSelection::valid_target, which will attempt to do the cli command "help target rtems-remote".

Does this return something valid for your target? If it errors, your target will not show up in the dialog.

Keith


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