mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
Correct expression for the '-break-insert' command.
This commit is contained in:
parent
e9aa009b65
commit
807a391399
1 changed files with 4 additions and 2 deletions
|
@ -162,13 +162,15 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa
|
|||
}
|
||||
|
||||
if (location != null) {
|
||||
if (location.getFile() != null) {
|
||||
if (location.getFile() != null && location.getFile().length() > 0) {
|
||||
line = location.getFile() + ":";
|
||||
if (location.getFunction() != null) {
|
||||
if (location.getFunction() != null && location.getFunction().length() > 0) {
|
||||
line += location.getFunction();
|
||||
} else {
|
||||
line += Integer.toString(location.getLineNumber());
|
||||
}
|
||||
} else if (location.getFunction() != null && location.getFunction().length() > 0) {
|
||||
line = location.getFunction();
|
||||
} else {
|
||||
line = "*" + Long.toString(location.getAddress());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue