2008-12-25 15:46:41 +00:00
|
|
|
/*
|
|
|
|
** PCDebugger
|
|
|
|
**
|
2021-06-21 23:42:00 +00:00
|
|
|
** Copyright (c) 2008-2021
|
2008-12-25 15:46:41 +00:00
|
|
|
**
|
|
|
|
** Author: Gregory Casamento <greg_casamento@yahoo.com>
|
2021-06-21 23:42:00 +00:00
|
|
|
** Riccardo Mottola <rm@gnu.org>
|
2008-12-25 15:46:41 +00:00
|
|
|
**
|
|
|
|
** This program is free software; you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation; either version 2 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with this program; if not, write to the Free Software
|
|
|
|
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
2008-12-16 21:31:41 +00:00
|
|
|
|
2008-12-30 13:47:27 +00:00
|
|
|
#import <stdio.h>
|
2008-12-16 21:31:41 +00:00
|
|
|
|
2008-12-22 00:38:35 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#import <Protocols/CodeDebugger.h>
|
2021-07-08 21:43:09 +00:00
|
|
|
#import "PCDebuggerWrapperProtocol.h"
|
2008-12-22 00:09:23 +00:00
|
|
|
|
2021-07-08 22:41:04 +00:00
|
|
|
extern NSString *PCBreakTypeKey;
|
2016-09-29 08:58:57 +00:00
|
|
|
extern NSString *PCBreakTypeByLine;
|
|
|
|
extern NSString *PCBreakTypeMethod;
|
2021-07-08 22:41:04 +00:00
|
|
|
extern NSString *PCBreakMethod;
|
|
|
|
extern NSString *PCBreakFilename;
|
|
|
|
extern NSString *PCBreakLineNumber;
|
2016-09-29 08:58:57 +00:00
|
|
|
|
2016-11-17 14:18:48 +00:00
|
|
|
extern NSString *PCDBDebuggerStartedNotification;
|
2016-09-29 08:58:57 +00:00
|
|
|
|
2008-12-22 00:09:23 +00:00
|
|
|
@interface PCDebugger : NSObject <CodeDebugger>
|
2008-12-16 21:31:41 +00:00
|
|
|
{
|
2008-12-22 00:38:35 +00:00
|
|
|
id debuggerView;
|
|
|
|
id debuggerWindow;
|
2008-12-28 07:19:45 +00:00
|
|
|
id statusField;
|
2016-05-02 22:34:57 +00:00
|
|
|
NSString *executablePath;
|
2016-05-03 21:26:31 +00:00
|
|
|
int subProcessId;
|
2021-06-21 23:42:00 +00:00
|
|
|
NSDictionary *lastInfoParsed;
|
|
|
|
NSString *lastFileNameParsed;
|
|
|
|
NSUInteger lastLineNumberParsed;
|
2016-09-29 08:58:57 +00:00
|
|
|
NSMutableArray *breakpoints;
|
2021-07-08 21:43:09 +00:00
|
|
|
id <PCDebuggerWrapperProtocol> debuggerWrapper;
|
2008-12-16 21:31:41 +00:00
|
|
|
}
|
2008-12-28 07:19:45 +00:00
|
|
|
|
2021-07-08 21:43:09 +00:00
|
|
|
- (id <PCDebuggerWrapperProtocol>)debuggerWrapper;
|
2008-12-28 07:19:45 +00:00
|
|
|
- (void) setStatus: (NSString *) status;
|
|
|
|
- (NSString *) status;
|
2016-05-02 22:34:57 +00:00
|
|
|
- (NSString *)executablePath;
|
|
|
|
- (void)setExecutablePath:(NSString *)p;
|
2016-05-03 16:37:37 +00:00
|
|
|
- (void) interrupt;
|
2016-05-03 21:26:31 +00:00
|
|
|
- (int) subProcessId;
|
|
|
|
- (void) setSubProcessId:(int)pid;
|
2021-06-21 23:42:00 +00:00
|
|
|
- (NSDictionary *)lastInfoParsed;
|
|
|
|
- (void)setSetInfoParsed: (NSDictionary *)dict;
|
|
|
|
- (NSString *)lastFileNameParsed;
|
|
|
|
- (void) setLastFileNameParsed: (NSString *)fname;
|
|
|
|
- (NSUInteger)lastLineNumberParsed;
|
|
|
|
- (void)setLastLineNumberParsed: (NSUInteger)num;
|
2021-08-01 21:01:58 +00:00
|
|
|
- (void)updateEditor;
|
2016-05-02 22:34:57 +00:00
|
|
|
|
2008-12-16 21:31:41 +00:00
|
|
|
@end
|