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:
parent
01d8396605
commit
a98cedbbfc
1 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue