Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730)

This commit is contained in:
Andreas Schwab 2024-05-13 12:35:48 +02:00
parent a07e000e82
commit ec6ed525f1

View File

@ -95,8 +95,14 @@ __backtrace_symbols_fd (void *const *array, int size, int fd)
- (char *) iov[last].iov_base); - (char *) iov[last].iov_base);
++last; ++last;
iov[last].iov_base = (void *) ")"; iov[last].iov_base = (void *) ") ";
iov[last].iov_len = 1; iov[last].iov_len = 2;
++last;
}
else
{
iov[last].iov_base = (void *) "() ";
iov[last].iov_len = 3;
++last; ++last;
} }
} }