<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libproc, branch release/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-08-27T19:51:42Z</updated>
<entry>
<title>MFC r265255, r270506:</title>
<updated>2014-08-27T19:51:42Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2014-08-27T19:51:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f452e98a4dfc133f2982ce5e544595a54a207814'/>
<id>urn:sha1:f452e98a4dfc133f2982ce5e544595a54a207814</id>
<content type='text'>
Allow "a.out" as an alias for the executable if no other matching entries
are found.
</content>
</entry>
<entry>
<title>MFC r269750:</title>
<updated>2014-08-12T17:56:48Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2014-08-12T17:56:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d1039c0d6f7746eab05b1bda8264fb7ddad26156'/>
<id>urn:sha1:d1039c0d6f7746eab05b1bda8264fb7ddad26156</id>
<content type='text'>
In r268463, I misplaced a return in demangle(), causing the function to
erroneously skip symbols that were not mangled at all.  Fix this by
moving the return into the preceding if block.

While here, simplify the code by letting __cxa_demangle() allocate the
needed space for the demangled symbol.  This also fixes a memory leak,
which would occur whenever __cxa_demangle() failed.

Reported by:	pgj
PR:		base/191981
</content>
</entry>
<entry>
<title>MFC r265308:</title>
<updated>2014-08-09T15:00:03Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2014-08-09T15:00:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f72c2ba1ee466aa5af1b0a2b95d7067256e534b8'/>
<id>urn:sha1:f72c2ba1ee466aa5af1b0a2b95d7067256e534b8</id>
<content type='text'>
If the traced process stops because it received a signal, libproc needs
to ensure that the signal is forwarded when proc_continue() is called.
</content>
</entry>
<entry>
<title>MFC r268463:</title>
<updated>2014-07-16T21:04:31Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2014-07-16T21:04:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7dc2a58f4a88ba8aa6203230992770aedcca31fb'/>
<id>urn:sha1:7dc2a58f4a88ba8aa6203230992770aedcca31fb</id>
<content type='text'>
In libproc, avoid calling __cxa_demangle(), and thus depending on either
libcxxrt or libsupc++, if WITHOUT_CXX is defined. [1]

Noticed by:	sbruno

[1] However, on stable/10 this is more accurately described by
WITHOUT_GNUCXX, so I've changed the test to that instead.
</content>
</entry>
<entry>
<title>MFC r264436:</title>
<updated>2014-04-29T03:36:04Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2014-04-29T03:36:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2fdf91ecdfe1671fd042b099bb9cad0f9ee9358'/>
<id>urn:sha1:f2fdf91ecdfe1671fd042b099bb9cad0f9ee9358</id>
<content type='text'>
Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain the
first address after the end of the map entry and should therefore be
excluded.
</content>
</entry>
<entry>
<title>MFC r258000:</title>
<updated>2013-12-27T23:00:56Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2013-12-27T23:00:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9bae78a81afed6244bd10ab60f01ae349faa70ef'/>
<id>urn:sha1:9bae78a81afed6244bd10ab60f01ae349faa70ef</id>
<content type='text'>
Consistently add the relocation offset only when the ELF type is not
ET_EXEC. This fixes several problems with the DTrace pid provider not
being able to match probes.
</content>
</entry>
<entry>
<title>MFC r257670:</title>
<updated>2013-12-27T22:30:36Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2013-12-27T22:30:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6724b7cd2f5d8b9a9067186a27b4235a3540415f'/>
<id>urn:sha1:6724b7cd2f5d8b9a9067186a27b4235a3540415f</id>
<content type='text'>
Modify the libproc breakpoint add/remove functions to stop the target
process if it has not already been stopped, since this is required for
ptrace(2) to work.

libdtrace does not seem to stop target processes before trying to remove
their breakpoints, so we were previously failing to remove the breakpoint
on r_debug_state() in rtld. This was causing processes to die with SIGTRAP
if they called dlopen(3) after dtrace(1) had detached.
</content>
</entry>
<entry>
<title>MFC r257300:</title>
<updated>2013-12-27T22:19:19Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2013-12-27T22:19:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6810edc880e719bc1ea5b0ddb3d9dad5afb1a6f7'/>
<id>urn:sha1:6810edc880e719bc1ea5b0ddb3d9dad5afb1a6f7</id>
<content type='text'>
Fix an off-by-one error when checking whether a given address is within
the extent of a symbol.
</content>
</entry>
<entry>
<title>MFC r256661 r257222 r257235 r257248 r257298.</title>
<updated>2013-12-25T22:36:27Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2013-12-25T22:36:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=54271d3c1b84ffde2fa9c8f03e1b32b08534d6a2'/>
<id>urn:sha1:54271d3c1b84ffde2fa9c8f03e1b32b08534d6a2</id>
<content type='text'>
MFC r256661:
Fix the libproc build when DEBUG is defined.

MFC r257222:
Clean up the debug printing in libproc a bit. In particular:

* Don't print any error messages to stderr unless DEBUG is defined.
* Add a DPRINTFX macro for use when errno isn't set.
* Print the error string from libelf when appropriate.

MFC r257235:
Remove an incorrect debug printf.

MFC r257248:
Fix the build with gcc.

MFC r257298:
Revert r257248 and fix the problem in a way that doesn't violate style(9).
</content>
</entry>
<entry>
<title>Fix the return value when we found a symbol in .dynstr. This nasty bug was</title>
<updated>2013-08-10T07:39:15Z</updated>
<author>
<name>Rui Paulo</name>
<email>rpaulo@FreeBSD.org</email>
</author>
<published>2013-08-10T07:39:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7bc9877d2021fb83d49ecefbdad04c6677c086be'/>
<id>urn:sha1:7bc9877d2021fb83d49ecefbdad04c6677c086be</id>
<content type='text'>
preventing a lot of symbol lookups in dtruss -s, for example.
</content>
</entry>
</feed>
