diff options
| author | Andrew Burgess <aburgess@redhat.com> | 2025-08-25 16:48:22 +0100 |
|---|---|---|
| committer | Andrew Burgess <aburgess@redhat.com> | 2025-10-06 16:56:56 +0100 |
| commit | f69c1d03c4d6c68ae3f90facd63245426c028047 (patch) | |
| tree | 5a694587bed63fb239c618a283b8c64247e7fff8 /gdb/python/py-block.c | |
| parent | fc8e5a565b3ae1b304dfb2de664b23722d97b794 (diff) | |
| download | binutils-f69c1d03c4d6c68ae3f90facd63245426c028047.zip binutils-f69c1d03c4d6c68ae3f90facd63245426c028047.tar.gz binutils-f69c1d03c4d6c68ae3f90facd63245426c028047.tar.bz2 | |
gdb/python: add Corefile.mapped_files method
Add a new Corefile.mapped_files method which returns a list of
gdb.CorefileMappedFile objects.
Each gdb.CorefileMappedFile object represents a file that was mapped
into the process when the core file was created.
A gdb.CorefileMappedFile has attributes:
+ filename -- A string, the name of the mapped file.
+ build_id -- A string or None, the build-id of the mapped file if
GDB could find it (None if not).
+ is_main_executable -- A boolean, True if this mapping is the main
executable.
+ regions -- A list containing the regions of this file that were
mapped into the process.
The 'regions' list is a list of gdb.CorefileMappedFileRegion objects,
each of these objects has the following attributes:
+ start -- the start address within the inferior.
+ end -- the end address within the inferior.
+ file_offset -- the offset within the mapped file for this mapping.
There are docs and tests.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32844
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-block.c')
0 files changed, 0 insertions, 0 deletions
