gdb/tui: Prevent exceptions from trying to cross readline
authorPedro Alves <palves@redhat.com>
Sat, 11 Jan 2020 01:37:26 +0000 (01:37 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 24 Jan 2020 00:10:33 +0000 (00:10 +0000)
commit2f267673f0fdee9287e6d404ecd4f2d29da0d2f2
treec3bca4935c90db98be3db0b447883eaae28dd838
parenta05d007dfee18aafc8f2c36ef7594e6554f2e1db
gdb/tui: Prevent exceptions from trying to cross readline

This is triggered by simply scrolling off the end of the dissasembly
window.  This commit doesn't fix the actual exception that is being
thrown, which will still need to be fixed, but makes sure that we
don't ever throw an exception out to readline.

gdb/ChangeLog:
yyyy-mm-dd  Pedro Alves  <palves@redhat.com>

        PR tui/9765
        * tui/tui-io.c (tui_getc): Rename to ...
        (tui_getc_1): ... this.
        (tui_get): New, reimplent as try/catch wrapper around tui_getc_1.

Change-Id: I2e32a401ab34404b2132ec82a3e1c17b9b723e41
gdb/tui/tui-io.c