Add extended segment support to gcore
authorcem <cem@FreeBSD.org>
Wed, 20 Jul 2016 22:03:45 +0000 (22:03 +0000)
committercem <cem@FreeBSD.org>
Wed, 20 Jul 2016 22:03:45 +0000 (22:03 +0000)
commit35d5f8f95736a23d421523bb13f00c72a1f58e6d
tree3df1d55179d4a68575b2ccb5b815bc9437a02af1
parentc7b44d4daad6e97a8d235628e326e4fbe05a3288
Add extended segment support to gcore

A follow-up to r303099, D7255.  Basically, apply the exact same change, with
the exact same rationale, to gcore.  gcore's elfcore.c is largely a clone of
the kernel imgact_elf coredump facility.

Reviewed by: emaste (earlier version, not substantially different)
Requested by: jhb
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7265
usr.bin/gcore/elfcore.c