From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Breed To: insight@sources.redhat.com Subject: Insight init error message Date: Sun, 01 Apr 2001 13:21:00 -0000 Message-id: <4.2.0.58.20010401154923.03782b50@mail.netburner.com> X-SW-Source: 2001-q2/msg00002.html 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