mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Fix for the getQualifiedName() for GDB fake categories.
This commit is contained in:
parent
7e7e45a917
commit
4e76360ada
1 changed files with 9 additions and 11 deletions
|
@ -189,22 +189,20 @@ public class Variable extends VariableObject implements ICDIVariable {
|
|||
// - public
|
||||
// - y
|
||||
// So we choose to ignore the first set of children
|
||||
// but carry over to those "fake" variable the typename and the qualified name
|
||||
if (isFake()) {
|
||||
qName = "(" + getQualifiedName() + ")." + vars[i].getExp();
|
||||
} else {
|
||||
// So if the child is something like "public", "private" ...
|
||||
// carrry over the parent qualified name and the typename
|
||||
// also flag it as a fake variable.
|
||||
qName = getQualifiedName();
|
||||
childTypename = typename;
|
||||
// but carry over to those "fake" variables the typename and the qualified name
|
||||
if (!isFake()
|
||||
|| (isFake() && !(name.equals("private") || name.equals("public") || name.equals("protected")))) {
|
||||
childFake = true;
|
||||
childTypename = getTypeName();
|
||||
} else {
|
||||
qName = "(" + getQualifiedName() + ")." + vars[i].getExp();
|
||||
}
|
||||
} else {
|
||||
} else { // If not C++ language
|
||||
qName = "(" + getQualifiedName() + ")." + vars[i].getExp();
|
||||
}
|
||||
}
|
||||
Variable v = new Variable(getTarget(), vars[i].getExp(), qName, getStackFrame(), getPosition(), getStackDepth(), vars[i]);
|
||||
Variable v =
|
||||
new Variable(getTarget(), vars[i].getExp(), qName, getStackFrame(), getPosition(), getStackDepth(), vars[i]);
|
||||
if (childTypename != null) {
|
||||
// Hack to reset the typename to a known value
|
||||
v.typename = childTypename;
|
||||
|
|
Loading…
Add table
Reference in a new issue