Add main function acquire_asm
in Asm_acquire
This commit is contained in:
parent
8038a92e89
commit
5c83f4e1b4
1 changed files with 6 additions and 0 deletions
|
@ -272,3 +272,9 @@ let interpret_objdump objdump_out : asm_info_t =
|
|||
(match result with
|
||||
| ObjdumpAccu(result, _, None, []) -> result
|
||||
| _ -> raise (ParseError "Invalid end state"))
|
||||
|
||||
|
||||
(** Extract asm infos from an ELF file path *)
|
||||
let acquire_asm elf_path =
|
||||
get_objdump elf_path
|
||||
|> interpret_objdump
|
||||
|
|
Loading…
Reference in a new issue