Re: [PATCH v4] Implement "info proc mappings" for NetBSD

Simon Marchi
2020-04-11T23:49:26Z

On 2020-04-11 7:45 p.m., Kamil Rytarowski wrote:
> Define nbsd_nat_target::find_memory_regions and
> nbsd_nat_target::info_proc. info_proc handles as of now only
> the "mappings" command.
>
> Define a local static function kinfo_get_vmmap() that reads
> the process memory layout of a specified process.
> kinfo_get_vmmap() wraps the sysctl(3) call.
>
> nbsd-tdep.c defines now utility functions for printing the
> process memory layout:
> * nbsd_info_proc_mappings_header()
> * nbsd_vm_map_entry_flags()
> * nbsd_info_proc_mappings_entry()

When sending a new version, can you please rebase it on the current master?

The patch does not apply cleanly on master today, so it doesn't really reflect what's
going to be merged.

Simon