History log of /freebsd-10-stable/lib/libproc/proc_sym.c
Revision Date Author Comments
# 279082 20-Feb-2015 rpaulo

MFC r278658:

Teach libproc how to find debugging symbols in /usr/lib/debug.


# 270731 27-Aug-2014 markj

MFC r265255, r270506:
Allow "a.out" as an alias for the executable if no other matching entries
are found.


# 269885 12-Aug-2014 dim

MFC r269750:

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


# 268775 16-Jul-2014 dim

MFC r268463:

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.


# 265073 29-Apr-2014 markj

MFC r264436:
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.


# 259972 27-Dec-2013 markj

MFC r258000:
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.


# 259965 27-Dec-2013 markj

MFC r257300:
Fix an off-by-one error when checking whether a given address is within
the extent of a symbol.


# 259895 25-Dec-2013 markj

MFC r256661 r257222 r257235 r257248 r257298.

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).


# 279082 20-Feb-2015 rpaulo

MFC r278658:

Teach libproc how to find debugging symbols in /usr/lib/debug.


# 270731 27-Aug-2014 markj

MFC r265255, r270506:
Allow "a.out" as an alias for the executable if no other matching entries
are found.


# 269885 12-Aug-2014 dim

MFC r269750:

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


# 268775 16-Jul-2014 dim

MFC r268463:

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.


# 265073 29-Apr-2014 markj

MFC r264436:
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.


# 259972 27-Dec-2013 markj

MFC r258000:
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.


# 259965 27-Dec-2013 markj

MFC r257300:
Fix an off-by-one error when checking whether a given address is within
the extent of a symbol.


# 259895 25-Dec-2013 markj

MFC r256661 r257222 r257235 r257248 r257298.

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).