]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the way the segments are included in the gcore outputs (with the
authorattilio <attilio@FreeBSD.org>
Wed, 14 Jul 2010 17:16:25 +0000 (17:16 +0000)
committerattilio <attilio@FreeBSD.org>
Wed, 14 Jul 2010 17:16:25 +0000 (17:16 +0000)
commit6ab63421304fef2fcddb8156ca928388a8950d0f
tree4709c877eb55a2bbe88dfa8ec2415a431ec699b8
parent6d7c933564bc9a9689c68143424bd75218fefdf7
Fix the way the segments are included in the gcore outputs (with the
default invokation):
- Right now if segments are not writable are not included. Remove this.
- Right now if a segment is mapped with NOCORE the check is not honoured.
  Change this by checking the newly added flag, from libutil,
  KVME_FLAG_NOCOREDUMP.

Besides that, add a new flag (-f) that forces a 'full' dump of all the
segments excluding just the malformed ones. This might be used very
carefully as, among the reported segments, there could be memory
mapped areas that could be vital to program execution.

Sponsored by: Sandvine Incorporated
Discussed with: kib
Reviewed by: emaste
Tested by: Sandvine Incorporated
MFC after: 2 weeks
usr.bin/gcore/elfcore.c
usr.bin/gcore/extern.h
usr.bin/gcore/gcore.1
usr.bin/gcore/gcore.c