summaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 5d8d077a9a4..9056b46c60a 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -40,6 +40,7 @@
#include "buffer.h"
#include "ser-event.h"
#include "gdb_select.h"
+#include "user-selection.h"
/* readline include files. */
#include "readline/readline.h"
@@ -582,6 +583,9 @@ command_handler (char *command)
scoped_command_stats stat_reporter (true);
+ /* Before executing the command, apply the user selection to the gdb core. */
+ apply_global_user_selection ();
+
/* Do not execute commented lines. */
for (c = command; *c == ' ' || *c == '\t'; c++)
;