]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730)
authorAndreas Schwab <schwab@suse.de>
Mon, 13 May 2024 10:35:48 +0000 (12:35 +0200)
committerAndreas Schwab <schwab@suse.de>
Tue, 14 May 2024 10:55:06 +0000 (12:55 +0200)
debug/backtracesymsfd.c

index ce784a9b2b56fe20e4fafc0e534b3d2279c69786..f68a4830e7c25e8e420196b195e70b0f8bc7f2ee 100644 (file)
@@ -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;
            }
        }