Bug 4503 - Stack frame up/down icons don't work correctly
Summary: Stack frame up/down icons don't work correctly
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Mike Cvet
URL:
Keywords:
Depends on:
Blocks: 1633
  Show dependency treegraph
 
Reported: 2007-05-14 16:41 UTC by Rick Moseley
Modified: 2007-05-14 19:16 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Moseley 2007-05-14 16:41:51 UTC
The stack frame buttons on the source window toolbar do not work properly
sometimes and do not become sensitive/insensitive at the appropriate times.
Comment 1 Rick Moseley 2007-05-14 16:50:01 UTC
I can generate this backtrace pretty regularly on a number of source files:

java.lang.ArrayIndexOutOfBoundsException: 2
   at frysk.gui.srcwin.SourceWindow.doStackUp(SourceWindow.java:2652)
   at frysk.gui.srcwin.SourceWindow$25.actionEvent(SourceWindow.java:1333)
   at org.gnu.gtk.Action.fireActionEvent(libgtkjava-2.8.so)
   at org.gnu.gtk.Action.handleActivate(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(Gui.java:244)
   at frysk.gui.FryskGui.main(FryskGui.java:59)
java.lang.ArrayIndexOutOfBoundsException: 2
   at frysk.gui.srcwin.SourceWindow.doStackUp(SourceWindow.java:2652)
   at frysk.gui.srcwin.SourceWindow$25.actionEvent(SourceWindow.java:1333)
   at org.gnu.gtk.Action.fireActionEvent(libgtkjava-2.8.so)
   at org.gnu.gtk.Action.handleActivate(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(Gui.java:244)
   at frysk.gui.FryskGui.main(FryskGui.java:59)
Comment 2 Mike Cvet 2007-05-14 20:16:14 UTC
2007-05-14  Mike Cvet  <mcvet@redhat.com>

	* SourceWindow.java (doStackUp): Rewritten. Fixes #4503.
	(doStackDown): Ditto.
	(doStackTop): Ditto.