freebsd-dev/lib/libproc
Dimitry Andric 96ec3cdd8e 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
MFC after:	3 days
2014-08-09 12:25:06 +00:00
..
test NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
_libproc.h Allow "a.out" as an alias for the executable if no other matching entries 2014-05-03 04:44:03 +00:00
libproc.h If the traced process stops because it received a signal, libproc needs 2014-05-04 03:34:32 +00:00
Makefile In libproc, avoid calling __cxa_demangle(), and thus depending on either 2014-07-09 17:31:57 +00:00
proc_bkpt.c If the traced process stops because it received a signal, libproc needs 2014-05-04 03:34:32 +00:00
proc_create.c Allow "a.out" as an alias for the executable if no other matching entries 2014-05-03 04:44:03 +00:00
proc_regs.c Clean up the debug printing in libproc a bit. In particular: 2013-10-27 20:39:10 +00:00
proc_rtld.c Allow "a.out" as an alias for the executable if no other matching entries 2014-05-03 04:44:03 +00:00
proc_sym.c In r268463, I misplaced a return in demangle(), causing the function to 2014-08-09 12:25:06 +00:00
proc_util.c If the traced process stops because it received a signal, libproc needs 2014-05-04 03:34:32 +00:00