aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index f439d42..9739f28 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -850,7 +850,7 @@ select_frame (frame, level)
{
s = find_pc_symtab (get_frame_info (frame)->pc);
if (s
- && working_lang != s->language
+ && s->language != current_language->la_language
&& s->language != language_unknown
&& language_mode == language_mode_auto) {
set_language(s->language);