mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 16:12:17 +00:00
parse file and line in case of a gdb breakpoint stop
This commit is contained in:
parent
0375286dcf
commit
08c40f31f3
1 changed files with 20 additions and 0 deletions
|
@ -263,6 +263,26 @@
|
|||
{
|
||||
[debugger setSubProcessId: [value intValue]];
|
||||
}
|
||||
else if ([key isEqualToString:@"bkpt"])
|
||||
{
|
||||
// gdb specific
|
||||
NSString *fileName;
|
||||
NSString *lineNum;
|
||||
|
||||
fileName = [value objectForKey:@"file"];
|
||||
lineNum = [value objectForKey:@"line"];
|
||||
NSLog(@"parsed from GDB bkpt: %@:%@", fileName, lineNum);
|
||||
if (fileName != nil && lineNum != nil)
|
||||
{
|
||||
[debugger setLastFileNameParsed: fileName];
|
||||
[debugger setLastLineNumberParsed: [lineNum intValue]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[debugger setLastFileNameParsed: nil];
|
||||
[debugger setLastLineNumberParsed: NSNotFound];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return PCDBAsyncInfoRecord;
|
||||
|
|
Loading…
Reference in a new issue