760 Commits

Author SHA1 Message Date
pancake
a93ecf2b69 Fix #3898 - Persistent section name in project files 2016-01-03 01:36:16 +01:00
pancake
6f346b6d6d Fix #3901 - Cannot debug directories and follow symlinks 2016-01-03 01:28:02 +01:00
Ricardo Quesada
2c3fdba551 Fix for bug 3788
- `r_io_read` calls `r_io_read_at` with vaddrs, and not with maddr
- `r_io_section_maddr_to_vaddr` uses a reverse iterator to check the
  sections
- adds `r_io_section_mget_prev`: this function can be removed if the
  behavior of `r_io_section_mget` is changed to use a reverse iterator

Squashed commit of the following:

commit a31d359bf1c79b92f518fa8237c7f9d4cf146577
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Wed Dec 9 11:40:54 2015 -0800

    fetches sections starting from the back

commit 0b687439ea6225c8db9f387cc93bc53300e297a7
Merge: 8485676 92c1631
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:40:35 2015 -0800

    Merge branch 'master' of https://github.com/radare/radare2 into revert_3788

commit 8485676cf5c042d8c4e10c798b4fadb1a43df50c
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:09:05 2015 -0800

    This seems to be the "correct" patch...

    ...but it breaks some tests... apprently searches a few bytes
    out of the section creating some false-positives hits

    I'm just commiting this PR to give an idea of where the bug is

commit 2e4b8de397a4ef23c02c3e08113cf6b984479275
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:46:29 2015 -0800

    not good... reverting

commit 324afba7e2853ddb72750f7f8b38bf59af310873
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:09:25 2015 -0800

    workaround for bug 3788

commit 6e6283eaa18edcca1987a8f4227f163a6926c430
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 15:14:12 2015 -0800

    Reverts fix for bug #3788

    please, reopen bug #3788
