mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 08:01:24 +00:00
differentiate line and method insert commands
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@40147 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
98d05ffe44
commit
db013f327c
1 changed files with 3 additions and 3 deletions
|
@ -663,14 +663,14 @@
|
|||
|
||||
fileName = [bp objectForKey:PCBreakFilename];
|
||||
lineNumber = [bp objectForKey:PCBreakLineNumber];
|
||||
bpString = [NSString stringWithFormat:@"%@:%@", fileName, lineNumber];
|
||||
bpString = [NSString stringWithFormat:@"-break-insert -f %@:%@", fileName, lineNumber];
|
||||
}
|
||||
else if ([bpType isEqualToString:PCBreakTypeMethod])
|
||||
{
|
||||
NSString *methodName;
|
||||
|
||||
methodName = [bp objectForKey:PCBreakMethod];
|
||||
bpString = methodName;
|
||||
bpString = [NSString stringWithFormat:@"-interpreter-exec console \"break %@\"", methodName];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -681,7 +681,7 @@
|
|||
NSString *command;
|
||||
|
||||
/* TODO: split into a separate insert function */
|
||||
command = [NSString stringWithFormat:@"-break-insert -f %@", bpString];
|
||||
command = bpString;
|
||||
NSLog(@"gdb mi command is: %@", command);
|
||||
[self putString: command];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue