diff options
Diffstat (limited to 'gdb/top.h')
-rw-r--r-- | gdb/top.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/top.h b/gdb/top.h index df96baa1672..9766cd58601 100644 --- a/gdb/top.h +++ b/gdb/top.h @@ -57,6 +57,9 @@ struct ui /* Pointer to next in singly-linked list. */ struct ui *next; + /* Convenient handle (UI number). Unique across all UIs. */ + int num; + /* The UI's command line buffer. This is to used to accumulate input until we have a whole command line. */ struct buffer line_buffer; @@ -170,6 +173,9 @@ extern void switch_thru_all_uis_next (struct switch_thru_all_uis *state); #define ALL_UIS(UI) \ for (UI = ui_list; UI; UI = UI->next) \ +/* Create a new UI. */ +extern struct ui *new_ui (FILE *instream, FILE *outstream, FILE *errstream); + /* Cleanup that restores the current UI. */ extern void restore_ui_cleanup (void *data); |