public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* RE: Target Settings box does not come up
@ 2004-12-31 21:07 Peter Stephens
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Stephens @ 2004-12-31 21:07 UTC (permalink / raw)
  To: insight

I think the problem with the "target settings" problem is still in the
development sources.  Part of the problem may be that several of the image
files in the development sources appear to be "different".  See the output
listing below.

The other problem may be that they all have different read-write-execute
rights.  The files in the 6.1 snapshot images and images2 directory were all
-rwxrwx--- and the ones in the development directories were -rw-rw----.  I
copied over the "different" files from the snapshot to the development area
and then made the file permissions -rwxrwx----.  This allowed the dialog box
to pop up (got rid of errors in the TK debug window).

//  images directories

gdb$>diff --ignore-file-name-case --binary -q gdbtk/library/images
../../../insight-6.1/gdb/gdbtk/library/images

Files gdbtk/library/images/bottom.gif and
../../../insight-6.1/gdb/gdbtk/library/images/bottom.gif differ
Files gdbtk/library/images/console.gif and
../../../insight-6.1/gdb/gdbtk/library/images/console.gif differ
Only in gdbtk/library/images: CVS
Files gdbtk/library/images/home.gif and
../../../insight-6.1/gdb/gdbtk/library/images/home.gif differ
Files gdbtk/library/images/insight.gif and
../../../insight-6.1/gdb/gdbtk/library/images/insight.gif differ
Files gdbtk/library/images/less.gif and
../../../insight-6.1/gdb/gdbtk/library/images/less.gif differ
Files gdbtk/library/images/more.gif and
../../../insight-6.1/gdb/gdbtk/library/images/more.gif differ
Files gdbtk/library/images/Movie_off.gif and
../../../insight-6.1/gdb/gdbtk/library/images/Movie_off.gif differ
Files gdbtk/library/images/Movie_on.gif and
../../../insight-6.1/gdb/gdbtk/library/images/Movie_on.gif differ
Files gdbtk/library/images/next_check.gif and
../../../insight-6.1/gdb/gdbtk/library/images/next_check.gif differ
Files gdbtk/library/images/next_frame.gif and
../../../insight-6.1/gdb/gdbtk/library/images/next_frame.gif differ
Files gdbtk/library/images/next_line.gif and
../../../insight-6.1/gdb/gdbtk/library/images/next_line.gif differ
Files gdbtk/library/images/nexti.gif and
../../../insight-6.1/gdb/gdbtk/library/images/nexti.gif differ
Files gdbtk/library/images/rewind.gif and
../../../insight-6.1/gdb/gdbtk/library/images/rewind.gif differ
Files gdbtk/library/images/tdump.gif and
../../../insight-6.1/gdb/gdbtk/library/images/tdump.gif differ
Files gdbtk/library/images/tp.gif and
../../../insight-6.1/gdb/gdbtk/library/images/tp.gif differ
Files gdbtk/library/images/watch.gif and
../../../insight-6.1/gdb/gdbtk/library/images/watch.gif differ
Files gdbtk/library/images/watch_movie.gif and
../../../insight-6.1/gdb/gdbtk/library/images/watch_movie.gif differ

//  images2 directories

gdb$>diff --ignore-file-name-case --binary -q gdbtk/library/images2
../../../insight-6.1/gdb/gdbtk/library/images2

Files gdbtk/library/images2/console.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/console.gif differ
Only in gdbtk/library/images2: CVS
Files gdbtk/library/images2/down.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/down.gif differ
Files gdbtk/library/images2/help.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/help.gif differ
Files gdbtk/library/images2/home.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/home.gif differ
Files gdbtk/library/images2/insight.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/insight.gif differ
Files gdbtk/library/images2/less.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/less.gif differ
Files gdbtk/library/images2/more.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/more.gif differ
Files gdbtk/library/images2/Movie_off.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/Movie_off.gif differ
Files gdbtk/library/images2/Movie_on.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/Movie_on.gif differ
Files gdbtk/library/images2/next_check.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/next_check.gif differ
Files gdbtk/library/images2/next_frame.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/next_frame.gif differ
Files gdbtk/library/images2/next_line.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/next_line.gif differ
Files gdbtk/library/images2/rewind.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/rewind.gif differ
Files gdbtk/library/images2/src.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/src.gif differ
Files gdbtk/library/images2/tdump.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/tdump.gif differ
Files gdbtk/library/images2/tp.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/tp.gif differ
Files gdbtk/library/images2/watch.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/watch.gif differ
Files gdbtk/library/images2/watch_movie.gif and
../../../insight-6.1/gdb/gdbtk/library/images2/watch_movie.gif differ


