Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] 1.2.1/Linux-GTK Showstopper?

Hi,

If you double click a register in the register view and change that register to an invalid value, Eclipse/CDT just exits. No prompt, no "I'm dying now, bye", just boom, gone.

Of course the real problem is in the SWT/GTK port, but you kind of have to decide how much you are willing to push on the platform when you are trying to get product out. Turns out this situation only seems to happen here, so we just worked around it with the following change to ChangeRegisterValueAction.java.

--- ChangeRegisterValueAction.java.old  Wed Jan 28 10:05:43 2004
+++ ChangeRegisterValueAction.java      Wed Jan 28 10:05:02 2004
@@ -203,12 +203,13 @@
                                return;
                        }
                        variable.setValue( newValue );
+                       cleanup();
                }
                catch( DebugException de )
                {
+                       cleanup();
CDebugUIPlugin.errorDialog( "Setting the register value failed.", de );
                }
-               cleanup();
        }

Thanks!
-Chris



Back to the top