<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/usr.bin/gcore, branch stable/7</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2011-01-04T15:11:08Z</updated>
<entry>
<title>MFC 216769:</title>
<updated>2011-01-04T15:11:08Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2011-01-04T15:11:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2d7537be7a1193a176625b32f8ef6dafc2840fe4'/>
<id>urn:sha1:2d7537be7a1193a176625b32f8ef6dafc2840fe4</id>
<content type='text'>
Start sentences on a new line to ease life for translators.  Tweak the
wording in a few places.
</content>
</entry>
<entry>
<title>MFC 199805,203532,204329,210063,210065:</title>
<updated>2010-12-28T19:26:57Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2010-12-28T19:26:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=8219215297e47749b79ed67b014c7f50fb7e898f'/>
<id>urn:sha1:8219215297e47749b79ed67b014c7f50fb7e898f</id>
<content type='text'>
- Change gcore in order to get rid of the procfs accesses and use FreeBSD's
  specific sysctls and ptrace interfaces.
  This change switches a bit gcore POLA that is summarized here:
  - now gcore can recognize threads within the process and handle dumps
    on thread-scope
  - the process to be analyzed will be stopped during its gcore run
  - gcore may not work with processes which are actively being analyzed
    by gdb or truss
  - the ptrace interface may cause syscalls to return EINTR, thus
    interferring with signals handling within the process
- Fix gcore so that it can have the '-s' flag without hanging.
- 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.
</content>
</entry>
<entry>
<title>MFC r197437:</title>
<updated>2009-11-05T02:29:45Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2009-11-05T02:29:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=cc6658f5c8ba183987d45f981f8cd79a0ed998d0'/>
<id>urn:sha1:cc6658f5c8ba183987d45f981f8cd79a0ed998d0</id>
<content type='text'>
  Use %zu for size_t, not %zd.
</content>
</entry>
<entry>
<title>MFC r180603:</title>
<updated>2009-09-23T00:31:08Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2009-09-23T00:31:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5802a08b4d0ada32afe7eae04827f20e0e78269f'/>
<id>urn:sha1:5802a08b4d0ada32afe7eae04827f20e0e78269f</id>
<content type='text'>
  Use %zd for size_t.  With this gcore(1) is WARNS=6 clean.
</content>
</entry>
<entry>
<title>Eliminate memory leak from an accidental malloc().</title>
<updated>2007-04-10T17:37:53Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2007-04-10T17:37:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=affde8a968fe533061fe4bedb4701307d76cd70d'/>
<id>urn:sha1:affde8a968fe533061fe4bedb4701307d76cd70d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make gcore(1) 64 bit safe.  It was trying to parse the /proc/*/map file</title>
<updated>2006-03-25T01:14:20Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2006-03-25T01:14:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=045b6fdaf67c39935e1ee89d178fb33f25230a97'/>
<id>urn:sha1:045b6fdaf67c39935e1ee89d178fb33f25230a97</id>
<content type='text'>
using sscanf and truncating the start/end entries by writing them with a
32 bit int descriptor (%x).  The upper bytes of the 64 bit vm_offset_t
variables (for little endian machines) were uninitialized.  For big endian
machines, things would have been worse because it was storing the 32 bit
value in the upper half of the 64 bit variable.  I've changed it to use
%lx and long types.  That should work on all our platforms.
</content>
</entry>
<entry>
<title>Remove a.out support from gcore(1).</title>
<updated>2004-11-27T06:46:48Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2004-11-27T06:46:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c5ac569a4bc6f1a90c89a7d45727547c8f029b83'/>
<id>urn:sha1:c5ac569a4bc6f1a90c89a7d45727547c8f029b83</id>
<content type='text'>
</content>
</entry>
<entry>
<title>gcore(1) apparently still cares about a.out core dumps, so it still</title>
<updated>2004-11-20T02:30:02Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2004-11-20T02:30:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=6661339b82bfe60465f6bc97ea0963847f1958b4'/>
<id>urn:sha1:6661339b82bfe60465f6bc97ea0963847f1958b4</id>
<content type='text'>
needs to know that a 1-page U area is part of the dump format.

Reviewed by:	arch@
</content>
</entry>
<entry>
<title>Teach gcore about the pathname field of '/proc/*/map' so that it doesn't</title>
<updated>2004-07-12T20:19:40Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2004-07-12T20:19:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=22c147143472f885eef0d85724ffafcc73125cfd'/>
<id>urn:sha1:22c147143472f885eef0d85724ffafcc73125cfd</id>
<content type='text'>
spin when its parser gets confused by a lack of end-of-line.

Submitted by:	Dan Nelson &lt;dan@dan.emsphone.com&gt;
PR:		68839
</content>
</entry>
<entry>
<title>Deal with double whitespace.</title>
<updated>2004-07-03T00:24:45Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-07-03T00:24:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=557b7fa1488f8937156051e061ac3512330bcb7e'/>
<id>urn:sha1:557b7fa1488f8937156051e061ac3512330bcb7e</id>
<content type='text'>
</content>
</entry>
</feed>