^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Target Settings box does not come up
  2004-11-24  9:13 Hans Kester
  2004-11-24  9:57 ` Jon Beniston
@ 2004-11-24 18:17 ` Keith Seitz
  1 sibling, 0 replies; 11+ messages in thread
From: Keith Seitz @ 2004-11-24 18:17 UTC (permalink / raw)
  To: Hans Kester; +Cc: insight

On Wed, 2004-11-24 at 01:13, Hans Kester wrote:
> The 'Downlaod Status" box now appears, but I still get the memory access
> error (see below). Again: this file loads with 5.2.1 and the remote stub
> is the same for both versions. I'm using stabs+ as debugging format.

Could you try this without insight? This smacks of a gdb problem.
[Remember insight is just a gui with a BUNCH of glue code.]

Try "insight -nw" or "insight --interp=console".

Keith

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Target Settings box does not come up
  2004-11-24  9:13 Hans Kester
@ 2004-11-24  9:57 ` Jon Beniston
  2004-11-24 18:17 ` Keith Seitz
  1 sibling, 0 replies; 11+ messages in thread
From: Jon Beniston @ 2004-11-24  9:57 UTC (permalink / raw)
  To: 'Hans Kester', 'Keith Seitz'; +Cc: insight

> The 'Downlaod Status" box now appears, but I still get the 
> memory access error (see below). 

You could try a 'set debug remote 1' in the console window to see what is
going on (i.e. you should be able to see the address that causes the error).

Cheers,
Jon


^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Target Settings box does not come up
@ 2004-11-24  9:13 Hans Kester
  2004-11-24  9:57 ` Jon Beniston
  2004-11-24 18:17 ` Keith Seitz
  0 siblings, 2 replies; 11+ messages in thread
From: Hans Kester @ 2004-11-24  9:13 UTC (permalink / raw)
  To: Keith Seitz; +Cc: insight

The 'Downlaod Status" box now appears, but I still get the memory access
error (see below). Again: this file loads with 5.2.1 and the remote stub
is the same for both versions. I'm using stabs+ as debugging format.

Debug window contents:

(Download::download_it)
exe=G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.e
lf downloading=0
(Download::download_it)     loaded=0 target=remote running=0
(SrcWin::_set_state) gdb_downloading l=0 d=1 r=0
(SrcWin::_set_state) gdb_loaded l=0 d=1 r=0
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 0 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBToolBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop running
(SrcBar::_set_runstop) running
(ManagedWin::find) SrcWin
(SrcBar::enable_ui) 2 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Control disabled  Trace
disabled  Other normal  Attach normal  Detach disabled 
(GDBToolBar::set_class_state) Enable list is: Control disabled  Trace
disabled  Other normal  Attach normal  Detach disabled 
(global::set_target) CONNECTING TO TARGET: remote /dev/com1 
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 0 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBToolBar::set_class_state) Enable list is: Control disabled  Other
disabled  Trace disabled  Attach disabled  Detach disabled
(GDBEventHandler::GDBEventHandler::dispatch) posting event "busy" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop running
(SrcBar::_set_runstop) running
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 1 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBToolBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop normal
(SrcBar::_set_runstop) normal
(SrcBar::enable_ui) 2 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Control disabled  Trace
disabled  Other normal  Attach normal  Detach disabled 
(GDBToolBar::set_class_state) Enable list is: Control disabled  Trace
disabled  Other normal  Attach normal  Detach disabled 
(SrcWin::_set_state) gdb_running l=0 d=1 r=1
(Download::download_it) downloading
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(ManagedWin::_open) Download -transient -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(ManagedWin::_create) win=download args=-transient -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(Download::constructor) -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(ManagedWin::find) SrcWin
(Download::download_it) starting load
(Download::download_it) load returned Memory access error while loading
section .text.

