Use scoped_restore_current_language in two places
authorTom Tromey <tom@tromey.com>
Sat, 23 Mar 2019 15:43:49 +0000 (09:43 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 23 Mar 2019 16:18:15 +0000 (10:18 -0600)
commit9bb9b2f9d6d5aa90f579494d8407375a87a9ad0b
treedecac06af2245024c51a76359d310f13212eaebb
parentc90939d2d08caedf4f777112a1aafa0c69a9d1c1
Use scoped_restore_current_language in two places

I found a couple of spots that manually saved and restored the current
language.  This patch changes them to use
scoped_restore_current_language.

Tested by the buildbot.

gdb/ChangeLog
2019-03-23  Tom Tromey  <tom@tromey.com>

* linespec.c (get_current_search_block): Use
scoped_restore_current_language.
* symmisc.c (dump_symtab): Use scoped_restore_current_language.
gdb/ChangeLog
gdb/linespec.c
gdb/symmisc.c