If you have many sections, "maint print sections" can take a very long
time (due to a bug). If you happen to "c" at the pagination prompt,
this can't be interrupted. This patch adds a QUIT to the loop to at
least allow interruption.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32758
Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
#include "gdbsupport/selftest.h"
#include "inferior.h"
#include "gdbsupport/thread-pool.h"
+#include "event-top.h"
#include "cli/cli-decode.h"
#include "cli/cli-utils.h"
for (asection *sect : gdb_bfd_sections (abfd))
{
+ QUIT;
+
obj_section *osect = nullptr;
if (objfile != nullptr)