* Get .debug_info working for DWARF 2, 3
* Fill up missing information in abbrev string table
* Add 64bit dwarf option into debug_info
* Add DWARF4 and DWARF5 forms
* Add unit tests
* added basic test
Co-authored-by: Riccardo Schirone <sirmy15@gmail.com>
* Moved dwarf prototypes to its header, added information for DWARF4
* Fixed incorrect line parsing for last compilation unit
* Added ability to parse DWARF4 and DWARF5 but without parsing out the source files
- support up to v4
- ensure all v4 line number program header fields are parsed
- remove wrong assumptions about the content of included directories
- ensure unit length calculation is correct
- ensure all leb128 / uleb128 have boundary checking
* introduce r_bin_open_buf
* fix r_bin_file_delete to use bf->id and not fd. This was used
inconsistently and the function was just wrong.
* rewrite r_bin_reload to just reuse the existing bf->buf
* fix some memory leaks
* Removed unnecessary variable from libr/core/disasm.c
* Removed not necessary assignment in libr/core/casm.c
* Removed not used assignment in libr/bin/dwarf.c
* Rem. duplicate declaration and not used values
* Fixed potential memory leak in java/class.c
* Fixed potential memory leak in ragg2
* Removed unnecessary variable in visual.c
* Another potential memory leak in class.c
* Removed not used value assignment
* Fixed memory leak in dwarf.c
* Removed not needed assignments
* Remove more not used assignments
* Refactored where bin_sections gets arch & bits for clarity
* Removed more assignments that are not used
* Rem. more unused assignments
* Surround assignment with paranthesis
The use of memset to set the rest of the newly realloc'd buffer in
various r_bin_dwarf_expand_* functions was overwriting portions of
the buffer that had previously been written to.
The functions including said error were the following:
- r_bin_dwarf_expand_die
- r_bin_dwarf_expand_cu
- r_bin_dwarf_expand_abbrev_decl
- r_bin_dwarf_expand_debug_abbrev
PR #11888
* bin: no need for 2 r_bin_load_io APIs
* bin: remove io-related unused functions
* r_bin.h: remove some old comments
* r_bin.h: group together related APIs
* extract print/set modes in r_types, to remove dups in r_bin and r_core
* clang-format-diff: fix ternary operator indent for pancake
* anal_x86: keep same syntax and POP value out of esil stack in push sp
NOTE: The other syntax was causing issues in afta, not sure why
* Revert "Further mem leak fixes (#11398)"
This reverts commit 38d9170f5d.
* anal_x86_cs: just use one expression for the PUSH x86 operation
* libr/core/cmd: set core_sysenv only when calling external scripts