2015-12-09 22:20:54 +01:00
pancake
92c1631a06 More indent fixes 2015-12-09 00:41:44 +01:00
pancake
cfb03d3772 More indentation fixes 2015-12-09 00:27:31 +01:00
pancake
a4fc08b401 More auto-indentation enhancements 2015-12-08 23:55:23 +01:00
pancake
b5e093fc45 Indent io/io.c and fix an issue in the .sh 2015-12-08 22:35:39 +01:00
pancake
75ea729679 Fix regression in t.anal/x86/emu 2015-12-08 16:49:15 +01:00
pancake
0880d7d4f5 Some refactor/cleanup for agf and io cache (wip) 2015-12-08 14:59:30 +01:00
pancake
aac116bc8f Fix r_io_map_get 2015-12-08 01:54:05 +01:00
pancake
61fba1e663 Fix #3807 - write on maps issue 2015-12-07 22:35:34 +01:00
pancake
cc402a76c5 More refactorings towards a ptrace-free iOS/OSX debugger 2015-12-04 02:44:36 +01:00
pancake
fb8345276a Kill child if no perms to debug after spawn in OSX 2015-12-04 00:21:06 +01:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
skuater
513200a7fa Fixes for the w32 debugger 2015-11-24 23:28:50 +01:00
pancake
07c6a1e41d Fix rabin2 -k crash 2015-11-24 10:17:24 +01:00
pancake
50f8ecaba4 Fix 2015-11-22 02:07:28 +01:00
pancake
f188ef836e Fix java build 2015-11-20 16:08:24 +01:00
pancake
e0de679118 Fix #3691 - Fix unitialized memory in 32bit esil write op 2015-11-16 10:29:03 +01:00
pancake
2b519dee07 Fix #3599 - save/restore file map address 2015-11-12 10:33:20 +01:00
Álvaro Felipe Melchor
b1583d5b24 Fix more issues reported by clang-analyzer 2015-11-03 22:14:00 +01:00
pancake
afb5c93e49 Fix iOS debugger attach 2015-10-31 00:48:08 +01:00
Álvaro Felipe Melchor
8aa6086ed3 Fix #3474 2015-10-29 18:51:44 +01:00
Riccardo Schirone
7323e0ef05 socket/run: split r_run_start to make debugging easier
During the environment configuration we may fork and spawn other
processes that we don't really care about. Splitting r_run_start, allows
to call ptrace only after this initial work is done.
2015-10-29 08:21:24 +01:00
pancake
6c4bfb94b1 Fix windist, r2pipe and plugins paths 2015-10-23 02:58:48 +02:00
Claude Hemberger
3929091bf5 Incompatible pointer type warning during make
wind_va_to_pa wants a different struct for 64 bit int. Since the value
is never used, I just replaced it
2015-10-16 13:16:49 +02:00
Álvaro Felipe Melchor
11ce2c5031 fix aligned issue with S= 2015-10-15 21:57:08 +02:00
pancake
9f522a4a9b Fix seek for ptrace and mach IO 2015-10-14 13:42:15 +02:00
Álvaro Felipe Melchor
82e02d15b0 Fix S= issues with paddr and vaddr 2015-10-14 00:11:35 +02:00
Álvaro Felipe Melchor
feb11b7861 Fix #3440 2015-10-14 00:11:35 +02:00
Álvaro Felipe Melchor
a7022f01a5 coding style and fix paddr in S= 2015-10-14 00:11:35 +02:00
pancake
f9b661f839 Hardcode pagesize for arm64 in native iOS debugger 2015-10-12 19:18:00 +02:00
pancake
747c7bbacb More fixes for io.mach.write 2015-10-11 03:07:53 +02:00
pancake
f6b19c6762 Fix many bugs in io.mach.write, add =!perm for mach debugger 2015-10-11 01:07:36 +02:00
Álvaro Felipe Melchor
d9fb954dec Added string in drr and pxr 2015-10-06 18:23:27 +02:00
Álvaro Felipe Melchor
1d3df40c0c Fix dbg.args for linux 2015-10-04 16:46:28 +02:00
Álvaro Felipe Melchor
ac965a56c0 Fix #3359 2015-10-01 11:01:55 +02:00
Álvaro Felipe Melchor
fb04e33acc Fix #3208 2015-09-30 10:46:52 +02:00
Ole André Vadla Ravnås
f47da1c545 Fix fork_and_ptraceme() on Darwin
It's better to let `posix_spawnp()` spawn the child process instead of
forking ourselves.
2015-09-22 10:03:16 +02:00
pancake
486c88954f Darwin: start debugging suspended. Fixes in lm32 2015-09-22 02:28:04 +02:00
pancake
5d874bc8d5 Remove io.zeromap 2015-09-16 23:35:11 +02:00
pancake
4e47d86de0 Honor wheelspeed, fix oob in vmenus and more boolification 2015-09-14 16:22:57 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
Riccardo Schirone
2e048b3272 socket/run: implement fork option 2015-09-13 10:46:09 +02:00
Riccardo Schirone
ffdbf919b1 io/section: add r_io_section_vaddr_to_maddr_try API
* fix r_io_section_vaddr_to_maddr
* rename r_io_section_maddr_to_vaddr and vaddr_to_maddr
2015-09-10 01:59:40 +02:00
NighterMan
16548bddee Do not allocate more than one RIODesc for io_gdb
This fixes an issue where we end up with multiple connections to the gdb stub
which only supports one connection, ending up with one connection for debug
which works and another connection for IO which doesnt.
2015-09-08 23:27:43 +02:00
Riccardo Schirone
9f3539023e io/section: r_io_section_offset_to_vaddr get section with mget, not vget
* core/cmd_print: adapt to io/section change
* core/cmd_print: print newline in print string json command
2015-09-07 13:40:49 +02:00
jvoisin
f7e426d281 Minor fixes for the previous commit 2015-09-04 15:35:37 +02:00
jvoisin
fbe8b6d938 Once again, clang-analyzer strikes! 2015-09-04 15:12:42 +02:00
Álvaro Felipe Melchor
1d4ebdeb25 some refactoring & added threads field in RDebug 2015-09-01 18:45:08 +02:00