mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Iin the 'runUntil' method of CTarget check if file name or function name length > 0, otherwise use address.
This commit is contained in:
parent
d6dc6bc8df
commit
0f9429319e
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
2003-01-13 Mikhail Khodjaiants
|
||||
* CTarget.java: in the 'runUntil' method check if file name or function name length > 0, otherwise use address.
|
||||
|
||||
2003-01-10 Alain Magloire
|
||||
|
||||
* src/.../mi/core/cdi/BreakpointManager.java (update): fix subscript
|
||||
|
|
|
@ -486,9 +486,9 @@ public class CTarget implements ICDITarget {
|
|||
MISession mi = session.getMISession();
|
||||
CommandFactory factory = mi.getCommandFactory();
|
||||
String loc = "";
|
||||
if (location.getFile() != null) {
|
||||
if (location.getFile() != null && location.getFile().length() > 0) {
|
||||
loc = location.getFile() + ":" + location.getLineNumber();
|
||||
} else if (location.getFunction() != null) {
|
||||
} else if (location.getFunction() != null && location.getFunction().length() > 0) {
|
||||
loc = location.getFunction();
|
||||
} else if (location.getAddress() != 0) {
|
||||
loc = "*" + location.getAddress();
|
||||
|
|
Loading…
Add table
Reference in a new issue