+2008-05-24 Andreas Schwab <schwab@suse.de>
+
+ * linespec.c (decode_objc): Save current language around call to
+ get_selected_block.
+
2008-05-23 Joel Brobecker <brobecker@adacore.com>
* valprint.h (get_array_bounds): Renames get_array_low_bound.
if (file_symtab != NULL)
block = BLOCKVECTOR_BLOCK (BLOCKVECTOR (file_symtab), STATIC_BLOCK);
else
- block = get_selected_block (0);
-
+ {
+ enum language save_language;
+
+ /* get_selected_block can change the current language when there is
+ no selected frame yet. */
+ save_language = current_language->la_language;
+ block = get_selected_block (0);
+ set_language (save_language);
+ }
+
copy = find_imps (file_symtab, block, *argptr, NULL, &i1, &i2);
if (i1 > 0)