rizin/librz/reg
Quentin Minster b82215965e
Refactor pointer write command * to use the API (#3793)
* Add tests for pointer write command `*`

Some test cases override `asm.arch` for bitness compatibility reasons.

* Refactor pointer write command `*` to use the API

* Allow use of more general exprs as value for pointer write command `*` ##shell

* Instead of detecting when to write a value, and write a hexpair
  otherwise, do the inverse: detect when to write a hexpair, and write a
  value otherwise. This allows more general value exprs such as
  variables, derefs, ...

* To enable this, add an option to `rz_hex_str_is_valid` so it can
  reject a 0x-prefixed string (because 0x-prefixed strings should be
  handled as values, not hexpairs, by the pointer write command)

* Add a test case to ensure a non-0x-prefixed value arg, that's not a
  valid hexpair, now gets eval'ed as an expr by the pointer write
  command (where previously it would throw an error)
2023-08-26 23:40:31 +08:00
..
d Deprecate RzSyscallPort and move the existing sysregs to SDB (#1160) 2021-06-02 02:01:51 +08:00
arena.c Refactor pointer write command * to use the API (#3793) 2023-08-26 23:40:31 +08:00
meson.build Rewrite RzReg to use RzBitVector 2022-11-01 10:58:16 +08:00
profile.c Fix memleak in parse_reg_profile_str() 2023-08-14 13:08:22 +08:00
rcond.c Rewrite ar and dr with newshell (#2006) 2021-12-06 19:02:43 +01:00
reg.c Fix memleak in rz_reg_item_free() 2023-08-14 13:08:22 +08:00
rvalue.c Rewrite RzReg to use RzBitVector 2022-11-01 10:58:16 +08:00