aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-loop.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-12-16 20:29:28 +0000
committerPedro Alves <palves@redhat.com>2011-12-16 20:29:28 +0000
commit77cce10fc22521660c7b1e42061693b69a62c449 (patch)
tree0f9365df5b876f17fe5f8107b221ea0242b7ff50 /gdb/inf-loop.c
parentf4aa2101983cbddf6c79da013b085940f04decd5 (diff)
downloadgdb-77cce10fc22521660c7b1e42061693b69a62c449.zip
gdb-77cce10fc22521660c7b1e42061693b69a62c449.tar.gz
gdb-77cce10fc22521660c7b1e42061693b69a62c449.tar.bz2
2011-12-16 Pedro Alves <pedro@codesourcery.com>
* inf-loop.c: Include top.h. (inferior_event_handler): Call check_frame_language. * top.c (check_frame_language_change): New, factored out from ... (execute_command): ... this. Use check_frame_language_change. * top.h (check_frame_language_change): Declare.
Diffstat (limited to 'gdb/inf-loop.c')
-rw-r--r--gdb/inf-loop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c
index 8e49e91..c768400 100644
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -30,6 +30,7 @@
#include "gdbthread.h"
#include "continuations.h"
#include "interps.h"
+#include "top.h"
static int fetch_inferior_event_wrapper (gdb_client_data client_data);
@@ -107,10 +108,7 @@ inferior_event_handler (enum inferior_event_type event_type,
{
volatile struct gdb_exception e;
- if (info_verbose
- && current_language != expected_language
- && language_mode == language_mode_auto)
- language_info (1); /* Print what changed. */
+ check_frame_language_change ();
/* Don't propagate breakpoint commands errors. Either we're
stopping or some command resumes the inferior. The user will