Share the code to format "info proc mappings" entries for FreeBSD.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 17 Oct 2018 18:41:30 +0000 (11:41 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 17 Oct 2018 18:42:00 +0000 (11:42 -0700)
commit6f3b1098e820cef84709ef71c287c4b72e6c671b
tree6c32813cdedcfb6114f14779cc2f2e49f815fb1a
parentd500b4f23fc329f5c8cce6ee8fa3629c0f130038
Share the code to format "info proc mappings" entries for FreeBSD.

gdb/ChangeLog:

* fbsd-nat.c (fbsd_nat_target::info_proc) Use
fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
* fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
(fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
New functions.
(fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
and fbsd_info_proc_mappings_header.
* fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
(fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
New.
gdb/ChangeLog
gdb/fbsd-nat.c
gdb/fbsd-tdep.c
gdb/fbsd-tdep.h