Make gdb_in_secondary_prompt_p() be per UI
authorPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:51 +0000 (01:11 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:51 +0000 (01:11 +0100)
commitdbf30ca3f5fec91671b37592f1a6644a2c36f67a
tree73f8bfedce01e0127c2f7794eacc6d24943d9304
parentb2d86570b316c347384c4ba9bb3933ed5e807fca
Make gdb_in_secondary_prompt_p() be per UI

gdb/ChangeLog:
2016-06-21  Pedro Alves  <palves@redhat.com>

* top.c (gdb_secondary_prompt_depth): Delete.
(gdb_in_secondary_prompt_p): Add ui parameter.  Use it.
(gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
per-UI gdb_secondary_prompt_depth.
* top.h (struct ui) <secondary_prompt_depth>: New field.
gdb/ChangeLog
gdb/top.c
gdb/top.h
gdb/tui/tui-io.c
gdb/tui/tui.c