[COMMITTED] readelf: Fix advance_pc to use op_addr_advance, not just op_advance.

2018-04-16 Thread Mark Wielaard
Found by John Mellor-Crummey. The reason this bug wasn't found earlier is because gcc fixes minimum_instr_len and max_ops_per_instr to 1 for all architectures (in theory max_ops_per_instr could be overridden, but I didn't find any architecture that does). And op_index always seems zero (it looks l

[COMMITTED] tests: Test readelf --debug-dump=[decoded]line with min_inst_len > 1.

2018-04-16 Thread Mark Wielaard
This testcase tests the fix for the readelf --debug-dump=line bug fixed in commit 40b1f18 "readelf: Fix advance_pc to use op_addr_advance, not just op_advance." This tests both the --debug-dump=line (readelf) implementation and the --debug-dump=decodedline (libdw) implementation. The first fails w