From ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 13 May 2024 12:35:48 +0200 Subject: Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730) --- debug/backtracesymsfd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'debug') diff --git a/debug/backtracesymsfd.c b/debug/backtracesymsfd.c index ce784a9..f68a483 100644 --- a/debug/backtracesymsfd.c +++ b/debug/backtracesymsfd.c @@ -95,8 +95,14 @@ __backtrace_symbols_fd (void *const *array, int size, int fd) - (char *) iov[last].iov_base); ++last; - iov[last].iov_base = (void *) ")"; - iov[last].iov_len = 1; + iov[last].iov_base = (void *) ") "; + iov[last].iov_len = 2; + ++last; + } + else + { + iov[last].iov_base = (void *) "() "; + iov[last].iov_len = 3; ++last; } } -- cgit v1.1