You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are builtin and related:
This is a small function worked out in go-inspector:
defis_fake_path(path):
""" Return True if a ``path`` string is for a fake path injected by the linker or compiler in the binary. See: https://github.com/smoofra/elfutils/blob/53b6f190892c738f28840e7481a09c7ee19b6720/src/srcfiles.cxx#L160 For example: >>> is_fake_symbol("<built-in>") True >>> is_fake_symbol("foo/bar/<builtin>") True >>> is_fake_symbol("<artificial>") True >>> is_fake_symbol("/artificial/asdasdas/adsd") False >>> is_fake_symbol("<foo-bar>") False >>> is_fake_symbol("/sdfsdfsdf<unknown>/zffd") Trye """fake_paths= (
#gcc intrinsics"<built-in>", "<builtin>",
# seen in Go and C++"<artificial>",
"<unknown>",
)
returnisinstance(path, str) andany(fsinpathforfsinfake_paths)
The text was updated successfully, but these errors were encountered:
These are builtin and related:
This is a small function worked out in go-inspector:
The text was updated successfully, but these errors were encountered: