This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC/WIP PATCH v2 11/12] Default the current itset to the current inferior set (curset).
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 17 Dec 2011 03:00:05 +0000
- Subject: [RFC/WIP PATCH v2 11/12] Default the current itset to the current inferior set (curset).
- References: <20111217025904.22456.50717.stgit@localhost6.localdomain6>
This goes hand-in-hand with the next patch. So far, we default to
"all". And, the "set schedule-multiple" is "off" by default. This
means, that in some cases that "all" isn't really "all", but the
inferior of the selected thread only. This is confusing.
If by default we only focus on the current inferior, then we can flip
the schedule-multiple setting to on, meaning, resume all inferiors in
the focus, and so the schedule-multiple setting isn't really required
anymore.
---
gdb/itset.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/itset.c b/gdb/itset.c
index dfa2c5f..d65cc37 100644
--- a/gdb/itset.c
+++ b/gdb/itset.c
@@ -2513,7 +2513,7 @@ _initialize_itset (void)
make_internal_itset (stopped_itset, "stopped");
make_internal_itset (curinf_itset, "curinf");
- current_itset = itset_reference (all_itset);
+ current_itset = itset_reference (curinf_itset);
add_com ("itfocus", no_class, itfocus_command, _("\
Change the set of current inferiors/threads."));