public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730)
@ 2024-05-14 10:56 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2024-05-14 10:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82

commit ec6ed525f1aa24fd38ea5153e88d14d92d0d2f82
Author: Andreas Schwab <schwab@suse.de>
Date:   Mon May 13 12:35:48 2024 +0200

    Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730)

Diff:
---
 debug/backtracesymsfd.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/debug/backtracesymsfd.c b/debug/backtracesymsfd.c
index ce784a9b2b..f68a4830e7 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;
 	    }
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-14 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-14 10:56 [glibc] Unify output from backtrace_symbols_fd with backtrace_symbols (bug 31730) Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).