mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug 126789: Use new "fullname" attribute of stack frame description.
This commit is contained in:
parent
6660f07ea6
commit
30315f76c7
3 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-02-07 Mikhail Khodjaiants
|
||||||
|
Bug 126789: Use new "fullname" attribute of stack frame description.
|
||||||
|
* MIStackListFrames.java
|
||||||
|
* MIFrame.java
|
||||||
|
|
||||||
2006-02-06 Mikhail Khodjaiants
|
2006-02-06 Mikhail Khodjaiants
|
||||||
Suppress "set auto-solib" - returns error on Windows.
|
Suppress "set auto-solib" - returns error on Windows.
|
||||||
* StandardWinCommandFactory.java
|
* StandardWinCommandFactory.java
|
||||||
|
|
|
@ -36,6 +36,10 @@ import org.eclipse.cdt.debug.mi.core.output.MIStackListFramesInfo;
|
||||||
* `FILE'
|
* `FILE'
|
||||||
* File name of the source file where the function lives.
|
* File name of the source file where the function lives.
|
||||||
*
|
*
|
||||||
|
* `FULLNAME'
|
||||||
|
* Absolute file name of the source file where the function lives.
|
||||||
|
* @since gdb 6.4
|
||||||
|
*
|
||||||
* `LINE'
|
* `LINE'
|
||||||
* Line number corresponding to the `$pc'.
|
* Line number corresponding to the `$pc'.
|
||||||
*
|
*
|
||||||
|
|
|
@ -19,6 +19,8 @@ public class MIFrame {
|
||||||
String addr;
|
String addr;
|
||||||
String func = ""; //$NON-NLS-1$
|
String func = ""; //$NON-NLS-1$
|
||||||
String file = ""; //$NON-NLS-1$
|
String file = ""; //$NON-NLS-1$
|
||||||
|
// since gdb 6.4
|
||||||
|
String fullname = ""; //$NON-NLS-1$
|
||||||
int line;
|
int line;
|
||||||
MIArg[] args = new MIArg[0];
|
MIArg[] args = new MIArg[0];
|
||||||
|
|
||||||
|
@ -31,7 +33,12 @@ public class MIFrame {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFile() {
|
public String getFile() {
|
||||||
return file;
|
String fname = getFullname();
|
||||||
|
return ( fname.length() != 0 ) ? fname : file;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFullname() {
|
||||||
|
return fullname;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFunction() {
|
public String getFunction() {
|
||||||
|
@ -108,6 +115,8 @@ public class MIFrame {
|
||||||
}
|
}
|
||||||
} else if (var.equals("file")) { //$NON-NLS-1$
|
} else if (var.equals("file")) { //$NON-NLS-1$
|
||||||
file = str;
|
file = str;
|
||||||
|
} else if (var.equals("fullname")) { //$NON-NLS-1$
|
||||||
|
fullname = str;
|
||||||
} else if (var.equals("line")) { //$NON-NLS-1$
|
} else if (var.equals("line")) { //$NON-NLS-1$
|
||||||
try {
|
try {
|
||||||
line = Integer.parseInt(str.trim());
|
line = Integer.parseInt(str.trim());
|
||||||
|
|
Loading…
Add table
Reference in a new issue