-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libdrgn: program: improve checks for userspace programs
We have a bunch of places that check prog->flags to determine whether the target is the Linux kernel, a userspace process, or a userspace core dump. But they do so inconsistently, and the flag checks are often hard to follow. Add a couple of helper functions, drgn_program_is_userspace_process() and drgn_program_is_userspace_core(), to unify these checks and make them more clear. I left the checks in libdrgn/debug_info.c alone because they're going to be replaced by the module API soon. Signed-off-by: Omar Sandoval <[email protected]>
- Loading branch information
Showing
3 changed files
with
72 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters