From a98cedbbfcd9e30bd98638ed1a7e64d53e6fc747 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Fri, 17 Jan 2003 19:20:11 +0000 Subject: [PATCH] Change the catch IOException in addSymbols. --- .../cdt/internal/core/model/parser/ElfBinaryFile.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java index 74d5a89f6d4..6eb06343dca 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/parser/ElfBinaryFile.java @@ -362,15 +362,18 @@ public class ElfBinaryFile extends PlatformObject implements IBinaryFile, 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); } }