* Changed behavior of `f` to only add flag if there is none * Changed behavior of `f+` to add flag in any case * Moved listing subcommands from `f` to `fl` * Moved listing subcommands from `f.` to `f.l` * Added subcommand `f.l*` to list all local flags in all functions * Listing flags at the current offset became `fl.` * Moved `f=` to `fl=` * Old `fl` (flag length) now became `fL` * Removed original `fe` commands * Old `f?` (check if flag exists) now became `fe` * Removed `fV` commands * Removed `fn` commands in favor of `fl` and `asm.flags.real=true` * Removed `fS` commands (`fSo` and `fSn`) * `fo` became `fortune` and moved from "flags" to "shell" category * Removed oldshell handlers of the `z` commands
42 lines
419 B
Text
42 lines
419 B
Text
NAME=no flags
|
|
FILE==
|
|
CMDS=<<EOF
|
|
f patata
|
|
f-*
|
|
fl~?
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0
|
|
EOF
|
|
RUN
|
|
|
|
NAME=no flags
|
|
FILE=bins/elf/analysis/elf-relro
|
|
CMDS=<<EOF
|
|
f patata
|
|
fs *
|
|
f-*
|
|
fl~?
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0
|
|
EOF
|
|
RUN
|
|
|
|
NAME=fr foo bar
|
|
FILE==
|
|
CMDS=<<EOF
|
|
e asm.arch=x86
|
|
e asm.bits=64
|
|
e asm.bytes=true
|
|
f foo
|
|
fr foo bar
|
|
fl
|
|
pd 1
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000000 1 bar
|
|
;-- bar:
|
|
0x00000000 0000 add byte [rax], al
|
|
EOF
|
|
RUN
|