(Download::download_it) Done loading
(SrcWin::_set_state) gdb_downloading l=0 d=0 r=1
(SrcWin::_set_state) gdb_loaded l=0 d=0 r=1
(ManagedWin::find) SrcWin
(SrcBar) configuring runstop normal
(SrcBar::_set_runstop) normal
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane2.childsite.con"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.console0.console"
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin.container.pane0.childsite.con"
(SrcBar::enable_ui) 1 - Browsing=0
(GDBMenuBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBToolBar::set_class_state) Enable list is: Trace disabled  Control
normal  Other normal  Attach disabled  Detach normal 
(GDBEventHandler::GDBEventHandler::dispatch) posting event "idle" to
"::.srcwin0.srcwin"
(SrcBar) configuring runstop normal
(SrcBar::_set_runstop) normal

 
Hans


-----Original Message-----
From: Keith Seitz [mailto:keiths@redhat.com] 
Sent: Tuesday, November 23, 2004 5:20 PM
To: Hans Kester
Cc: insight@sources.redhat.com
Subject: RE: Target Settings box does not come up

On Tue, 2004-11-23 at 07:02, Keith Seitz wrote:
> Zowie. I'll work on a patch.

Ok, it's official ('cause I say so ;-): iwidgets::feedback is a very,
very lame widget.

I feel better now. I've attached a patch. Apply in src/gdb/gdbtk
directory (it should patch library/download.it*). I've only tested this
on the simulator, but it seems to work.

Please try it out and let me know if that fixes the problem.

Keith

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Target Settings box does not come up
  2004-11-23 15:03 ` Keith Seitz
@ 2004-11-23 16:20   ` Keith Seitz
  0 siblings, 0 replies; 11+ messages in thread
From: Keith Seitz @ 2004-11-23 16:20 UTC (permalink / raw)
  To: Hans Kester; +Cc: insight

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

On Tue, 2004-11-23 at 07:02, Keith Seitz wrote:
> Zowie. I'll work on a patch.

Ok, it's official ('cause I say so ;-): iwidgets::feedback is a very,
very lame widget.

I feel better now. I've attached a patch. Apply in src/gdb/gdbtk
directory (it should patch library/download.it*). I've only tested this
on the simulator, but it seems to work.

Please try it out and let me know if that fixes the problem.

Keith


