* Move rz_debug_reg_list from RzDebug to RzCore and directly use rz_cons_printf
* rz_reg_get_list returns always the same list, so make it const RzList *
MODE_DIST (-s) is the same as MODE_DIST_LENVENSHTEIN (-ss) but much slower.
Drop it. Make MODE_DIST_MYERS (-sss, faster than MODE_DIST_LENVENSHTEIN) take its place (-s).
The original comment was incorrect (-s is not Eugene W. Myer's algorithm). It is correct now.
Co-authored-by: eagleoflqj and Maskray
* Try to detect shift of first case value
* Detect when block where switch table is attached is split by analysis
* Fix attaching switch table to wrong block
* Add/fix tests
In this way things such as:
(10 + 3)
Are interpreted as regular $.args, composed of:
- `(` as (arg_identifier)
- `10` as (arg (arg_identifier))
- `+` as (arg (arg_identifier))
- `3` as (arg (arg_identifier))
- `)` as (arg_identifier)
* Rename `sj`/`s*` and move them under `sH`. Remove `s=`
* Rename `s-*` to `sH-`
* Use `sd` for "seek delta", which moves relative to the current offset
* Enforce <cmd> <arg> syntax. So no more `s+16` but `s +16`. Command
`sHr` is for redo history, `sHu` for undo history. If one wants to move
relative to the current address, they need to do `sd +10`/`sd -10`.
* Remove `ss` commands in favour of `cmd.seek.silent`. This was anyway
used mainly for scripts, so no need to replicate all `s` commands
under `ss`.
Change a bit rz_core_seek API to avoid dupped entries in seek history.
* Clear syscall and sysregs sdbs if their files are not found
* "Fix" cmd_k tests
Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
* Fixed missing SN alias in AVR profile.
* Fixed "(null)" instruction and analysis when unknown type is found.
* Added tests for AVR regarding (null) and invalid analysis
* AVR test is broken, due random behavior on clang.
* Fix `???` command, which should show the help of `?`
Due to recent changes it was not working anymore, because it was
interpreteing `???` as the help with detail=3 of the root node. This
patch limits the number of detail to 2 (which is what is already assumed
in another parts of the code anyway), so that `???` can be interpreted
as the help with detail=2 of `?`. For now this makes it work, however
there needs to be some review of the whole `?` subtree.
* Add test for ???
* Fix ??? test spaces
Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
Co-authored-by: Florian Märkl <info@florianmaerkl.de>