1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 01:35:39 +02:00

2005-07-10 Alain Magloire

Fix for PR 100992: Setting breakpoints for methods
	* cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
This commit is contained in:
Alain Magloire 2005-07-11 20:45:45 +00:00
parent b305b10095
commit ef2c62d0bf
2 changed files with 36 additions and 20 deletions

View file

@ -1,3 +1,7 @@
2005-07-10 Alain Magloire
Fix for PR 100992: Setting breakpoints for methods
* cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
2005-07-07 Alain Magloire
Try to suspend the target before disconnecting.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java

View file

@ -929,10 +929,16 @@ public class BreakpointManager extends Manager {
}
line.append(no);
} else if (bkpt instanceof FunctionBreakpoint) {
if (function != null && function.length() > 0) {
// if the function contains :: assume the user
// knows the exact funciton
int colon = function.indexOf("::"); //$NON-NLS-1$
if (colon != -1) {
line.append(function);
} else {
if (file != null && file.length() > 0) {
line.append(file).append(':');
}
if (function != null && function.length() > 0) {
// GDB does not seem to accept function arguments when
// we use file name:
// (gdb) break file.c:Test(int)
@ -951,10 +957,16 @@ public class BreakpointManager extends Manager {
} else {
line.append(function);
}
}
} else {
// ???
if (file != null && file.length() > 0) {
line.append(file).append(':');
}
if (no > 0) {
line.append(no);
}
}
} else if (bkpt instanceof AddressBreakpoint) {
line.append('*').append(locator.getAddress());
} else {