.. | .. |
---|
1718 | 1718 | perf_exe(tpath, sizeof(tpath)); |
---|
1719 | 1719 | |
---|
1720 | 1720 | bfdf = bfd_openr(tpath, NULL); |
---|
1721 | | - assert(bfdf); |
---|
1722 | | - assert(bfd_check_format(bfdf, bfd_object)); |
---|
| 1721 | + if (bfdf == NULL) |
---|
| 1722 | + abort(); |
---|
| 1723 | + |
---|
| 1724 | + if (!bfd_check_format(bfdf, bfd_object)) |
---|
| 1725 | + abort(); |
---|
1723 | 1726 | |
---|
1724 | 1727 | s = open_memstream(&buf, &buf_size); |
---|
1725 | 1728 | if (!s) { |
---|
.. | .. |
---|
1767 | 1770 | #else |
---|
1768 | 1771 | disassemble = disassembler(bfdf); |
---|
1769 | 1772 | #endif |
---|
1770 | | - assert(disassemble); |
---|
| 1773 | + if (disassemble == NULL) |
---|
| 1774 | + abort(); |
---|
1771 | 1775 | |
---|
1772 | 1776 | fflush(s); |
---|
1773 | 1777 | do { |
---|