From 5b12a61c763421f05d233ebcce94d96536b5c5d4 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 13 Jan 2013 18:57:01 +0000 Subject: gdb/ * parse.c (parse_exp_in_context): New variable inner_chain. Call make_cleanup_restore_current_language. Call set_language. Move OLD_CHAIN and INNER_CHAIN cleanups. * utils.c (do_restore_current_language) (make_cleanup_restore_current_language): New functions. * utils.h (make_cleanup_restore_current_language): New declaration. gdb/testsuite/ * gdb.cp/parse-lang.cc: New file. * gdb.cp/parse-lang.exp: New file. --- gdb/utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/utils.h') diff --git a/gdb/utils.h b/gdb/utils.h index 14235a9..6983a53 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -104,6 +104,8 @@ extern struct cleanup *make_cleanup_value_free (struct value *); struct so_list; extern struct cleanup *make_cleanup_free_so (struct so_list *so); +extern struct cleanup *make_cleanup_restore_current_language (void); + extern struct cleanup *make_cleanup_htab_delete (htab_t htab); extern void free_current_contents (void *); -- cgit v1.1