1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Change the catch IOException in addSymbols.

This commit is contained in:
Alain Magloire 2003-01-17 19:20:11 +00:00
parent 01d8396605
commit a98cedbbfc

View file

@ -362,15 +362,18 @@ public class ElfBinaryFile extends PlatformObject implements IBinaryFile,
private void addSymbols(Elf.Symbol[] array, int type) { private void addSymbols(Elf.Symbol[] array, int type) {
for (int i = 0; i < array.length; i++) { for (int i = 0; i < array.length; i++) {
try {
Symbol sym = new Symbol(); Symbol sym = new Symbol();
sym.filename = array[i].getFilename();
sym.name = array[i].toString();
sym.lineno = array[i].getFuncLineNumber();
sym.type = type; sym.type = type;
symbols.add(sym); sym.name = array[i].toString();
try {
// This can fail if we use addr2line
// but we can safely ignore the error.
sym.filename = array[i].getFilename();
sym.lineno = array[i].getFuncLineNumber();
} catch (IOException e) { } catch (IOException e) {
//e.printStackTrace();
} }
symbols.add(sym);
} }
} }