public inbox for insight-prs@sourceware.org help / color / mirror / Atom feed
From: hepler@vlsi-concepts.com To: insight-gnats@sources.redhat.com Subject: insight/317: Target selection problems Date: Thu, 05 Jul 2007 04:23:00 -0000 [thread overview] Message-ID: <20070705041252.23062.qmail@sourceware.org> (raw) >Number: 317 >Category: insight >Synopsis: Target selection problems >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Jul 05 04:23:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Ed Hepler >Release: 6.6 >Organization: >Environment: Cygwin >Description: I have added a new target (custom jtag interface to a mips equivalent synthesizable core) to GDB. I have this working with GDB (using my own, modified version of remote-mips.c) in normal, text mode. To get into the appropriate target mode, I use the command: target vr2000 This invokes code in my modified remote-mips.c to use the jtag interface, etc. When I run insight, I can see that "_initialize_remote_mips" is executed and the Tk Source Window pops up. If I select the File -> Target Settings menu item, an error occurs and I get the following stack trace: can't read "PREFS_state(gdb/load/default-portname value)". no such element in array while executing "return $PREFS_state([list $name_value])" (procedure "PREFS_cmd_get" line 3) invoked from within "PREFS_cmd_get gdb/load/default-portname" ("eval" body line 1) invoked from within "eval PREFS_cmd_$dispatch $args" (procedure "pref" line 6) invoked from within "pref get gdb/load/default-portname" ("default" arm line 8) invoked from within "switch -regexp -- $gdb_target_name { sim|ice { set targ $gdb_target_name set targ_opts [pref getd gdb/load/${gdb_target_name}-opts]" ... (procedure "set_target_name" line 28) invoked from within "set_target_name" (menu invoke)errorCode is NONE I suspect that I need to add some code to targetselection.itb to add the appropriate "vr2000" selection, but I was surprised by the error (before I changed anything). I looked through targetselection.itb and didn't see anywhere that the array item gdb/load/default-portname was set (although I did see gdb/load/default-port being set). I also tried creating an initialization file (.gdbinit) that contains the command: target vr2000 and I see evidence that the target is set when executing gdb (some jtag commands are sent), but I don't see this when executing insight. To add my new target, is there anything else that needs to be done beyond setting the appropriate gdb_target() array items? Is there any documentation on what must be modified within insight to add a new target? Thanks... >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2007-07-05 4:23 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-07-05 4:23 hepler [this message] 2007-07-13 17:18 kseitz
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=20070705041252.23062.qmail@sourceware.org \ --to=hepler@vlsi-concepts.com \ --cc=insight-gnats@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: linkBe 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).