Commit Graph

233 Commits

Author SHA1 Message Date
yossizap
e35f447a2a Added break to gdbserver vCont and refactored the code to use locks (#15433)
The previous gdbr implementation didn't allow interrupting background
tasks with &b since send_vcon wasn't properly configured with the cons
api. In addition to that, gdbserver doesn't support processing multiple
commands at the same time, resulting in undefined behavior once cons
were set up for vcont.
This commit adds the relevant cons api and solves the concurrency issues
by adding locks on all socket related logic.
2019-11-10 19:03:56 +01:00
GustavoLCR
2bad46e266 Fix build (#15422) 2019-11-06 16:25:43 +01:00
Paul I
0891c6966a Update meson.build (#15099) 2019-09-22 20:36:32 +08:00
Khairul Azhar Kasmiran
18ef593b2e Set rpath if non-Windows Meson shared ##build (#15051) 2019-09-22 10:49:54 +02:00
Paul I
64a6baf0a9 Use abs path for LIBDIR and INCLUDEDIR on Windows (#15096) 2019-09-22 10:42:49 +02:00
GustavoLCR
a6898965c0 Fix Win32 build patch from @sanguinawer (#14945) 2019-09-02 01:16:51 +02:00
Paul I
2556919857 Add clang-cl support (#14814) 2019-08-16 12:10:00 +08:00
Anton Kochkov
9677804b8e
Windows native debugger refactoring ##debug ##windows
* Windows native debugger refactoring

Massive win32 native debugging code refactoring
and corresponding fixes.

* Fix hang after killing process
2019-07-29 11:19:26 +08:00
radare
571a080ca7
s/CORELIB/R2_PLUGIN_INCORE/g (#14295) 2019-06-13 19:12:51 +02:00
lzutao
9c659fdd17 meson: Change completions installation directory (#13647) 2019-04-07 09:59:06 +02:00
radare
e04f31a313
Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
radare
82416b0212
Create libr_main and make all binaries use it ##core
* Cleanup the use of getopt with our wrapper
2019-03-08 14:22:59 +01:00
Florian Märkl
30e74481f7 Meson: Add r_debug_dep to libr2_dep (#13088) 2019-02-13 23:09:17 +01:00
Riccardo Schirone
73edc4af04 OS X does not seem to accept X.Y.Z-git as lib version (#13043)
acr+make does work because it does not set any lib version on darwin. This patch
will adjust the version to use for libraries when radare2 is installed through
meson.
2019-02-10 23:36:08 +01:00
Florian Märkl
6a10d9d6f7 Fix #12834 - Set minimum version for libuv to 1.0.0 ##build 2019-01-20 00:06:34 +01:00
Riccardo Schirone
7185d6ca0a Set gittap even in release tarball ##build 2019-01-10 10:34:33 +01:00
lzutao
9cc6d2d291 meson: Do not use glob with meson ##build
* meson: Explicit is better than implicit
* meson: Fix deprecated warnings in Meson 0.49.0
* meson: Do not need separate array for installed files

libr/socket/meson.build:30: DEPRECATION: Library r_socket was passed to
the "libraries" keyword argument of a previous call to generate() method
instead of first positional argument. Adding r_socket to "Requires" field,
but this is a deprecated behaviour that will change in a future version
of Meson. Please report the issue if this warning cannot be avoided in
your case.
2018-12-27 14:17:54 +01:00
lzutao
f18838fff5 Improve the meson scripts ##build
* meson: Update to 0.47

Use a fallback version when sys/version.py failed.

* meson: Remove redundant calls to get_option

No need to join prefix with other project directories.

* meson: Check for explicit_memset

* meson: Use install_man to install manpages

Also, let install zsh completion files.

* meson: Install shlr/www only if use_webui built option is true

* Add use_webui build option

Rationale: Debian doesn't install shlr/www by default, give them an option
to enable/disable its installation.

* meson: Ensure python3 and no hard-code version

* meson: Ensure R2_DATDIR, R2_INCDIR, R2_LIBDIR be absolute path

* meson: WWWROOT be absolute path
2018-12-06 15:17:25 +01:00
pancake
32a5afee6b Fix the meson build. 2018-11-29 10:48:00 +01:00
Paul I
ebcb175401 Update meson.build (#12342) 2018-11-27 22:48:46 +01:00
Riccardo Schirone
752f37db4c Fixes for the --without-debugger compilations ##build
* io_ptrace: do not include io_ptrace if DEBUGGER is not defined
* meson: add `debugger` option to not use any debugger
2018-11-27 15:46:35 +01:00
Riccardo Schirone
6080edf13b
Fix r_log when used for r_assert (#11971)
- Split r_log in r_vlog/r_log and make r_assert_log use r_vlog because it
needs to provide a va_list.
- Rename _r_internal_logging to r_log because that's a R_API function
and it needs a good name
- Make R2_CHECKS_LEVEL dependent on 'buildtype' option
- Make R_LOGLVL_WARN the default log level when in debug mode (default)
- introduce ASSERT_STDOUT macro to print assert failures to stdout
- use ASSERT_STDOUT in the Travis env with asan
- use list of callbacks in RLog instead of just one.
2018-10-29 11:48:12 +01:00
Florian Märkl
0c0fee7b48 ptrace-wrap (#11723)
* Add ptrace-wrap
* Add r_io_ptrace* and r_debug_ptrace()
* Use wrappers instead of calling ptrace and fork directly
* Sleep while waiting in linux_debug
* Add ptrace-wrap Makefile
* Link io against ptrace-wrap with acr
* Define ptrace usages in r_userconf.h
* Conditional ptrace-wrap in acr
* Fix HAVE_PTRACE
* Some fixes for Solaris
* Fixes for FreeBSD
* More fixes for Solaris
* Style Fix
2018-10-12 12:20:18 +02:00
Florian Märkl
c05c85aa9f Reimplement TCP Server with libuv and add configure/meson flags (#11403) 2018-09-17 12:07:00 +02:00
Riccardo Schirone
ab4dbd509f r_assert: create functions to handle preconditions (#11286) 2018-09-16 23:24:57 +02:00
Riccardo Schirone
eee1385466
Meson private (#11331)
* meson: refactor library cflags
* meson: use visibility=hidden by default
* remove unused var
* magic/meson: replace tabs with spaces
2018-09-03 10:07:28 +02:00
Paul I
0ba26fb3d6 Add R2_GLOBAL_RC (#11258) 2018-08-26 14:09:32 +02:00
Riccardo Schirone
54176f1bbc
Openssl meson (#10909)
* meson: allow to build with openssl
* use MD4 from openssl
* meson: use MD5 from openssl too
* meson: use SHA* functions from ssl library
* libr/hash: fix makefile when using openssl
2018-08-10 10:17:48 +02:00
Riccardo Schirone
201c360b10 meson: copy most of the stuff out of sdb dir (#10961)
we need to handle sdb meson.build file with subprojects. For now I'm
extracting most of its current content here, so that it will be easier
to update sdb later.
2018-08-07 12:12:19 +02:00
Riccardo Schirone
1b129f4862 Make xxhash dependency optional in acr and meson (#10901) 2018-08-06 15:18:50 +02:00
Riccardo Schirone
9a06b35277
meson.build: do not add "r_magic" as Require in pkgconfig if using sys 2018-07-18 15:50:02 +02:00
Riccardo Schirone
c932d1abff
meson fixes (#10743)
* r2pm/meson.build: install r2pm
* meson.build: use system libraries when available
* travis: add fedora-sys to the list of things to test
* bin_nso.c: still include lz4.c when not on meson
* Dockerfile.travis: add required system dependencies to dockerfile
* meson.build: split zip_dep in libzip and zlib dependencies
* shlr/meson.build: zip needs zlib
2018-07-17 23:01:40 +02:00
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
Paul I
3e68187c36 Fix pathes for meson (#10536) 2018-06-30 10:08:22 +02:00
xarkes
c2cc0462b5
Removed deplicated file for meson (#10367) 2018-06-16 22:13:01 +02:00
Florian Märkl
737e7d33da Set HAVE_EXPLICIT_BZERO in meson (#10359) 2018-06-15 19:06:56 +02:00
David CARLIER
4d1d5adb0d Using randomisation wrapper (#10310)
* various tweaks, updating configure.acr script
* moving code to existing utils and modifying builds scripts
* use arc4random_buf when available
2018-06-11 02:50:30 +02:00
Paul I
cad927a591 Meson: add rule for tags.r2 (#10215) 2018-05-28 23:25:48 +02:00
Paul I
7e9f982849 Meson: some cleanup (#10076) 2018-05-16 10:24:35 +02:00
Jörg Thalheim
9656ba12aa meson: make git executable optional (#10092)
This is useful for reproducible offline builds
2018-05-16 08:32:26 +02:00
Paul I
5180e0220f Add R2_PLUGINS, R2_EXTRAS, R2_BINDINGS macros (#9994) 2018-05-02 15:58:14 +02:00
Paul I
52aabd40ff Reduce r2 default subdirs paths for Windows (#9991)
R2_INCDIR: include\libr -> include
R2_WWWROOT': share\radare2\{R2_VERSION}\www -> share\www
R2_SDB': share\radare2\{R2_VERSION} -> share
R2_ZIGNS': share\radare2\{R2_VERSION}\zigns -> share\zigns
R2_THEMES': share\radare2\{R2_VERSION}\cons -> share\cons
R2_FORTUNES': share\doc\radare2 -> share\doc
R2_HUD': share\radare2\{R2_VERSION}\hud -> share\hud
2018-04-30 12:38:25 +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
Paul I
6fa279ca1f Update Meson version to 0.46.0 (#9950) 2018-04-25 13:07:43 +02:00
Paul I
bfb54eafb8 Meson: add ADDR_NO_RANDOMIZE check (#9905) 2018-04-17 10:53:08 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
Paul I
4f7687287f Meson: Some little fixes (#9783)
* fix shlr libraries names
* fix missing headers for Windows dist
* fix missing format files for Windows dist
* add <static_runtime> option
* add argument with list of additional meson options for sys/meson.py
2018-03-30 23:35:12 +02:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
Florian Märkl
9074d2904a Make R2_LIBDIR, R2_INCDIR and R2_DATDIR absolute in meson (#9740) 2018-03-21 12:18:15 +01:00
Paul I
b282418ef7 Meson: use more built-in options (#9678) 2018-03-13 07:54:33 +01:00
Paul I
9c0d682e60 Meson: Invoke python via <python3> module + some little fixes (#9594)
* Meson: Invoke python via <python3> module

* Meson: Added version check

* Meson: Disable git output for capstone cloning command
2018-03-06 08:28:40 +01:00
Paul I
13f7013696 Meson: Added sdb building/installation rules (#9575) 2018-03-05 00:10:28 +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
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
Paul I
d66df132e7 mesonbuild: Using radare2 as subproject (#9317)
* meson: Using radare2 as subproject
* JUST TEST
2018-02-06 13:41:42 +01:00
xarkes
410ca09803
Added dynamic linking build for Appveyor (#8948)
* Revert "Enable GDB for Windows (#8877)"
Because it does not work while linking dynamically on windows
This reverts commit 12b9d8c3b4.
* Added dynamic linking build for Appveyor
* Try cleaning Windows linkage (meson)
2017-12-03 21:26:13 +01:00
xarkes
6cad3b5225 Some meson linux improvements 2017-12-02 12:56:31 +01:00
xarkes
c118091c42 Fix #8486 (meson missing bins) (#8519) 2017-09-15 10:17:50 +02:00
xarkes
57f2c6da27 Fixing meson build (#8178) 2017-08-10 17:04:13 +02:00
alvarofe
7264603877 Revert "Fix meson build"
This reverts commit 96f1e821a2.
2017-08-10 13:15:30 +02:00
xarkes
96f1e821a2 Fix meson build 2017-08-10 10:18:12 +02:00
xarkes
567b5837b0 Moving /MT modifier to release build (#8103) 2017-08-02 13:13:25 +02:00
xarkes
d4d07ee1ca Better meson build 2017-07-28 14:02:27 +02:00
xarkes
221b312046 Meson builds generates sdb files (+build clean) (#8035) 2017-07-26 23:15:41 +02:00
xarkes
f0fc5cbc25 Fixed meson r_version creation + reorder (#7909) 2017-07-14 13:13:18 +02:00
xarkes
927c484932 Reorganized meson version grabbing (#7828) 2017-06-29 17:35:40 +02:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00
xarkes
0452dea522 Better release handling 2017-06-23 18:30:29 +08:00
xarkes
ec6ac26e8b msvc compile with /MT to include redistributables into binaries 2017-06-23 11:40:30 +08:00
Lowly Worm
af4dda8721 rm whitespace in meson build file 2017-06-17 16:29:42 -07:00
xarkes
a4a48386db Ignore meson scripts (#7751)
Add VS2017 project generation
2017-06-15 22:17:59 +02:00
xarkes
f590de9e71 Fixed meson r_version.h (#7702) 2017-06-08 05:32:17 +02:00
xarkes
bcdbfcaf8a Moved meson bat script + better meson.build file (#7701) 2017-06-07 23:36:02 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
SkUaTeR
0596c1c08e Meson shlr libs 2017-05-30 18:38:19 +02:00
pancake
0b383d892b Fix make meson-symstall 2017-05-29 22:47:51 +02:00
SkUaTeR
080416d09e Fixed meson build for msvc 2017-05-29 22:35:59 +02:00
pancake
22cde23367 Generate r_userconf.h with Meson too 2017-05-29 13:06:10 +02:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
pancake
478095b6e8 Fix meson build on macOS 2017-05-14 23:15:07 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
pancake
3e0c7bc650 Support meson build for Linux (Requires meson 0.40) 2017-05-02 14:18:36 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00