]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use the correct value for the offset of 'kve_protection'.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 12 Jan 2018 20:05:50 +0000 (12:05 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 12 Jan 2018 20:05:50 +0000 (12:05 -0800)
commit906b4aac4c1d3cdb2b1ea7105133cfbe25e04e14
tree5b8a14ed73f81b4d6279b93f4e252e0682a94ec7
parentb4b07ef1d11452018477d6a4166a0cfe1122d09d
Use the correct value for the offset of 'kve_protection'.

I had forgotten to convert the decimal output of 'ptype /o' to hex
(but still used a 0x prefix) for the KVE_PROTECTION constant defining
the offset of the 'kve_protection' field in the 'kinfo_vmentry'
structure.  This resulted in garbage permissions for entries in 'info
proc mappings' for FreeBSD core dumps.

gdb/ChangeLog:

* fbsd-tdep.c (KVE_PROTECTION): Correct value.
gdb/ChangeLog
gdb/fbsd-tdep.c