Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uses function starts as the entires when building the symtab #1471

Merged
merged 2 commits into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/bap/bap.mli
Original file line number Diff line number Diff line change
Expand Up @@ -7846,8 +7846,8 @@ module Std : sig
function [fn] *)
val span : fn -> unit memmap

(** [explicit_callee symtab address] returns a callee which is
called from a block with the given [address].
(** [callee symtab address] returns a callee which is
called from a block with the given [address].

@since 2.5.0
*)
Expand Down
1 change: 1 addition & 0 deletions lib/bap_disasm/bap_disasm_symtab.ml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ let create_intra disasm calls =
let create_inter disasm calls init =
Disasm.explore disasm
~init
~entries:(Set.to_sequence@@Disasm.subroutines disasm)
~block:(fun mem _ -> KB.return mem)
~node:(fun _ s -> KB.return s)
~edge:(fun src dst s ->
Expand Down