gdb/linux-tdep: make read_mapping return a structure
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 23 Feb 2022 21:26:16 +0000 (16:26 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 24 Feb 2022 12:29:05 +0000 (07:29 -0500)
commit11659552768f6b915a6bf5aa98dfb11ba0f004d0
tree633a335c606e90ddb4a3b847d60ab07612a8799d
parent7190ae0d393d09c3c1f24add83d1e90727402749
gdb/linux-tdep: make read_mapping return a structure

Change read_mapping to return a structure instead of taking many output
parameters.  Change the string + length output parameters (permissions
and device) to be gdb::string_view, since that's what string_view is
for (a non-NULL terminated view on a string).  No changes in behavior
expected.

Change-Id: I86e627d84d3dda8c9b835592b0f4de8d90d12112
gdb/linux-tdep.c