[-- Attachment #2: download.patch --]
[-- Type: text/x-patch, Size: 3200 bytes --]

Index: library/download.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/download.itb,v
retrieving revision 1.9
diff -u -p -r1.9 download.itb
--- library/download.itb	15 Oct 2002 21:19:51 -0000	1.9
+++ library/download.itb	23 Nov 2004 16:18:12 -0000
@@ -31,7 +31,7 @@ itcl::body Download::constructor {args} 
 
   set i 0
   while {$i <$num_sections} {
-    iwidgets::feedback $f.meter$i -steps $num_steps -fraction 0.0
+    iwidgets::feedback $f.meter$i -steps $num_steps
     grid forget [$f.meter$i component percentage]
     label $f.sec$i -text [lindex $section(names) $i] -anchor w
     label $f.num$i -text $bytes($i) -anchor e
@@ -63,11 +63,26 @@ itcl::body Download::update_download { s
     set i $section($s)
 
     if {$s == $sec} {
-      set f [expr {$num / $bytes($i)}]
-      $itk_interior.f.meter$i configure -fraction $f
+      # Advance feedback meter. The iwidgets meter leaves a lot to
+      # be desired. No way to query the current setting. No way to
+      # set the state of the meter by percentage. It only understands
+      # steps, and we must be careful not to step the widget past the
+      # the configured number of steps, or else the meter will be
+      # set wrong. How lame.
+      set steps [expr {$num / $bytes($i) * $num_steps}]
+      if {[expr {$completed_steps($s) + $steps}] > $num_steps} {
+	set steps [expr {$num_steps - $completed_steps($s)}]
+      }
+      incr completed_steps($s) $steps
+      $itk_interior.f.meter$i step $steps
       break
     } else {
-      $itk_interior.f.meter$i configure -fraction 1.0
+      # Section already loaded. Make sure meter is at 100%.
+      if {$completed_steps($s) < $num_steps} {
+        set steps [expr {$num_steps - $completed_steps($s)}]
+        set completed_steps($s) $num_steps
+        $itk_interior.f.meter$i step $steps
+      }
     }
   }
 
@@ -91,7 +106,11 @@ itcl::body Download::done { {msg ""} } {
     # set all indicators to FULL
     foreach sec $section(names) {
       set i $section($sec)
-      $itk_interior.f.meter$i configure -fraction 1.0
+      if {$completed_steps($sec) < $num_steps} {
+        set steps [expr {$num_steps - $completed_steps($sec)}]
+        set completed_steps($sec) $num_steps
+        $itk_interior.f.meter$i step $steps
+      }
     }
   } else {
     # download failed
@@ -221,6 +240,7 @@ itcl::body Download::download_it { } {
     set b [lindex $x 1]
     set bytes($i) [expr {double($b)}]
     incr total_bytes $b
+    set completed_steps($s) 0
     incr i
   }
   set num_sections $i
Index: library/download.ith
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/download.ith,v
retrieving revision 1.5
diff -u -p -r1.5 download.ith
--- library/download.ith	15 Oct 2002 21:19:51 -0000	1.5
+++ library/download.ith	23 Nov 2004 16:18:12 -0000
@@ -22,6 +22,9 @@ itcl::class Download {
     common num_sections
     common num_steps 100
 
+    # completed steps in feedback meter (iwidget::feedback is lame)
+    common completed_steps
+
     method _ignore_on_save {} { return 1 }
     proc dont_remember_size {} { return 1}
   }

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Target Settings box does not come up
  2004-11-23  8:52 Hans Kester
@ 2004-11-23 15:03 ` Keith Seitz
  2004-11-23 16:20   ` Keith Seitz
  0 siblings, 1 reply; 11+ messages in thread
From: Keith Seitz @ 2004-11-23 15:03 UTC (permalink / raw)
  To: Hans Kester; +Cc: insight

On Tue, 2004-11-23 at 00:52, Hans Kester wrote:
> It does give an error message:
> (ManagedWin::_create) object creation of TargetSelection failed: error
> reading extension in GIF image
> (ManagedWin::_create) error reading extension in GIF image
>     while executing
> "image create photo _MORE_ -file [file join $gdb_ImageDir more.gif]"
>     (object "::.targetselection0.targetselection" method
[snip]
> So my GIF images seem to be wrong. A small investigation shows that
> about half of them will not display with native Windows applications
> either. How did this happen?

I dunno. I've never seen that happen before. Sorry.

> When I copy the images and images2 directories from the Insight 6.1
> build the target settings box comes up! However I still get the memory
> error when downloading a program that downloads fine with 5.2.1:

Ok, one down, one to go. :-)

> [...]
> (ManagedWin::_create) unknown option "-fraction"
>     (object "::.download0.download.f.meter0" method

> Does this say that the -fraction option is not recognized?
> What does the guru say about this?

Grr... Looks like Iwidget's feedback widget has changed. Wow, this bug
must have been around for quite some time! According to the logs,
JANUARY 21 2003!

Zowie. I'll work on a patch.

Keith

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Target Settings box does not come up
@ 2004-11-23  8:52 Hans Kester
  2004-11-23 15:03 ` Keith Seitz
  0 siblings, 1 reply; 11+ messages in thread
From: Hans Kester @ 2004-11-23  8:52 UTC (permalink / raw)
  To: Keith Seitz; +Cc: insight

Cool! I wondered how you ever could debug all this TCL/TK stuff...

It does give an error message:
(ManagedWin::_open) TargetSelection -exportcancel 1 -center -transient
(ManagedWin::_create) win=targetselection args=-exportcancel 1 -center
-transient
(ModalDialog::destructor)   UNPOST ::.targetselection0.targetselection
(ManagedWin::_create) object creation of TargetSelection failed: error
reading extension in GIF image
(ManagedWin::_create) error reading extension in GIF image
    while executing
"image create photo _MORE_ -file [file join $gdb_ImageDir more.gif]"
    (object "::.targetselection0.targetselection" method
"::TargetSelection::build_win" body line 125)
    invoked from within
"build_win"
    while constructing object "::.targetselection0.targetselection" in
::TargetSelection::constructor (body line 5)
    invoked from within
"TargetSelection .targetselection0.targetselection -exportcancel 1"
    ("eval" body line 1)
    invoked from within
"eval TargetSelection .targetselection0.targetselection -exportcancel 1"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 eval $class $newwin $args"


So my GIF images seem to be wrong. A small investigation shows that
about half of them will not display with native Windows applications
either. How did this happen?

When I copy the images and images2 directories from the Insight 6.1
build the target settings box comes up! However I still get the memory
error when downloading a program that downloads fine with 5.2.1:

[...]
(Download::download_it) downloading
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(ManagedWin::_open) Download -transient -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(ManagedWin::_create) win=download args=-transient -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(Download::constructor) -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf
(ManagedWin::_create) object creation of Download failed: unknown option
"-fraction"
(ManagedWin::_create) unknown option "-fraction"
    (object "::.download0.download.f.meter0" method
"::itk::Archetype::itk_initialize" )
    invoked from within
"itk_initialize -steps 100 -fraction 0.0"
    ("eval" body line 1)
    invoked from within
"eval itk_initialize $args"
    while constructing object "::.download0.download.f.meter0" in
::iwidgets::Feedback::constructor (body line 32)
    invoked from within
"::iwidgets::Feedback .download0.download.f.meter0 -steps 100 -fraction
0.0"
    ("uplevel" body line 1)
    invoked from within
"uplevel ::iwidgets::Feedback $pathName $args"
    (procedure "iwidgets::feedback" line 2)
    invoked from within
"iwidgets::feedback $f.meter$i -steps $num_steps -fraction 0.0"
    while constructing object "::.download0.download" in
::Download::constructor (body line 15)
    invoked from within
"Download .download0.download -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf"
    ("eval" body line 1)
    invoked from within
"eval Download .download0.download -filename
G:/Project/Profibus/Software/Slave/Serial/App/Debug_Revision_2/App.elf"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 eval $class $newwin $args"
(Download::download_it) starting load
(Download::download_it) load returned Memory access error while loading
section .text.

(Download::download_it) Done loading
 [...]


Does this say that the -fraction option is not recognized?
What does the guru say about this?

Hans


-----Original Message-----
From: Keith Seitz [mailto:keiths@redhat.com] 
Sent: Monday, November 22, 2004 6:12 PM
To: Hans Kester
Cc: insight@sources.redhat.com
Subject: Re: Target Settings box does not come up

On Mon, 2004-11-22 at 03:53, Hans Kester wrote:
> When I start Insight and click on File->Target Settings nothing
happens.
> When I connect anyway (it probably remembered the settings from
previous
> sessions) and try to download my program it says: "DOWNLOAD FAILED:
> Memory access error while loading section .text" which is strange
since
> it does download with Insight 5.2.1.
> 
> Any idea what is wrong?

Open a console window and enter "tk ManagedWin::open DebugWin". Then try
to open the target settings dialog.

Any errors show up?

Keith

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Target Settings box does not come up
  2004-11-22 19:06   ` Duane Ellis
@ 2004-11-22 19:18     ` Martin M. Hunt
  0 siblings, 0 replies; 11+ messages in thread
From: Martin M. Hunt @ 2004-11-22 19:18 UTC (permalink / raw)
  To: duane; +Cc: Keith Seitz, hans, insight

Duane,

I remember seeing problems like you describe with the combobox on some
versions of Solaris.  The latest combobox code (which was after 5.2.1)
fixed it (at least on Solaris).  Could you give it a try?  Just grab
libgui/library/combobox.tcl either from CVS head or from any 2004
snapshot.

Martin

On Mon, 2004-11-22 at 11:05, Duane Ellis wrote:
> FYI - we have something like that with Insight-5.2.1 (we have a custom
> port, I wrote our port, and I don't have time to update it so I can't
> easily change things)
> 
> NOTE: my case is oposition - you claim 5.2.1 works. New version does
> not. In my case the problem is with 5.2.1
> 
> Situation is this: 
> 
> We use starnet Xwin32 into a RH ES9 machine (does the same if we go
> into a RH7.3 machine). 
> 
> Xwin32 has 2 modes of operation, (a) 'x-in-a-box', where every
> xwindows window is INSIDE the session (ie: Multiple Document Interface
> mode) or (b) lots-of-windows, where every xwindows is an independent
> ms-windows window.
> 
> In "x-in-a-box" mode, the target window works. 
> 
> In "lots-of-x-boxes" the target window (for that matter, any drop down
> tcl/tk combo-box) fails to work. It's empty.
> 
> Since the primary way we use Xwin32 is in 'x-in-a-box-mode' the
> problem does not come up, and the workaround is better anyway
> (zillions of Xwindows windows is painful) i have not bothered looking
> into or researching this much.  
> 
> I've never had the time to post something about it, I just happened to
> notice this message today.
> 
> -Duane.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Target Settings box does not come up
  2004-11-22 17:12 ` Keith Seitz
@ 2004-11-22 19:06   ` Duane Ellis
  2004-11-22 19:18     ` Martin M. Hunt
  0 siblings, 1 reply; 11+ messages in thread
From: Duane Ellis @ 2004-11-22 19:06 UTC (permalink / raw)
  To: keiths; +Cc: hans, insight


FYI - we have something like that with Insight-5.2.1 (we have a custom
port, I wrote our port, and I don't have time to update it so I can't
easily change things)

NOTE: my case is oposition - you claim 5.2.1 works. New version does
not. In my case the problem is with 5.2.1

Situation is this: 

We use starnet Xwin32 into a RH ES9 machine (does the same if we go
into a RH7.3 machine). 

Xwin32 has 2 modes of operation, (a) 'x-in-a-box', where every
xwindows window is INSIDE the session (ie: Multiple Document Interface
mode) or (b) lots-of-windows, where every xwindows is an independent
ms-windows window.

In "x-in-a-box" mode, the target window works. 

In "lots-of-x-boxes" the target window (for that matter, any drop down
tcl/tk combo-box) fails to work. It's empty.

Since the primary way we use Xwin32 is in 'x-in-a-box-mode' the
problem does not come up, and the workaround is better anyway
(zillions of Xwindows windows is painful) i have not bothered looking
into or researching this much.  

I've never had the time to post something about it, I just happened to
notice this message today.

-Duane.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Target Settings box does not come up
  2004-11-22 11:53 Hans Kester
@ 2004-11-22 17:12 ` Keith Seitz
  2004-11-22 19:06   ` Duane Ellis
  0 siblings, 1 reply; 11+ messages in thread
From: Keith Seitz @ 2004-11-22 17:12 UTC (permalink / raw)
  To: Hans Kester; +Cc: insight

On Mon, 2004-11-22 at 03:53, Hans Kester wrote:
> When I start Insight and click on File->Target Settings nothing happens.
> When I connect anyway (it probably remembered the settings from previous
> sessions) and try to download my program it says: "DOWNLOAD FAILED:
> Memory access error while loading section .text" which is strange since
> it does download with Insight 5.2.1.
> 
> Any idea what is wrong?

Open a console window and enter "tk ManagedWin::open DebugWin". Then try
to open the target settings dialog.

Any errors show up?

Keith

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Target Settings box does not come up
@ 2004-11-22 11:53 Hans Kester
  2004-11-22 17:12 ` Keith Seitz
  0 siblings, 1 reply; 11+ messages in thread
From: Hans Kester @ 2004-11-22 11:53 UTC (permalink / raw)
  To: insight

In an afford to upgrade to the latest Insight I managed to
- get the latest sources form CVS
- patch the TCL and TK sources to allow it to compile with the w32api
- build the sources with 'configure --target=sh-elf --disable-nls'

When I start Insight and click on File->Target Settings nothing happens.
When I connect anyway (it probably remembered the settings from previous
sessions) and try to download my program it says: "DOWNLOAD FAILED:
Memory access error while loading section .text" which is strange since
it does download with Insight 5.2.1.

Any idea what is wrong?

Hans Kester

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-12-31 21:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-31 21:07 Target Settings box does not come up Peter Stephens
  -- strict thread matches above, loose matches on Subject: below --
2004-11-24  9:13 Hans Kester
2004-11-24  9:57 ` Jon Beniston
2004-11-24 18:17 ` Keith Seitz
2004-11-23  8:52 Hans Kester
2004-11-23 15:03 ` Keith Seitz
2004-11-23 16:20   ` Keith Seitz
2004-11-22 11:53 Hans Kester
2004-11-22 17:12 ` Keith Seitz
2004-11-22 19:06   ` Duane Ellis
2004-11-22 19:18     ` Martin M. Hunt

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).