Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb: print size of downloaded debuginfod binary
@ 2020-12-07 11:43 Martin Liška
  2020-12-07 17:07 ` Simon Marchi via Gdb-patches
  0 siblings, 1 reply; 17+ messages in thread
From: Martin Liška @ 2020-12-07 11:43 UTC (permalink / raw)
  To: gdb-patches

With the patch, one can see now:

Reading symbols from /usr/bin/gcc...
Downloading 2.69 MiB separate debug info for /usr/bin/gcc...
Downloading 1.00 MiB separate debug info for /lib64/ld-linux-x86-64.so.2...
Downloading 10.72 MiB separate debug info for /lib64/libc.so.6...
...

ChangeLog:

	* gdb/debuginfod-support.c (progressfn): Print size of the
	downloaded debunginfod binary.
---
  gdb/debuginfod-support.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c
index e21b2f40ca..ffc832e936 100644
--- a/gdb/debuginfod-support.c
+++ b/gdb/debuginfod-support.c
@@ -84,8 +84,8 @@ progressfn (debuginfod_client *c, long cur, long total)
      {
        /* Print this message only once.  */
        data->has_printed = true;
-      printf_filtered ("Downloading %s %ps...\n",
-		       data->desc,
+      printf_filtered ("Downloading %.2f MiB %s %ps...\n",
+		       1.0f * total / (1024 * 1024), data->desc,
  		       styled_string (file_name_style.style (), data->fname));
      }
  
-- 
2.29.2


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-12-15 20:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 11:43 [PATCH] gdb: print size of downloaded debuginfod binary Martin Liška
2020-12-07 17:07 ` Simon Marchi via Gdb-patches
2020-12-08 10:16   ` Martin Liška
2020-12-08 14:28     ` Simon Marchi via Gdb-patches
2020-12-09 10:51       ` Martin Liška
2020-12-09 23:26         ` Tom de Vries
2020-12-10  8:26           ` Martin Liška
2020-12-10 19:21           ` Tom Tromey
2020-12-11 17:51             ` [gdb/cli] Add a progress meter Tom de Vries
2020-12-11 17:54               ` [PATCH] gdb: print size of downloaded debuginfod binary Tom de Vries
2020-12-11 19:23                 ` Tom Tromey
2020-12-12 16:43                   ` Tom de Vries
2020-12-15 20:29                     ` Tom Tromey
2020-12-11 19:21               ` [gdb/cli] Add a progress meter Tom Tromey
2020-12-12 16:35                 ` Tom de Vries
2020-12-15 20:28                   ` Tom Tromey
2020-12-09 20:16   ` [PATCH] gdb: print size of downloaded debuginfod binary Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox