diff options
author | Andreas Schwab <schwab@suse.de> | 2024-05-13 12:35:48 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2024-05-14 12:55:06 +0200 |
commit | ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82 (patch) | |
tree | 6c9015db0a57fcceb7b7bee7e1fb0f2cf335dd97 /debug | |
parent | a07e000e82cb71238259e674529c37c12dc7d423 (diff) | |
download | glibc-ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82.zip glibc-ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82.tar.gz glibc-ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82.tar.bz2 |
Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730)
Diffstat (limited to 'debug')
-rw-r--r-- | debug/backtracesymsfd.c | 10 |
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; } } |