Use KF_PATH to verify the size of a struct kinfo_file.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 18 Sep 2018 21:05:47 +0000 (14:05 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 18 Sep 2018 21:05:47 +0000 (14:05 -0700)
commit9f235e09e4d3dc6820e2d667200fe09b3e73b623
tree214114ebdbd1344fe82b10e61c58a28158d21141
parent5031d0ae0b9fb1a42eb8ff9d2b5098a56774cee1
Use KF_PATH to verify the size of a struct kinfo_file.

fbsd_core_vnode_path needs to use the offset of the kf_path member of
struct kinfo_file as the minimum size of a struct kinfo_file object.
However, it was using KVE_PATH instead due to a copy and paste bug.

While here, fix another copy and paste bug in the error message for a
truncated kinfo_file object.

gdb/ChangeLog:

* fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
KVE_PATH.
gdb/ChangeLog
gdb/fbsd-tdep.c