mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +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
|
||||
Suppress "set auto-solib" - returns error on Windows.
|
||||
* StandardWinCommandFactory.java
|
||||
|
|
|
@ -36,6 +36,10 @@ import org.eclipse.cdt.debug.mi.core.output.MIStackListFramesInfo;
|
|||
* `FILE'
|
||||
* 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 number corresponding to the `$pc'.
|
||||
*
|
||||
|
|
|
@ -19,6 +19,8 @@ public class MIFrame {
|
|||
String addr;
|
||||
String func = ""; //$NON-NLS-1$
|
||||
String file = ""; //$NON-NLS-1$
|
||||
// since gdb 6.4
|
||||
String fullname = ""; //$NON-NLS-1$
|
||||
int line;
|
||||
MIArg[] args = new MIArg[0];
|
||||
|
||||
|
@ -31,7 +33,12 @@ public class MIFrame {
|
|||
}
|
||||
|
||||
public String getFile() {
|
||||
return file;
|
||||
String fname = getFullname();
|
||||
return ( fname.length() != 0 ) ? fname : file;
|
||||
}
|
||||
|
||||
public String getFullname() {
|
||||
return fullname;
|
||||
}
|
||||
|
||||
public String getFunction() {
|
||||
|
@ -108,6 +115,8 @@ public class MIFrame {
|
|||
}
|
||||
} else if (var.equals("file")) { //$NON-NLS-1$
|
||||
file = str;
|
||||
} else if (var.equals("fullname")) { //$NON-NLS-1$
|
||||
fullname = str;
|
||||
} else if (var.equals("line")) { //$NON-NLS-1$
|
||||
try {
|
||||
line = Integer.parseInt(str.trim());
|
||||
|
|
Loading…
Add table
Reference in a new issue