This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Insight init error message


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]