[RFC] fixing addr2line inline info

2014-11-18 Thread Josh Stone
Hi, I have a simple patch attached to improve the output addr2line -fi. The problem I had is it failed to identify the parent function name if there was any lexical_block in the scope hierarchy. For example, try the following, compiled as the attached testfile-lex-inlines.bz2: 1 // g++ x.cpp

[COMMITTED] libdwfl: Sanity check the symbol table before use.

2014-11-18 Thread Mark Wielaard
Make sure the number of symbols reported and the first global fit the data. Signed-off-by: Mark Wielaard --- libdwfl/ChangeLog | 5 + libdwfl/dwfl_module_getdwarf.c | 25 +++-- src/ChangeLog | 5 + 3 files changed, 29 insertions(+), 6 d

[COMMITTED] readelf: Fix sanity check of DW_FORM_block length in print_cfa_program

2014-11-18 Thread Mark Wielaard
We were checking the reg nr, not the length of the block. Signed-off-by: Mark Wielaard --- src/readelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readelf.c b/src/readelf.c index c14bfb6..08de798 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -5025,7 +5025,7 @@ p

[COMMITTED] libelf: Check for overflow in version_xlate elf_cvt_Verdef and elf_cvt_Verneed.

2014-11-18 Thread Mark Wielaard
Signed-off-by: Mark Wielaard --- libelf/ChangeLog | 5 + libelf/version_xlate.h | 8 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 9ae24a9..c7e8d30 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,8 @@ +2