Use breakpoint location to parse condition over current language.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 17 May 2010 17:23:33 +0000 (17:23 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 17 May 2010 17:23:33 +0000 (17:23 +0000)
commit0cce5bd9dd8b740485b4ce847a0bd09a23097076
treeb8961b145e807ba2980eb8928b852a0d420414da
parent5f19d646befbb9597a7dc4c44eccacb8ef5ab80c
Use breakpoint location to parse condition over current language.

gdb/ChangeLog:

        * parse.c (parse_exp_in_context): When block is not NULL, use
        its associated language to parse the expression instead of
        the current_language.

gdb/testsuite/ChangeLog:

        * gdb.ada/cond_lang: New testcase.
gdb/ChangeLog
gdb/parse.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/cond_lang.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/cond_lang/a.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/cond_lang/foo.c [new file with mode: 0644]
gdb/testsuite/gdb.ada/cond_lang/mixed.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/cond_lang/mixed.ads [new file with mode: 0644]
gdb/testsuite/gdb.ada/cond_lang/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/cond_lang/pck.ads [new file with mode: 0644]