On Tue, Dec 05, 2017 at 07:01:02PM +0900, Masatake YAMATO wrote:
> I'm planning to linke strace with libiberty for mangling C++
> symbol appearted in stack trace enabled with -k option.
> 
> Both the names, xmalloc and xcalloc, are already used in the
> library. Therefore I rename the symbols defined in strace.

Aren't xmalloc and xcalloc provided by strace compatible with those
provided by libiberty?  If strace also provided xrealloc, would it be
sufficient for libiberty?  If for any reason we'd have to rename these
functions in strace, would it be enough just to add renaming macros,
e.g. to xmalloc.h?

> ---
>  bpf.c            | 2 +-
>  count.c          | 4 ++--
>  dyxlat.c         | 4 ++--
>  filter_qualify.c | 2 +-
>  mmsghdr.c        | 2 +-
>  number_set.c     | 2 +-
>  pathtrace.c      | 2 +-
>  perf.c           | 4 ++--
>  strace.c         | 4 ++--
>  syscall.c        | 4 ++--
>  unwind.c         | 8 ++++----
>  util.c           | 4 ++--
>  xmalloc.c        | 6 +++---
>  xmalloc.h        | 4 ++--
>  14 files changed, 26 insertions(+), 26 deletions(-)


-- 
ldv

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to