home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Programming / GDBbundle-1.0-MIS / src / TextEdit / GdbBundle.bproj / GdbDisplayController.h < prev    next >
Encoding:
Text File  |  1997-04-18  |  2.0 KB  |  85 lines

  1. /* GdbDisplayController.h created by ovidiu on Wed 19-Mar-1997 */
  2.  
  3. #import <Foundation/NSObject.h>
  4. #import <GuiDisplayProvider_Protocol.h>
  5.  
  6. @class NSMutableArray;
  7. @class NSBrowser;
  8. @class NSMatrix;
  9.  
  10. @class Stack;
  11.  
  12. @interface GdbDisplayController : NSObject <GuiDisplayProvider2>
  13. {
  14.   id gdbManager;
  15.  
  16.   id stackBrowser;
  17.  
  18.   id runButton;
  19.   id stopButton;
  20.   id quitButton;
  21.   id execCmdMatrix;
  22.   id lineMatrix;
  23.   id selectionMatrix;
  24.  
  25.   DebuggerState debuggerState;
  26.  
  27.   id objectToBeNotified;
  28.   SEL selectorToBeInvoked;
  29.   NSMutableArray* objectsToBeNotified;
  30.  
  31.   Stack* stack;
  32.   int currentFrame;
  33. }
  34.  
  35. - (void)display:sender;
  36. - (void)close;
  37.  
  38. - (void)setButtonsConformingToState:(DebuggerState)state;
  39. - (void)disableAllButtons;
  40.  
  41.   /*  Send a command to GDB. Since the command is execute asyncronously, `object'
  42.   will be notified by invoking `selector' on it with the output string as the
  43.   first argument and a GdbOutputType value as the second argument when GDB
  44.   finishes the execution. Use this method for all GDB commands for which you
  45.   are waiting for output results. */
  46. - (void)executeGDBCommand:(NSString*)command
  47.                  annotate:(BOOL)flag
  48.              notifyObject:object
  49.                  selector:(SEL)selector;
  50.  
  51.   /* Outlet methods */
  52. - (void)run:sender;
  53. - (void)interrupt:sender;
  54. - (void)quit:sender;
  55. - (void)continue:sender;
  56. - (void)step:sender;
  57. - (void)finish:sender;
  58. - (void)next:sender;
  59. - (void)breakAt:sender;
  60. - (void)runUntil:sender;
  61. - (void)print:sender;
  62. - (void)printIndirect:sender;
  63. - (void)showStackFrameWindow:sender;
  64.  
  65.   /* Delegate methods of stack browser */
  66. - (void)browser:(NSBrowser*)sender
  67.   createRowsForColumn:(int)column
  68.        inMatrix:(NSMatrix*)matrix;
  69.  
  70. - (int)frameNumberForBrowserCell:(int)row;
  71. - (int)browserCellForFrame:(int)frameNumber;
  72.  
  73.   /* Changing the appearence of stack browser */
  74. - (void)stackChanged;
  75. - (void)updateCurrentFrame;
  76.  
  77.   /* Other methods */
  78. - (id)gdbManager;
  79. - (id)stackBrowser;
  80. - (void)selectInFile:(NSString*)file startLine:(int)sl endLine:(int)el;
  81.  
  82. - (void)invalidateCurrentFrameVariables;
  83.  
  84. @end
  85.