[Bug cli/29582] Usability improvement: CTRL+C when debugindod client is downloading a file

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Tue Sep 20 11:28:40 GMT 2022


https://sourceware.org/bugzilla/show_bug.cgi?id=29582

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
This seems to work:
...
diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c
index 5f04a2b38ca..69dad2b9b86 100644
--- a/gdb/debuginfod-support.c
+++ b/gdb/debuginfod-support.c
@@ -119,6 +119,12 @@ progressfn (debuginfod_client *c, long cur, long total)
       gdb_printf ("Cancelling download of %s %ps...\n",
                  data->desc,
                  styled_string (file_name_style.style (), data->fname));
+      int resp = nquery (_("Cancel further downloading for this session? "));

+      if (resp)
+       {
+         gdb_printf (_("Debuginfod has been disabled.\n"));
+         debuginfod_enabled = debuginfod_off;
+       }
       return 1;
     }

...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list