gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 13 Jan 2013 18:57:01 +0000 (18:57 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 13 Jan 2013 18:57:01 +0000 (18:57 +0000)
commit5b12a61c763421f05d233ebcce94d96536b5c5d4
tree9dcece33b9b32127276554e6b48baa2c434ec80a
parent57b3c00c27e8492b2f8342b38e2301e710e5fabf
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/ChangeLog
gdb/parse.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/parse-lang.cc [new file with mode: 0644]
gdb/testsuite/gdb.cp/parse-lang.exp [new file with mode: 0644]
gdb/utils.c
gdb/utils.h