summaryrefslogtreecommitdiff
path: root/gdb/utils.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-01-13 18:57:01 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-01-13 18:57:01 +0000
commit5b12a61c763421f05d233ebcce94d96536b5c5d4 (patch)
tree9dcece33b9b32127276554e6b48baa2c434ec80a /gdb/utils.h
parent57b3c00c27e8492b2f8342b38e2301e710e5fabf (diff)
downloadbinutils-gdb-5b12a61c763421f05d233ebcce94d96536b5c5d4.tar.gz
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.
Diffstat (limited to 'gdb/utils.h')
-rw-r--r--gdb/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/utils.h b/gdb/utils.h
index 14235a9b356..6983a53c6f9 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 *);