Commit graph

99 commits

Author SHA1 Message Date
pancake
8c55285b5d Fix #1682 - Fix ELF null deref regression with rabin2 -c 2014-11-16 12:05:49 +01:00
Fedor Sakharov
3c7dbb4ac6 Check return value of r_buf_read_at in DWARF parser 2014-11-10 01:58:38 +01:00
pancake
842b8db4f3 Fix more crashes in DWARF and ELF 2014-11-05 17:15:22 +01:00
pancake
3d3c5a3a14 Fix a fancy crash in the ELF parser 2014-11-05 04:20:35 +01:00
pancake
f492ba59a2 Fix infinite loop in dwarf parser 2014-11-05 02:51:05 +01:00
pancake
f6440fc526 Fix several crashes in dalvik. Thanks nightmare! 2014-11-05 00:15:40 +01:00
pancake
586e752da9 Avoid noisy DWARF4 debug printf 2014-10-19 12:43:27 +02:00
pancake
d2ab437af4 Fix #1459 - rabin2 -g crash 2014-09-30 12:12:34 +02:00
Fedor Sakharov
5d0d9253c4 dwarf: Remove error messages for filenum==0.
Specification states that filenum==0 in case
file was not found in the current compilation
directory.
2014-09-11 15:59:35 +02:00
pancake
5526a7f5d9 Fix #1271 2014-08-31 23:16:06 +02:00
pancake
0f2b601c5b Fix some of the #1271 valgrind issues. 2014-08-31 19:00:40 +02:00
Fedor Sakharov
1a3a7cdfaa Fix adding dwarf addrline info into sdb 2014-08-08 15:18:00 +02:00
pancake
3a88c7e668 Fix crash in dwarf parser and update sdb to fix a crash 2014-07-21 14:47:09 +02:00
pancake
b1d897d4e5 Some dwarf fixes 2014-06-11 00:13:28 +02:00
Fedor Sakharov
bb2fa60a07 dwarf: Make rabin2 -d dump dwarf info.
The format is similar to objdump -g.

Fixes #958
2014-05-29 18:31:24 +04:00
Fedor Sakharov
92e32f6563 dwarf: Remove the garbish printf. 2014-05-26 00:18:19 +04:00
pancake
a1224b2156 Refactor rva > vaddr and offset > paddr.
That change may make mixing vaddr and paddr more visible
2014-05-21 03:18:00 +02:00
pancake
ac3840498d Do not set OBJECTs as data to avoid random issues, fix some dwarf issues 2014-05-18 01:26:13 +02:00
Fedor Sakharov
1f9d8be632 dwarf: Fix dwarf source search. 2014-05-06 16:44:01 +02:00
Fedor Sakharov
d6289ba72c dwarf: Fix lineinfo parsing 2014-05-05 10:46:55 +04:00
Fedor Sakharov
99f8ab6b81 Cherry-pick cmd_meta refactoring for CL
- Adds CL* and CL-* commands
- Fix invalid free
- dwarf: Use | as file line delimeter in addrinfo sdb
- Move CL to separate function and use info from sdb
- Move filter_line to a separate function
2014-05-05 01:03:05 +02:00
pancake
6d0005213a Fix build 2014-05-05 00:56:48 +02:00
Fedor Sakharov
d7c80a9a64 Fix CID 1208752 2014-05-05 00:35:04 +02:00
Fedor Sakharov
fc4ba55ff6 Fix CID 1208753 2014-05-05 00:35:04 +02:00
Fedor Sakharov
83f24e71a4 dwarf: Fix dso's fixes 2014-04-30 07:43:31 -05:00
Fedor Sakharov
9ce5c5d064 dwarf: Fix #833 2014-04-30 07:43:31 -05:00
deeso
5f6f8064d9 Fixed some issues in bin/dwarf.c and Fixed 1205194, 1205193, 1205192, 1205202, 1205203, 1205204, 1205205, 1205209, 1205208, 1205207, 1205206 2014-04-25 15:14:57 -05:00
Fedor Sakharov
3ea8820b76 dwarf: Store DW_AT_comp_dir var in sdb_addrinfo.
This variable points to the default directory to be
searched for source files of the binary. This is used
by linenumber information but is stored in debug_info section.
debug_info by default is DWARF4(which is currently not supported)
and debug_lines is by default DWARF2 so for now if using DWARF4
in your binaries you would have to set this var by hand.
2014-04-24 11:49:19 +02:00
pancake
836803d786 Sdbize RBin.list_archs(). Expose addrinfo in 'k bin/fd.#/addrinfo/*' 2014-04-23 03:57:13 +02:00
Fedor Sakharov
6c5505b39d Use sdb to store dwarf lineaddr info 2014-04-21 19:22:37 +04:00
pancake
7c8daf1e70 Refactoring RBinMeta into RBinDbgInfo 2014-03-10 02:27:32 +01:00
pancake
25809a0887 Fix some warnings and indentations 2014-02-20 03:08:12 +01:00
pancake
a39dc8c7e8 Make dwarf work again with some minor tweaks 2014-02-11 03:50:57 +01:00
pancake
acc89d63e6 Use even more ut* types 2014-02-10 16:56:10 +01:00
pancake
c02f419237 Use ut* types in dwarf.c 2014-02-10 16:21:18 +01:00
Fedor Sakharov
04f346b506 dwarf: Fix some coverity issues. 2014-02-10 10:22:05 +04:00
pancake
1f6ee6d546 Fix #608 - Vv endless read #608 2014-02-08 12:09:12 +01:00
Fedor Sakharov
18d7167f63 dwarf: Implement it. 2014-02-08 14:08:07 +04:00
Adam Pridgen
db1bb1a089 Changed the location of RBinObject, and created RBinFile to conform similarly to
RCoreFile, where RBinFile contains meta information for RBinObjects.  Now
RBinFiles are swapped out along with the RCoreFile when the priority is changed.
2014-01-20 02:44:25 +01:00
pancake
cdea34616d Fix some warnings 2013-06-09 02:55:03 +02:00
pancake
77dc9bc471 Fix overflow in r_bin_dwarf 2012-09-12 18:56:11 +02:00
pancake
5aa93db5a4 Better command parsing and minor dwarf info
Dwarf info with null filenames are now supported
Fix quoted commnads parser
Quoted strings can now be temporary seeked "x"@239
Fix semicolon separated list of commands
Fix and use the base64 encoder/decoder
Siplify the config.c
Fix r_str_replace
2012-08-19 03:28:17 +02:00
pancake
d6bdf4a723 Fix segfault on dwarf parser (Thanks @earada) 2012-08-17 14:02:31 +02:00
pancake
52beedb22a Fix build 2012-08-15 01:32:02 +02:00
pancake
e6e1490fe6 Add support for Java debug line information
Workaround Java CLASS parser bug
Still work-in-progress for full debug line support
$ rabin2 -dr foo.class
2012-08-14 18:22:24 +02:00
pancake
ef8f41eafb Initial integartion of r_bin_dwarf into RCore 2012-08-14 02:37:42 +02:00
pancake
9362041562 Huge RBin refactoring and fix mach0 section perms 2012-08-04 23:48:06 +02:00
pancake
c814a9f67a Initial implementation of dwarf debug_line parser
rabin2 -d a.out
2012-07-12 02:47:04 +02:00
pancake
fdb25ffa03 * initial import of dummy dwarf support
* handle eval cuando escribes una y otra vez
* add support for [bracket] comma-separated list for controversial
  - add api to push-back states
* Added uleb128 api in r_util
2012-06-28 01:27:40 +02:00