Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] parsing static libraries

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/ChangeLog,v
retrieving revision 1.54
diff -u -r1.54 ChangeLog
--- ChangeLog	23 Dec 2002 18:55:31 -0000	1.54
+++ ChangeLog	17 Jan 2003 19:18:55 -0000
@@ -1,3 +1,8 @@
+2003-01-17 Alain Magloire
+
+	* mode/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java (addSymbols):
+	The catch IOException was at the wrong place.
+
 2002-12-23 Alain Magloire
 
 	* src/org/eclipse/cdt/internal/core/CBuilder.java (invokeMake):
Index: model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java,v
retrieving revision 1.4
diff -u -r1.4 ElfBinaryFile.java
--- model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java	27 Nov 2002 04:44:46 -0000	1.4
+++ model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java	17 Jan 2003 19:18:56 -0000
@@ -362,15 +362,18 @@
 
 	private void addSymbols(Elf.Symbol[] array, int type) {
 		for (int i = 0; i < array.length; i++) {
+			Symbol sym = new Symbol();
+			sym.type = type;
+			sym.name = array[i].toString();
 			try {
-				Symbol sym = new Symbol();
+				// This can fail if we use addr2line
+				// but we can safely ignore the error.
 				sym.filename = array[i].getFilename();
-				sym.name = array[i].toString();
 				sym.lineno = array[i].getFuncLineNumber();
-				sym.type = type;
-				symbols.add(sym);
 			} catch (IOException e) {
+				//e.printStackTrace();
 			}
+			symbols.add(sym);
 		}
 	}
 



Back to the top