aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2024-05-13 12:35:48 +0200
committerAndreas Schwab <schwab@suse.de>2024-05-14 12:55:06 +0200
commitec6ed525f1aa24fd38ea5153e88d14d92d0d2f82 (patch)
tree6c9015db0a57fcceb7b7bee7e1fb0f2cf335dd97
parenta07e000e82cb71238259e674529c37c12dc7d423 (diff)
downloadglibc-ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82.zip
glibc-ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82.tar.gz
glibc-ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82.tar.bz2
Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730)
-rw-r--r--debug/backtracesymsfd.c10
1 files changed, 8 insertions, 2 deletions
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;
}
}