• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisione555083f95748276ab7a229c46aa8d5c0ef9fbc4 (tree)
l'heure2020-07-02 12:21:13
AuteurTom Tromey <tom@trom...>
CommiterTom Tromey

Message de Log

Move some code out of tui-data.h

This moves some code out of tui-data.h, to more closely related
places. Some unused forward declarations are also removed.

gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>

* tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
* tui/tui-winsource.h (enum tui_line_or_address_kind)
(struct tui_line_or_address): Move from tui-data.h.
* tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
* tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
(tui_cmd_window, tui_source_window_base, tui_source_window)
(tui_disasm_window): Don't declare.
(enum tui_line_or_address_kind, struct tui_line_or_address): Move
to tui-winsource.h.
(SINGLE_KEY): Move to tui-stack.c.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,18 @@
11 2020-07-01 Tom Tromey <tom@tromey.com>
22
3+ * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4+ * tui/tui-winsource.h (enum tui_line_or_address_kind)
5+ (struct tui_line_or_address): Move from tui-data.h.
6+ * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7+ * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
8+ (tui_cmd_window, tui_source_window_base, tui_source_window)
9+ (tui_disasm_window): Don't declare.
10+ (enum tui_line_or_address_kind, struct tui_line_or_address): Move
11+ to tui-winsource.h.
12+ (SINGLE_KEY): Move to tui-stack.c.
13+
14+2020-07-01 Tom Tromey <tom@tromey.com>
15+
316 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
417 std::string.
518 * tui/tui-regs.c (class tab_expansion_file): New.
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -26,11 +26,6 @@
2626 #include "gdb_curses.h" /* For WINDOW. */
2727 #include "observable.h"
2828
29-struct tui_cmd_window;
30-struct tui_source_window_base;
31-struct tui_source_window;
32-struct tui_disasm_window;
33-
3429 /* A deleter that calls delwin. */
3530 struct curses_deleter
3631 {
@@ -125,7 +120,6 @@ public:
125120 };
126121
127122 /* Constant definitions. */
128-#define DEFAULT_TAB_LEN 8
129123 #define SRC_NAME "src"
130124 #define CMD_NAME "cmd"
131125 #define DATA_NAME "regs"
@@ -133,26 +127,6 @@ public:
133127 #define STATUS_NAME "status"
134128 #define MIN_WIN_HEIGHT 3
135129
136-/* Strings to display in the TUI status line. */
137-#define SINGLE_KEY "(SingleKey)"
138-
139-enum tui_line_or_address_kind
140-{
141- LOA_LINE,
142- LOA_ADDRESS
143-};
144-
145-/* Structure describing source line or line address. */
146-struct tui_line_or_address
147-{
148- enum tui_line_or_address_kind loa;
149- union
150- {
151- int line_no;
152- CORE_ADDR addr;
153- } u;
154-};
155-
156130 /* This defines information about each logical window. */
157131 struct tui_win_info : public tui_gen_win_info
158132 {
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -43,6 +43,9 @@
4343 #define LINE_PREFIX "L"
4444 #define PC_PREFIX "PC: "
4545
46+/* Strings to display in the TUI status line. */
47+#define SINGLE_KEY "(SingleKey)"
48+
4649 /* Minimum/Maximum length of some fields displayed in the TUI status
4750 line. */
4851 #define MIN_LINE_WIDTH 4 /* Use at least 4 digits for line
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -753,6 +753,8 @@ tui_refresh_all_command (const char *arg, int from_tty)
753753 tui_refresh_all_win ();
754754 }
755755
756+#define DEFAULT_TAB_LEN 8
757+
756758 /* The tab width that should be used by the TUI. */
757759
758760 unsigned int tui_tab_width = DEFAULT_TAB_LEN;
--- a/gdb/tui/tui-winsource.h
+++ b/gdb/tui/tui-winsource.h
@@ -25,6 +25,23 @@
2525 #include "tui/tui-data.h"
2626 #include "symtab.h"
2727
28+enum tui_line_or_address_kind
29+{
30+ LOA_LINE,
31+ LOA_ADDRESS
32+};
33+
34+/* Structure describing source line or line address. */
35+struct tui_line_or_address
36+{
37+ enum tui_line_or_address_kind loa;
38+ union
39+ {
40+ int line_no;
41+ CORE_ADDR addr;
42+ } u;
43+};
44+
2845 /* Flags to tell what kind of breakpoint is at current line. */
2946 enum tui_bp_flag
3047 {