101 Commits

Author SHA1 Message Date
pancake
db76ab25af Fix wao nocj and so? and rename swap-jcmp to recj 2018-01-26 17:34:15 +01:00
pancake
1638507d01 search.maxhits is more aggressive now 2017-12-24 18:10:21 +01:00
pancake
43544f080c s33 also works now 2017-12-22 18:58:35 +01:00
pancake
e499b398ff Bring back s0x33 (without space) syntax support 2017-12-22 12:36:02 +01:00
pancake
0b1e8eaecc Fix almost all warnings from the msvc build 2017-12-19 00:18:39 +01:00
pancake
2f5563e685 Fix #8870 - sn/sp accepts an arg to override scr.nkey 2017-11-23 14:41:11 +01:00
josediazfer
f8d71b8ded Leak "so" command (#8650) 2017-10-04 23:54:44 +02:00
Fangrui Song
d190effb26 Remove search.count in favor of search.maxhits in /A , /R , and everywhere (#8538) 2017-09-18 02:04:01 +02:00
Fangrui Song
047f64956d Fix #8416 - Add sf.: seek to the beginning of the current function (#8418) 2017-09-04 02:59:07 +02:00
condret
2f201bded0 opsalamance - merge the big siol branch
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
pancake
0d04abce48 s-- and s++ accept a number as argument to half the seek 2017-08-01 12:18:16 +02:00
pancake
fa576bbb9a Implement s-* command 2017-07-28 06:12:01 +02:00
pancake
933c6737fe Remove whitespaces around + in sj 2017-07-27 18:38:28 +02:00
Fangrui Song
86de0abd20 Use RList for cmd_descriptors, make it a member of RCore (#8034) 2017-07-27 14:52:17 +02:00
pancake
96ac03cfec Fix sj 2017-07-27 02:26:54 +02:00
Fangrui Song
21166057d0 s commands: move help_msg_*[] arrays to top (#8012) 2017-07-26 15:15:13 +02:00
pancake
cd22fbb217 Add $Fj and $Ff in ?$ and update s? help msg 2017-07-18 02:06:19 +02:00
pancake
4e4ed9fd20 Implement s== to show flag names, not just offsets 2017-06-28 14:13:12 +02:00
Lowly Worm
f9b66ac8e1 fix memleak in sj 2017-06-20 22:00:44 -07:00
Lowly Worm
d79f84fdd9 add sj (json seek history (fixes #7663) 2017-06-19 19:17:27 -07:00
Simone Ferrini
2a573ac402 Fix #7527 - read block after s- and s+ 2017-05-20 13:23:46 +02:00
pancake
f1009a0dd0 Fix regression in ssr 2017-04-10 16:39:10 +02:00
pancake
7b4cbf6448 Fix #7217 - Properly implement the ss command 2017-04-10 13:17:38 +02:00
pancake
c1074d8e9d Fix non-initialized regression in s 2017-03-27 13:43:18 +02:00
pancake
c504b85a7c Fix #7117 - Implement s! to show near flag names for history offsets 2017-03-27 13:12:59 +02:00
Maijin
4a5144635d Fix #7144 2017-03-26 22:34:03 +02:00
Riccardo Schirone
26fd259d04 New command 'ss' (Silent Seek)
These commands seek to an address or a register without logging the
entry in the seek history.
2017-03-19 02:34:53 +01:00
pancake
7a0a11f500 Apply minor naming and indent changes from the siol branch - thanks condret 2017-03-15 02:22:54 +01:00
pancake
9d06886c84 Add s: to show seek with configurable 0 padding 2017-02-20 12:25:21 +01:00
SkUaTeR
778c5c8298 Improved backward so and fix bad char into source file 2017-02-09 00:31:40 +01:00
jvoisin
050d383ae7 Improve a bit the help for anal-related commands (#6348)
* Improve a bit the help for anal-related commands
* Help for `dcs`
* Help for wt
* Add help for dcu
2016-12-21 09:02:55 +01:00
Maijin
ffd8ecd14b Add remaining [?] 2016-11-26 14:57:21 +01:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00
Chris Rorvick
9b47635f0c remove `next' param from r_core_block_read()
This was originally used to cause a seek to the next block prior to
reading such that successive calls to r_core_block_read() would progress
through memory one block at a time.  This was broken, though, by commit
452669d94113 ("more cleanup in r_core_block_read") when when it used
`next' to directly calculate the offset rather than via a seek.

Only one call site remains that attempts to read the next block instead
of the current, and this probably was not even observable due to the
"hacky fix" added in commit 3bfa61946eca ("Cleaner pvj, fix tinype load,
and honor 'ao N's").

The current of semantics of `next' appear to be broken and there is very
little dependence on it.  If the original behavior should be restored
anywhere, it would be much better to add a new function, or just do the
seek explicitly, rather than parameterizing r_core_block_read() on it.
2016-08-15 14:26:58 -05:00
Chris Rorvick
97cea63435 fix backwards seek
Commit 57b199789d6a ("Reread block after undo seek. Fixes dbg.status
issue") reads the *next* block into the buffer rather than the current.
This breaks backwards seeking as can be seen in the following example:

  $ r2 -N malloc://0x4000
  [0x00000000]> b 64
  [0x00000000]> wb 38
  [0x00000000]> s 64
  [0x00000040]> wb deadbeef
  [0x00000040]> s-32
  [0x00000020]> px
  - offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF
  0x00000020  dead beef dead beef dead beef dead beef  ................
  0x00000030  dead beef dead beef dead beef dead beef  ................
  0x00000040  0000 0000 0000 0000 0000 0000 0000 0000  ................
  0x00000050  0000 0000 0000 0000 0000 0000 0000 0000  ................
  [0x00000020]> s+16
  [0x00000030]> px
  - offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF
  0x00000030  3838 3838 3838 3838 3838 3838 3838 3838  8888888888888888
  0x00000040  dead beef dead beef dead beef dead beef  ................
  0x00000050  dead beef dead beef dead beef dead beef  ................
  0x00000060  dead beef dead beef dead beef dead beef  ................

The first block to a string of ASCII '8' bytes and the second to
0xdeadbeef.  We then seek backwards 32 bytes from our current 64 byte
offset but a dump at the resulting offset shows data from half way into
the second block (i.e., offset 0x60.)  Dumping again after seeking 16
bytes forward shows the expected last bit of the first block.  Clearly
the intent was to reread the current block, not the next block, after an
undo or backward seek.

NOTE: The above example will only work after applying the previous
commit as rereading the buffer when displaying the prompt hides this
bug.

Additionally, since the commit intended to reread the buffer only after
an undo seek, do not do this at all on a backward seek.
2016-08-15 14:00:39 -05:00
Anton Kochkov
68ef35f635 Uniform name RUndos -> RIOUndos (for bindings) 2016-06-02 07:34:06 +03:00
Rene Laemmert
2740e74e49 added cursor to undo seek history (#5054)
* added cursor to undo seek history

* cleanup the mentioned parts
2016-06-01 12:16:00 +02:00
Álvaro Felipe Melchor
fb52d91d95 fix oob in seek line 2016-05-23 22:07:32 +02:00
Riccardo Schirone
8727840e90 anal/fcn: use getter/setter to access the size of a RAnalFunction
This is one of the first steps to improve analysis. This way we'll have
one single place to change if we want to change the meaning of the
"size" field. (size -> realsize)
2016-05-19 01:50:50 +02:00
pancake
47b861b975 Update seek command help 2016-05-09 10:58:06 +02:00
pancake
7676272b18 Add sj and s= commands 2016-05-09 10:39:19 +02:00
Jeffrey Crowell
9518841434 refactor includes (#4757) 2016-05-03 04:52:41 +02:00
Jeffrey Crowell
b14de33807 fixup seek to local flags a bit better.
ref: #4615
2016-04-15 16:20:09 -04:00
pancake
6d3370d115 Implement local flag seek in r_core_num_callback 2016-04-12 01:32:11 +02:00
pancake
0274089288 Fix #4615 - seek to local flags '+.', and handle f.flag=addr 2016-04-12 00:55:03 +02:00
zlowram
a494a59901 Get current section baddr if multiple files are open 2016-01-03 03:12:33 +01:00
zlowram
abc5575dfc Fixes for #3899 and #3902
- If lines.from is 0, sl 1 seeks to baddr
- Added sll command to show total number of lines and removed the other
messages
2016-01-03 03:11:16 +01:00
zlowram
c916d1ca18 Fixed bug in r_core_lines_initcache 2015-12-29 11:38:04 +01:00
zlowram
db8fbcc68b Added config variable to set absolute or relative lines 2015-12-28 16:44:26 +01:00