aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-tdep.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-01-12 12:05:50 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2018-01-12 12:05:50 -0800
commit906b4aac4c1d3cdb2b1ea7105133cfbe25e04e14 (patch)
tree5b8a14ed73f81b4d6279b93f4e252e0682a94ec7 /gdb/fbsd-tdep.c
parentb4b07ef1d11452018477d6a4166a0cfe1122d09d (diff)
downloadgdb-906b4aac4c1d3cdb2b1ea7105133cfbe25e04e14.zip
gdb-906b4aac4c1d3cdb2b1ea7105133cfbe25e04e14.tar.gz
gdb-906b4aac4c1d3cdb2b1ea7105133cfbe25e04e14.tar.bz2
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.
Diffstat (limited to 'gdb/fbsd-tdep.c')
-rw-r--r--gdb/fbsd-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index 8aa0243..e49a9af 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -62,7 +62,7 @@
#define KVE_END 0x10
#define KVE_OFFSET 0x18
#define KVE_FLAGS 0x2c
-#define KVE_PROTECTION 0x56
+#define KVE_PROTECTION 0x38
#define KVE_PATH 0x88
/* Flags in the 'kve_protection' field in struct kinfo_vmentry. These