radare2/test/db/io/banks
Lazula 57812e2471
Drastically reduce eUsage counter ##shell
* Get rid of some eprintf
* Use RCoreHelpMessage
* Missing comma in cmd_cmp.c and vmenus.c
* cmd.c * cmd_anal.c * cmd_cmp.c * cmd_debug.c * cmd_eval.c
* cmd_flag.c * cmd_help.c * cmd_debug.c 2 * fixes * cmd_info.c
* cmd_log.c * cmd_meta.c * cmd_mount.c * cmd_open.c * cmd_print.c
* cconfig.c * cmd.c * cmd_anal.c * cmd_search.c * cmd_seek.c
* cmd_write.c * core_a2f.c * core_sixref.c * vmenus.c * yank.c
* Please sys/lint.sh
2023-03-09 16:07:09 +01:00

61 lines
993 B
Plaintext

NAME=omb banks
FILE=malloc://1024
CMDS=<<EOF
om
omb+ map 1
omb+ nomap
omb nomap
om
omb map
om
omb-*
omb -1
EOF
EXPECT=<<EOF
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
Usage: omb[+-adgq] [fd] Operate on memory banks
| omb list all memory banks
| omb [id] switch to use a different bank
| omb+ [name] create a new bank with given name
| omba [id] adds a map to the bank
| ombd [id] delete a map from the bank
| omb-* delete all banks
| omb- [mapid] delete the bank with given id
| ombg associate all maps to the current bank
| ombq show current bankid
EOF
RUN
NAME=omb+
FILE=malloc://1024
CMDS=<<EOF
omb+ one
omb+ two
omb
EOF
EXPECT=<<EOF
* 0 default [ 1 ]
- 1 one [ ]
- 2 two [ ]
EOF
RUN
NAME=omb name deletes them all (BUG)
BROKEN=1
FILE=malloc://1024
CMDS=<<EOF
omb+ one
omb
omb one
omb
EOF
EXPECT=<<EOF
1: one
1: one
EOF
RUN