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


Keith Seitz wrote:
> Robert S. Grimes wrote:
>>   target rtems-remote 192.168.1.55:2159
>>
>
> This should be pretty easy. You're essentially trying to do just what
> gdb's built-in Remote/TCP target does. Take a look at this target in
> the target database in gdb/gdbtk/library/targetselection.itb.
>
Hi Keith,

Right, should be - that's what I was hoping for!  I looked at the file
you referenced, and made these changes

<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) {}

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.

Looking in the file you mentioned, there are a whole lot of targets! 
Many more than I have ever seen.  So, I must be missing the magic step
where I specify which targets to include in the build, right?  How is
that done?

Thanks!
-Bob
> Keith
>
>


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