[RFA] inadvertent language switch during breakpoint_re_set_one

Joel Brobecker brobecker@adacore.com
Thu May 10 20:59:00 GMT 2018


> For a plain scalar you can just use scoped_restore and make_scoped_restore.

Nice! Thanks Tom.

New patch attached.

gdb/ChangeLog:

        * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
        to language_mode_manual while calling breakpoint_re_set_one.

gdb/testsuite/ChangeLog:

        * gdb.ada/bp_fun_addr: New testcase.

Tested on x86_64-linux.

-- 
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-inadvertent-language-switch-during-breakpoint_re_set.patch
Type: text/x-diff
Size: 6120 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20180510/95dbd8ee/attachment.bin>


More information about the Gdb-patches mailing list