[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] 1_0_1 BinaryInfo fix
|
Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/ChangeLog,v
retrieving revision 1.54.2.3
diff -u -r1.54.2.3 ChangeLog
--- ChangeLog 12 Mar 2003 21:16:15 -0000 1.54.2.3
+++ ChangeLog 12 Mar 2003 21:20:56 -0000
@@ -1,5 +1,12 @@
2003-03-12 Alain Magloire
+ Patch from Chris Songer
+
+ * model/org/eclipse/cdt/internal/core/model/BinaryInfo.java:
+ set the line information on the IVariable and IFunction in BinaryInfo.
+
+2003-03-12 Alain Magloire
+
* utils/org/eclipse/cdt/utils/elf/Elf.java (Symbol.lineInfo):
The address value may not align with the debug information, for example when
adding Profiling etc .. we try to get the nearest symbol as a fallback.
Index: model/org/eclipse/cdt/internal/core/model/BinaryInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryInfo.java,v
retrieving revision 1.5
diff -u -r1.5 BinaryInfo.java
--- model/org/eclipse/cdt/internal/core/model/BinaryInfo.java 27 Nov 2002 04:45:01 -0000 1.5
+++ model/org/eclipse/cdt/internal/core/model/BinaryInfo.java 12 Mar 2003 21:20:56 -0000
@@ -204,6 +204,7 @@
addChild(tu);
}
function = new Function(tu, symbol.getName());
+ function.setLines(symbol.getLineNumber(), symbol.getLineNumber());
tu.addChild(function);
} else {
function = new Function(parent, symbol.getName());
@@ -232,6 +233,7 @@
addChild(tu);
}
variable = new Variable(tu, symbol.getName());
+ variable.setLines(symbol.getLineNumber(), symbol.getLineNumber());
tu.addChild(variable);
} else {
variable = new Variable(parent, symbol.getName());