From: Keith Seitz <keiths@redhat.com>
To: "Edward L. Hepler" <hepler@vlsi-concepts.com>
Cc: insight@sources.redhat.com
Subject: Re: Adding a target?
Date: Fri, 29 Feb 2008 05:38:00 -0000 [thread overview]
Message-ID: <47C79954.4000502@redhat.com> (raw)
In-Reply-To: <Pine.GSO.4.62.0802252126560.18140@manx.misty.com>
Edward L. Hepler wrote:
> I'd like to use insight to drive gdb and have included the appropriate
> gdb modifications. The "gdb-side" appears to operate properly, but
> I'm still having some problems with the GUI portion. I'd appreciate
> any pointers you may be able to send that would help in adding a target
> to the GUI... An error pops up stating that "can't read
> "PREFS_state(gdb/load/default-portname value)" no such element in array"
There are two preferences that are rather closely related, "*-port" and
"*-portname". The former is used with serial connections and the latter
with TCP connections. In this latter case, the TCP port NUMBER is stored
in *-portname (I don't know why!). [YUCK!]
The "default" target settings are supposed to be initialized by
TargetSelection::_init_prefs, which is initialized when the target
selection dialog is CONSTRUCTED. Sigh. That's messed up, since
interface.tcl relies on these values in set_target_name. Yich. I'm
surprised this worked at all.
Alas, as a quick hack, try this:
1) add a call to _init_prefs in either TargetSelection::getname or
TargetSelection::init_target_db. I would probably do it in
init_target_db and remove other calls to _init_pref in this file.
2) define the preference gdb/load/default-portname (set it to any
integer) in TargetSelection::_init_prefs (follow the example for
default-port at the end of this method).
Let me know if that fixes your problem.
Keith
next prev parent reply other threads:[~2008-02-29 5:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 3:07 Edward L. Hepler
2008-02-26 18:13 ` Dave Korn
2008-03-06 3:31 ` Edward L. Hepler
2008-02-29 5:38 ` Keith Seitz [this message]
[not found] ` <Pine.GSO.4.62.0803081507200.8750@manx.misty.com>
2008-03-09 17:34 ` Edward L. Hepler
2008-03-09 23:49 ` Keith Seitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47C79954.4000502@redhat.com \
--to=keiths@redhat.com \
--cc=hepler@vlsi-concepts.com \
--cc=insight@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).