mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
Accessor methods for specific debugger information as wellas filename and line.
This commit is contained in:
parent
6ab80ec17d
commit
17b6359ba9
3 changed files with 49 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2021-06-22 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.h
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m
|
||||
Accessor methods for specific debugger information as wellas filename and line.
|
||||
|
||||
2021-02-19 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Editors/ProjectCenter/PCEditor.h
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
/*
|
||||
** PCDebugger
|
||||
**
|
||||
** Copyright (c) 2008-2016
|
||||
** Copyright (c) 2008-2021
|
||||
**
|
||||
** Author: Gregory Casamento <greg_casamento@yahoo.com>
|
||||
** Riccardo Mottola <rm@gnu.org>
|
||||
**
|
||||
** 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
|
||||
|
@ -45,6 +46,9 @@ extern NSString *PCDBDebuggerStartedNotification;
|
|||
NSString *debuggerPath;
|
||||
int subProcessId;
|
||||
float gdbVersion;
|
||||
NSDictionary *lastInfoParsed;
|
||||
NSString *lastFileNameParsed;
|
||||
NSUInteger lastLineNumberParsed;
|
||||
NSMutableArray *breakpoints;
|
||||
}
|
||||
|
||||
|
@ -57,5 +61,11 @@ extern NSString *PCDBDebuggerStartedNotification;
|
|||
- (void) setSubProcessId:(int)pid;
|
||||
- (float) gdbVersion;
|
||||
- (void) setGdbVersion:(float)ver;
|
||||
- (NSDictionary *)lastInfoParsed;
|
||||
- (void)setSetInfoParsed: (NSDictionary *)dict;
|
||||
- (NSString *)lastFileNameParsed;
|
||||
- (void) setLastFileNameParsed: (NSString *)fname;
|
||||
- (NSUInteger)lastLineNumberParsed;
|
||||
- (void)setLastLineNumberParsed: (NSUInteger)num;
|
||||
|
||||
@end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
** PCDebugger.m
|
||||
**
|
||||
** Copyright (c) 2008-2020
|
||||
** Copyright (c) 2008-2021
|
||||
**
|
||||
** Author: Gregory Casamento <greg.casamento@gmail.com>
|
||||
** Riccardo Mottola <rm@gnu.org>>
|
||||
|
@ -187,7 +187,7 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
|
|||
{
|
||||
[debuggerView runProgram: debuggerPath
|
||||
inCurrentDirectory: [executablePath stringByDeletingLastPathComponent]
|
||||
withArguments: [[NSArray alloc] initWithObjects: @"--interpreter=mi", @"-f", executablePath, nil]
|
||||
withArguments: [[NSArray alloc] initWithObjects: @"--interpreter=mi", @"-f", executablePath, nil] // gdb dependent - should be generalized
|
||||
logStandardError: YES];
|
||||
|
||||
}
|
||||
|
@ -287,6 +287,36 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
|
|||
gdbVersion = ver;
|
||||
}
|
||||
|
||||
- (NSDictionary *)lastInfoParsed
|
||||
{
|
||||
return lastInfoParsed;
|
||||
}
|
||||
|
||||
- (void)setSetInfoParsed: (NSDictionary *)dict
|
||||
{
|
||||
lastInfoParsed = dict;
|
||||
}
|
||||
|
||||
- (NSString *)lastFileNameParsed
|
||||
{
|
||||
return lastFileNameParsed;
|
||||
}
|
||||
|
||||
- (void) setLastFileNameParsed: (NSString *)fname
|
||||
{
|
||||
lastFileNameParsed = fname;
|
||||
}
|
||||
|
||||
- (NSUInteger)lastLineNumberParsed
|
||||
{
|
||||
return lastLineNumberParsed;
|
||||
}
|
||||
|
||||
- (void)setLastLineNumberParsed: (NSUInteger)num
|
||||
{
|
||||
lastLineNumberParsed = num;
|
||||
}
|
||||
|
||||
// kill process
|
||||
- (void) interrupt
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue