BinaryAnalysisPlatform / bap

Binary Analysis Platform
MIT License
2.07k stars 273 forks source link

improves bap-configurator key handling, publishes more config #1570

Closed ivg closed 1 year ago

ivg commented 1 year ago

Normalized Keys

1) Keys passed to ocaml tools/configure.ml can now use dashes or underscores interchangeably 2) The keys are case sensitives 3) During rewritign the keys can use either underscores or dashes, and can use any registry.

Basically the comparison function makes the following keys equal: foo-bar, FOO_BAR, FOO-bar, and foo bar.

New Configuration Parameters

Publishes several configuration parameters via Bap_main.Configuration and makes it available via bap config, e.g.,

$ bap config
version: 2.6.0-alpha
build_id: f4a6c54
datadir: /home/ivg/.local/share/bap
cachedir: /home/ivg/.cache/bap
sysdatadir: /home/ivg/factory/bap-dune/_opam/share/bap-common
libdir: /home/ivg/factory/bap-dune/_opam/lib
confdir: /home/ivg/factory/bap-dune/_opam/etc/bap-common
bindir: /home/ivg/factory/bap-dune/_opam/bin
plugindir: /home/ivg/factory/bap-dune/_opam/lib/bap-common/plugins

Updates bapbundle to Hanle dune Plugins

bapbundle remove foo

Will now correctly delete a plugin foo even if it a dune plugin. (Note, that it will only remove the folder from the plugins directory and wont remove any installed libraries, for that use opam or your build system)