This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Adding new target type
- From: "Robert S. Grimes" <rsg at ll dot mit dot edu>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: insight at sourceware dot org
- Date: Wed, 05 Sep 2007 16:32:58 -0400
- Subject: Re: Adding new target type
- References: <46DF045C.2080806@ll.mit.edu> <46DF05C6.7060409@redhat.com>
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
>
>