1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 06:55:23 +02:00

Correct expression for the '-break-insert' command.

This commit is contained in:
Mikhail Khodjaiants 2002-08-14 17:12:34 +00:00
parent e9aa009b65
commit 807a391399

View file

@ -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());
}