[Lldb-commits] [PATCH] D87868: [RFC] When calling the process mmap try to call all found instead of just the first one
Jim Ingham via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 21 14:52:33 PDT 2020
jingham added a comment.
Calling every symbol called mmap you find around till one returns some value makes me a bit nervous. For instance, on macOS dyld has a symbol called "mmap" that isn't meant to be called by anybody but dyld. We probably don't want to accidentally call that.
You can get around that particular instance by only looking for exported functions (macOS's internal mmap is not exported). I can't think of any good reason we would want to call an unexported mmap, since we're trying to do what a program on the system would do.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the lldb-commits