diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-06-30 19:04:18 +0100 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2023-07-03 12:52:34 +0100 |
| commit | 77ae5761f3c9e6b68f8545cff06704f823c3d387 (patch) | |
| tree | 1c43cbffc6c03c2f10d824624e4ecac1c63e6bfc /gdbstub/internals.h | |
| parent | 35be898e2f019bc63bffd02ab7fbd19287fd3cf4 (diff) | |
| download | focaccia-qemu-77ae5761f3c9e6b68f8545cff06704f823c3d387.tar.gz focaccia-qemu-77ae5761f3c9e6b68f8545cff06704f823c3d387.zip | |
linux-user: Emulate /proc/self/smaps
/proc/self/smaps is an extension of /proc/self/maps: it provides the same lines, plus additional information about each range. GDB uses /proc/self/smaps when available, which means that generate-core-file tries it first before falling back to /proc/self/maps. This, in turn, causes it to dump the host mappings, since /proc/self/smaps is not emulated and is just passed through. Fix by emulating /proc/self/smaps. Provide true values only for Size, KernelPageSize, MMUPageSize and VmFlags. Leave all other values at 0, which is a valid conservative estimate. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230621203627.1808446-4-iii@linux.ibm.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230630180423.558337-34-alex.bennee@linaro.org>
Diffstat (limited to 'gdbstub/internals.h')
0 files changed, 0 insertions, 0 deletions