aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2008-04-19 06:09:37 +0000
committerNick Roberts <nickrob@snap.net.nz>2008-04-19 06:09:37 +0000
commitdc67126b79eb4f41d0eb069701d15aec40cfa7c6 (patch)
treedd9f34f1b0bc972cb3313d6a3aebb720765f596b /gdb
parent79a688876b0a1bfc36bc0637123ec1f288f33285 (diff)
downloadgdb-dc67126b79eb4f41d0eb069701d15aec40cfa7c6.zip
gdb-dc67126b79eb4f41d0eb069701d15aec40cfa7c6.tar.gz
gdb-dc67126b79eb4f41d0eb069701d15aec40cfa7c6.tar.bz2
Include interps.h and mi/mi-cmds.h.
(decode_line_2): When using MI, always set all breakpoints in menu.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/linespec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index f78a681..9ffbfd7 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -36,6 +36,8 @@
#include "linespec.h"
#include "exceptions.h"
#include "language.h"
+#include "interps.h"
+#include "mi/mi-cmds.h"
/* We share this one with symtab.c, but it is not exported widely. */
@@ -524,7 +526,8 @@ See set/show multiple-symbol."));
/* If select_mode is "all", then do not print the multiple-choice
menu and act as if the user had chosen choice "1" (all). */
- if (select_mode == multiple_symbols_all)
+ if (select_mode == multiple_symbols_all
+ || ui_out_is_mi_like_p (interp_ui_out (top_level_interpreter ())))
args = "1";
else
{