diff --git a/ChangeLog b/ChangeLog index b66ce27..8bc28a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2021-06-22 Riccardo Mottola + + * 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 * Modules/Editors/ProjectCenter/PCEditor.h diff --git a/Modules/Debuggers/ProjectCenter/PCDebugger.h b/Modules/Debuggers/ProjectCenter/PCDebugger.h index 0cdbe1a..ef01297 100644 --- a/Modules/Debuggers/ProjectCenter/PCDebugger.h +++ b/Modules/Debuggers/ProjectCenter/PCDebugger.h @@ -1,9 +1,10 @@ /* ** PCDebugger ** -** Copyright (c) 2008-2016 +** Copyright (c) 2008-2021 ** ** Author: Gregory Casamento +** Riccardo Mottola ** ** 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 diff --git a/Modules/Debuggers/ProjectCenter/PCDebugger.m b/Modules/Debuggers/ProjectCenter/PCDebugger.m index 9618d85..8ffc29b 100644 --- a/Modules/Debuggers/ProjectCenter/PCDebugger.m +++ b/Modules/Debuggers/ProjectCenter/PCDebugger.m @@ -1,7 +1,7 @@ /* ** PCDebugger.m ** -** Copyright (c) 2008-2020 +** Copyright (c) 2008-2021 ** ** Author: Gregory Casamento ** Riccardo Mottola > @@ -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 {