diff options
author | Andrew Burgess <aburgess@redhat.com> | 2025-05-07 10:53:41 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-05-12 16:24:36 +0100 |
commit | ddce0e6e0c4d3863ec913c350d04802db58e637e (patch) | |
tree | 2e8e7c7a4bdc179e0760a9c36220aede04a8d8de /gdb/python/py-function.c | |
parent | dcbcfc9a520750a489cde5cef50d6e1557b77623 (diff) | |
download | binutils-ddce0e6e0c4d3863ec913c350d04802db58e637e.zip binutils-ddce0e6e0c4d3863ec913c350d04802db58e637e.tar.gz binutils-ddce0e6e0c4d3863ec913c350d04802db58e637e.tar.bz2 |
gdb: move extra checks into dump_note_entry_p
Now that dump_note_entry_p is always called (see previous commit), we
can move some of the checks out of linux_make_mappings_callback into
dump_note_entry_p.
The checks only exist in linux_make_mappings_callback because, before
the previous commit, we couldn't be sure that dump_note_entry_p would
be called or not, so linux_make_mappings_callback had to run its own
checks.
Now that dump_note_entry_p is always called we can rely on that
function to filter out which mappings should result in an NT_FILE
entry, and linux_make_mappings_callback can just create an entry for
everything it is passed.
As a result of this change I was able to remove the inode argument
from linux_make_mappings_callback and
linux_find_memory_regions_thunk. The inode check has now moved to
dump_note_entry_p.
There should be no user visible changes after this commit.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/py-function.c')
0 files changed, 0 insertions, 0 deletions