diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-06 11:32:06 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-15 12:29:28 -0600 |
commit | f2dda4778417e2d58a5b0416ff9598f68470cbfa (patch) | |
tree | dc9dbad1c7e2b148683885251447af0d6285c645 /gdb/tui/tui-data.h | |
parent | ed4a1084d725a5d1aecefc6a430d3059a77c102d (diff) | |
download | gdb-f2dda4778417e2d58a5b0416ff9598f68470cbfa.zip gdb-f2dda4778417e2d58a5b0416ff9598f68470cbfa.tar.gz gdb-f2dda4778417e2d58a5b0416ff9598f68470cbfa.tar.bz2 |
Move locator code to tui-stack.c
The locator is mostly implemented in tui-stack.c. This moves the
remaining bits to tui-stack.c and tui-stack.h, as appropriate.
gdb/ChangeLog
2019-08-15 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c: Include tui-stack.h.
* tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
(struct tui_locator_window): Move from tui-data.h.
* tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
(tui_initialize_static_data): Move from tui-data.c.
* tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
(struct tui_locator_window): Move to tui-stack.c.
* tui/tui-data.c (_locator, tui_locator_win_info_ptr)
(tui_initialize_static_data): Move to tui-stack.c.
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r-- | gdb/tui/tui-data.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 017e7a4..b5eeecd 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -148,31 +148,6 @@ struct tui_line_or_address } u; }; -#ifdef PATH_MAX -# define MAX_LOCATOR_ELEMENT_LEN PATH_MAX -#else -# define MAX_LOCATOR_ELEMENT_LEN 1024 -#endif - -/* Locator window class. */ - -struct tui_locator_window : public tui_gen_win_info -{ - tui_locator_window () - : tui_gen_win_info (LOCATOR_WIN) - { - full_name[0] = 0; - proc_name[0] = 0; - } - - char full_name[MAX_LOCATOR_ELEMENT_LEN]; - char proc_name[MAX_LOCATOR_ELEMENT_LEN]; - int line_no = 0; - CORE_ADDR addr = 0; - /* Architecture associated with code at this location. */ - struct gdbarch *gdbarch = nullptr; -}; - /* This defines information about each logical window. */ struct tui_win_info : public tui_gen_win_info { |