View | Details | Raw Unified | Return to bug 2619
Collapse All | Expand All

(-)frysk-gui/frysk/gui/Gui.java (+5 lines)
Lines 90-95 import frysk.gui.srcwin.prefs.SyntaxPref Link Here
90
import frysk.gui.srcwin.tags.Tagset;
90
import frysk.gui.srcwin.tags.Tagset;
91
import frysk.gui.srcwin.tags.TagsetManager;
91
import frysk.gui.srcwin.tags.TagsetManager;
92
import frysk.proc.Manager;
92
import frysk.proc.Manager;
93
import frysk.sys.Errno;
93
94
94
public class Gui
95
public class Gui
95
    implements LifeCycleListener, Saveable
96
    implements LifeCycleListener, Saveable
Lines 366-371 public class Gui Link Here
366
		    	// eventLoop.run();
367
		    	// eventLoop.run();
367
		    	Manager.eventLoop.run();
368
		    	Manager.eventLoop.run();
368
		    }
369
		    }
370
		    catch (Errno.Eperm e) {
371
			DialogManager.showErrorDialog("Frysk Core Errors",
372
						      "Cannot attach to this process", e);
373
		    }
369
		    catch (Exception e) {
374
		    catch (Exception e) {
370
		    	DialogManager.showErrorDialog("Frysk Core Errors", "Frysk Core has reported the following errors", e); //$NON-NLS-1$ //$NON-NLS-2$
375
		    	DialogManager.showErrorDialog("Frysk Core Errors", "Frysk Core has reported the following errors", e); //$NON-NLS-1$ //$NON-NLS-2$
371
		    	System.exit(1);
376
		    	System.exit(1);
(-)frysk-sys/frysk/sys/Errno.java (+13 lines)
Lines 127-132 public class Errno Link Here
127
    }
127
    }
128
128
129
    /**
129
    /**
130
     * Operation not permitted
131
     */
132
    static public class Eperm
133
	extends Errno
134
    {
135
        private static final long serialVersionUID = 1L;
136
	protected Eperm (String message)
137
	{
138
	    super (message);
139
	}
140
    }
141
142
    /**
130
     * Returns the error message string for this error.
143
     * Returns the error message string for this error.
131
     */
144
     */
132
    public String toString ()
145
    public String toString ()
(-)frysk-sys/frysk/sys/cni/Errno.cxx (+5 lines)
Lines 51-56 Link Here
51
#include "frysk/sys/Errno$Einval.h"
51
#include "frysk/sys/Errno$Einval.h"
52
#include "frysk/sys/Errno$Echild.h"
52
#include "frysk/sys/Errno$Echild.h"
53
#include "frysk/sys/Errno$Esrch.h"
53
#include "frysk/sys/Errno$Esrch.h"
54
#include "frysk/sys/Errno$Eperm.h"
54
#include "frysk/sys/cni/Errno.hxx"
55
#include "frysk/sys/cni/Errno.hxx"
55
56
56
/**
57
/**
Lines 104-109 throwErrno (int err, jstring jmessage) Link Here
104
  case ECHILD:
105
  case ECHILD:
105
    throw new frysk::sys::Errno$Echild (jmessage);
106
    throw new frysk::sys::Errno$Echild (jmessage);
106
#endif
107
#endif
108
#ifdef EPERM
109
  case EPERM:
110
    throw new frysk::sys::Errno$Eperm (jmessage);
111
#endif
107
  default:
112
  default:
108
    throw new frysk::sys::Errno (jmessage);
113
    throw new frysk::sys::Errno (jmessage);
109
  }
114
  }

Return to bug 2619