This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Insight init error message
- To: Paul Breed <Paul at Netburner dot com>
- Subject: Re: Insight init error message
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Tue, 03 Apr 2001 11:54:08 -0400
- CC: insight at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <4.2.0.58.20010401154923.03782b50@mail.netburner.com>
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