1254 Commits

Author SHA1 Message Date
Khairul Kasmiran
2faadf6d86 r_cons_singleton() 🠊 r_cons_singleton () 2018-05-02 21:36:08 +08:00
pancake
99e45f6f54 Fix last covs 2018-05-02 14:49:57 +02:00
Khairul Azhar Kasmiran
019ac17bae dbg.btalgo=trace: trace calls for backtrace (#9980) 2018-04-29 11:42:55 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
pancake
d48f6453bc Fix regprofile for linux arm64 2018-04-21 19:46:04 +02:00
pancake
a3b024d869 Fix oobread with asan in dm 2018-04-16 09:51:18 +02:00
Khairul Azhar Kasmiran
006d1197a9 fuzzy bt x86: consider indirect call through reg as call (#9888) 2018-04-15 09:53:15 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
Paul I
6ae080d348 Fix msvc warning for r_debug (#9824) 2018-04-07 13:39:46 +02:00
pancake
9c1f5e0409 Fix mips64 debugger regprofiles 2018-04-04 16:40:46 +02:00
sivaramaaa
17061a7b61 Fix #8198, Avoid restoring and replaying session twice in every step back command (#9794) 2018-04-04 12:57:46 +02:00
plsph
f3b221bca6 Fix drx output hw breakpoint length (#9779) 2018-03-29 13:22:34 +02:00
Andrew D'Addesio
2243da3095 Fix comma logic in dmj (#9773)
Can't rely on iter->n since we are iterating over multiple lists.
2018-03-28 12:22:59 +08:00
Andrew D'Addesio
405c67d770 dm/dmm code cleanup and fix dmj json output (#9769)
* Always escape filename/path when printing json. (Fixes dmj output
  on Windows.)
* Always wrap path in quotes when printing r2 commands (even on
  non-Windows).
* Assume memory pages belonging to modules always have map->path and
  map->name set (i.e. remove redundant NULL comparisons).
* Assume memory pages _in general_ do not (per commit a1e24700e3c90182).
* In dm command, compare flag name against r_name_filter(map->name).
* Fix dm output for user maps.
2018-03-27 16:32:39 +02:00
pancake
da40ceb868 Fix null deref reported on windbg:// 2018-03-27 13:38:28 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
Oscar Salvador
de366b1d29 Enhancement of ar= command (#9748) 2018-03-22 17:32:57 +01:00
Anton Kochkov
2ca6ad153d Fix warning 2018-03-19 16:04:37 +08:00
Florian Märkl
93d9f4ec66 Add mask parameter to r_anal_op() 2018-03-16 11:10:15 +01:00
redmed666
24e076e19e Fix #9595 (#9673)
* Added an address mask inside the RAnalEsil struct in order to be sure that the address accessed is relevant with the asm.bits of the file + Changed the calls to r_anal_esil_new

* Corrected the addrmask in r_anal_esil_new

* RTTI: Read MSVC Complete Object Locator

* RTTI: Read MSVC Class Hierarchy Descriptor

* VTable End on Reference

* RTTI: Read MSVC Type Descriptor

* RTTI: Read MSVC Base Class Array, Better Printing

* Add anal.cpp.abi

* Minor Code Style Changes in RTTI

* Fix rahash2 entropy to show non truncated double (#9629)

* Anal - whitespace fixes

* Honor CFLAGS on the static build test compilation (#9677)

* change coding style tab width to 4 (#9670)

* Meson: use more built-in options (#9678)

* Add support for extended regex in asm search (#9675)

* Fix #9665 - Backwardly handle scr.color={bool}

* Fix #9676 - Infinite loop in ecs with scr.color=2

* Adding help for redirection (#9679)

* Refactores function r_str_split_list to receive the character to split by (#9672)

* Fix #9666 - lines with comments do not use Unicode reflines

* Fix uninitialized optypes_list issue in cmd_debug

* update asan.sh to actually take the env for ASAN

* removed incorrect return (#9685)

* Fix UB in ESIL

* Initial import of the CoreUndo API and uc command

* Initial implementation of cmd.pdc to select pseudo-decompiler

* Handle recursive pdc calls

* Fix RPrint.strconv_mode memleak

* Fix leaks in RSyscall.srdb

* Use r_syscall_ref to avoid dblfree-or-leak issue

* Arm thumb/thumb selector for the armass (#9681)

* added function to translate number to imm12
* added function to get thumb shifts easily
* added selector, newfangled implementation of adc
* add bitmask for command suffixes
* added new routine for parsing suffixes to opcodes. Error check added in getnum. Bugfixes.

* Few improvements to 8051 memory mapping (#9686)

* update memory map when idata/sfr/xdata regs change
* set address space name on map
* fix regression, remove debug output
* fix regression, enable map name

* Some fixups for #9682 (#9688)

* Fix: coredump generation for huge programs (#9680)

* Refix #9666 - lines with comments do not use Unicode reflines

* Removed code unnecessary due to dcf3db025085c45124ec21890550a4ef19bd015c

* Fixed free const warning

* Fix another memleak in RSyscall

* Fix more memleaks

* Fix leak in RConsPal.rainbow

* Fix 18K leak in anal.x86.cs

* Fix some more memleaks in disasm and fix issue in str overlap

* Fix memleak in RCore.anal_refs and fix regression

* Revert "Fix some more memleaks in disasm and fix issue in str overlap"

This reverts commit a902df837b0d499e1723179ed5c957c078703b51.

* Fix memleak regressions

* Bring back another memleak fix

* Fix an undefined behaviour in RParse.filter

* Fix memleaks in disasm.c

* Add cundo.c to Meson (#9694)

* Bring back an ugly buffer pack access issue to make it work

* Cast to void * in R_FREE (#9692)

* Set anal.cpp.abi to msvc for pe

* Add better help for av

* Split avr into avr and avra

* Make av, avr and avra breakable

* Add RTTI struct specific print functions

* RTTI: Support MSVC x86_64

* PE: Fix too short section name.

* PDB: define a constant to store the max length of a section name and use id.

* PDB: dump the size of structure and union in JSON mode.

* Fix cast issue in eprintf for debug.core.linux

* Move the asm and anal plugins for x86.udis to extras

Available via r2pm -ci udis86

* Remove more udis86 references

* Fix warnings

* fix pcache ptr-fuckup

* Fix defragger theme

* Fix crash in asl and fix its behaviour

* Fix memory leak in blaze anal and silent a warning

* Implement ?q to be like ?v but in quiet mode

* Fix Meson build

* Add missing 8, 16, 32 bit registers (and flags) for the linux-arm64 debugger reg profile

* Fix 'Cannot find function at UT64_MAX message'

* Add some Pingu to fortunes.fun

* Loading Core (x86, x86_64, aarch64) (#9669)

* Ragg2-cc -> Ragg2 merge (#9658)

- change of 'access' function for 'r_file_exists' for windows portability
- several changes in the way ragg2.c is done, see PR #9658 pancake comments
- change function for the remove of 'file'.text
- open changed for r_file_dump
- some elt of cEnv_t are now const
- skip all the pointers verification in set_cEnv but do them in check_cEnv instead
- add 2 r_str_sanitize for file and CC in parseCFile
- rewrite the removal of .o, .tmp, .bin, .s files, with cleaner code
- changed the long command with sed and grep to 2 C functions.
  - The function parseCompiled that basically does what the command was doing
  - And r_str_stripLines that is equivalent to "grep -v" (maybe we should put this one in str.c ?)
- simplify a bit getCompiler function with a const char* array
- add ternary operator for armOrMips condition
- use r_file_path for finding path to compilers
- new file created in libr/egg which contains all the C file parser
- modifications of 2 files to match the change :
  - libr/egg/r_egg.h
  - libr/egg/Makefile
- the function r_str_stripLine is simplier (the mallocs wasn't needed)
- the function r_str_stripLine is moved to libr/util/str.c
- libr/include/r_util/r_str.h is changed accordingly

* Revert bd3465c9a3fbeddf83980dc07eaac588320f7d (warning remains fixed)

This reverts commit titled "Fixed free const warning".

* Added an address mask inside the RAnalEsil struct in order to be sure that the address accessed is relevant with the asm.bits of the file + Changed the calls to r_anal_esil_new

* Corrected the addrmask in r_anal_esil_new

* Cleanup expressions in esil.c (addr &=...)

* Corrected r_anal_esil_new definition in r_anal.h

* Added an address size max in the ESIL config (maximum address size reachable by the ESIL VM)
2018-03-16 10:45:17 +01:00
pancake
0cc69579ea Add missing 8, 16, 32 bit registers (and flags) for the linux-arm64 debugger reg profile 2018-03-15 10:16:34 +01:00
pancake
95bf50349c Fix cast issue in eprintf for debug.core.linux 2018-03-14 21:16:58 +01:00
Oscar Salvador
b4f1124a88 Fix: coredump generation for huge programs (#9680) 2018-03-14 13:08:17 +01:00
pancake
9c4dc3b3c7 Fix leaks in RSyscall.srdb 2018-03-14 12:41:39 +01:00
Anton Kochkov
f30df2c19d Add print format for size_t, fix warns 2018-03-12 19:01:54 +08:00
Oscar Salvador
61765c3e15 Fix coredump generation (#9605) 2018-03-06 13:54:25 +01:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
pancake
e1bc01d912 Fix conditional around r_debug_kill 2018-02-27 18:40:15 +01:00
pancake
d83d64faa3 Fix #9287 - mkstemp != r_file_temp 2018-02-24 00:55:54 +01:00
Giovanni
0c776c0e71 warnings from lib (#9445) 2018-02-20 23:19:35 +01:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
Fangrui Song
320a2d5a58 Add FUNC_ATTR_USED and fix some warnings (#9413) 2018-02-17 20:19:33 -06:00
pancake
f1be2a2af3 Fix more crashes related to reopen gdb:// 2018-02-18 03:18:30 +01:00
pancake
eef94066a0 Fix some crashes for 9410 2018-02-18 03:08:17 +01:00
pancake
4e44e8e18e Fix compilation warnings on Linux 2018-02-09 18:45:54 +01:00
pancake
39d208af9a Remove unnecessary TODO printf in debug.esil 2018-01-28 00:17:12 +01:00
pancake
8e5c4164ab Initial blind implementation of hwbp for native Linux ARM and ARM64
- Pretty incomplete, but builds and should work(R) sometimes.
2018-01-24 00:55:44 +01:00
pancake
303820dbac Initial purge of R2_PREFIX towards dir.prefix 2018-01-16 11:13:21 +01:00
whitequark
c816dc7e66 Don't try to build shared libraries if configured as --without-pic.
Specifically, avoid building all plugins as non-static objects,
as well as some supplementary libraries. In fact, a large amount
of plugins was already gated to build as shared objects only with
WITHPIC=1, but this was not done consistently.
This gating has been moved to */p/Makefile.

Building these shared objects is a waste of time and breaks
the --without-pic build unless CFLAGS is forced in the make
invocation.
2018-01-11 23:09:22 +01:00
Giovanni
eb5200743e Removed debug eprintf from gdb code 2018-01-09 18:40:22 +01:00
pancake
e43107d1ca r_str_chop_ro, r_str_trim_const -> r_str_trim_ro 2018-01-08 03:29:29 +01:00
pancake
335938be58 r_str_chop -> r_str_trim 2018-01-08 03:22:26 +01:00
Khairul Kasmiran
9484bdb622 Fixed r_debug_native_reg_profile const qualifier warning 2017-12-31 20:59:52 +08:00
Anton Kochkov
e0f3238316
Enable MSVC gdb build (#9087)
* Enable MSVC gdb build
* Link with GDB
* Link with r_socket for gdb
2017-12-29 14:58:35 +08:00
Ziyaddin Sadigov
d4dd6fd5e6 Fix typo regarding byte size (#9067) 2017-12-27 18:33:58 +01:00
pancake
1d4cfea5cb Damn missing line 2017-12-20 19:23:09 +01:00
pancake
0c2eda71f8 Fix warning reported by gcc7 in wasm.c 2017-12-20 18:58:40 +01:00