* Insight init error message
@ 2001-04-01 13:21 Paul Breed
2001-04-03 8:54 ` Fernando Nasser
0 siblings, 1 reply; 2+ messages in thread
From: Paul Breed @ 2001-04-01 13:21 UTC (permalink / raw)
To: insight
On my cygwin installation insight has a problem with persistent settings.
If I have an empty gdbtk.ini available then insight seems to save
preference data
in that file, but the next time I run insignt then is gives me the error:
Error: can't read "PREFS_state(gdb/load/default-hostname value)":no such
element in array
If I choose the file->target settings->dialog then it works properly.
If I do not select that then when I try to run it does not show the connect
to target dialog and fails with the error.
My guess looking at the ini file is that the system is not properly saving
the target as remote serial and
is defaulting to remote tcp when it tries to connect.
Paul
The Stack Trace is:
can't read "PREFS_state(gdb/load/default-hostname 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-hostname"
("eval" body line 1)
invoked from within
"eval PREFS_cmd_$dispatch $args"
(procedure "pref" line 6)
invoked from within
"pref get gdb/load/default-hostname"
("default" arm line 12)
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 $prompt"
(procedure "set_target" line 14)
invoked from within
"set_target"
(procedure "gdbtk_attach_remote" line 8)
invoked from within
"gdbtk_attach_remote"
(procedure "gdbtk_connect" line 8)
invoked from within
"gdbtk_connect $async"
(object "::.srcwin0.srcwin.container.pane0.childsite.con" method
"::SrcBar::do_connect" body line 3)
invoked from within
"::.srcwin0.srcwin.container.pane0.childsite.con do_connect
.srcwin0.srcwin.container.pane0.childsite.con.menubar.m.run"
(menu invoke)errorCode is NONE
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Insight init error message
2001-04-01 13:21 Insight init error message Paul Breed
@ 2001-04-03 8:54 ` Fernando Nasser
0 siblings, 0 replies; 2+ messages in thread
From: Fernando Nasser @ 2001-04-03 8:54 UTC (permalink / raw)
To: Paul Breed; +Cc: insight
This sounds like a real bug. I will try to reproduce it.
Thanks for reporting it.
Fernando
Paul Breed wrote:
>
> On my cygwin installation insight has a problem with persistent settings.
>
> If I have an empty gdbtk.ini available then insight seems to save
> preference data
> in that file, but the next time I run insignt then is gives me the error:
>
> Error: can't read "PREFS_state(gdb/load/default-hostname value)":no such
> element in array
>
> If I choose the file->target settings->dialog then it works properly.
> If I do not select that then when I try to run it does not show the connect
> to target dialog and fails with the error.
>
> My guess looking at the ini file is that the system is not properly saving
> the target as remote serial and
> is defaulting to remote tcp when it tries to connect.
>
> Paul
>
> The Stack Trace is:
> can't read "PREFS_state(gdb/load/default-hostname 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-hostname"
> ("eval" body line 1)
> invoked from within
> "eval PREFS_cmd_$dispatch $args"
> (procedure "pref" line 6)
> invoked from within
> "pref get gdb/load/default-hostname"
> ("default" arm line 12)
> 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 $prompt"
> (procedure "set_target" line 14)
> invoked from within
> "set_target"
> (procedure "gdbtk_attach_remote" line 8)
> invoked from within
> "gdbtk_attach_remote"
> (procedure "gdbtk_connect" line 8)
> invoked from within
> "gdbtk_connect $async"
> (object "::.srcwin0.srcwin.container.pane0.childsite.con" method
> "::SrcBar::do_connect" body line 3)
> invoked from within
> "::.srcwin0.srcwin.container.pane0.childsite.con do_connect
> .srcwin0.srcwin.container.pane0.childsite.con.menubar.m.run"
> (menu invoke)errorCode is NONE
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-03 8:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-01 13:21 Insight init error message Paul Breed
2001-04-03 8:54 ` Fernando Nasser
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).