Remove NO_DATA_STRING
authorTom Tromey <tom@tromey.com>
Sun, 14 Jul 2019 14:21:16 +0000 (08:21 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Aug 2019 18:57:02 +0000 (12:57 -0600)
NO_DATA_STRING shouldn't be used.  It's referenced in a single spot,
in tui_data_window::display_all_data.  This patch removes the use and
replaces it with the more correct text.  A later patch (though not in
this series) will remove this call entirely, when it's more obviously
correct to do so.

gdb/ChangeLog
2019-08-30  Tom Tromey  <tom@tromey.com>

* tui/tui-regs.c (tui_data_window::display_all_data): Change
text.
* tui/tui-data.h (NO_DATA_STRING): Remove define.

gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-regs.c

index fba2f4a..0cb864f 100644 (file)
@@ -1,3 +1,9 @@
+2019-08-30  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.c (tui_data_window::display_all_data): Change
+       text.
+       * tui/tui-data.h (NO_DATA_STRING): Remove define.
+
 2019-08-29  Bernhard Wodok  <barto@gmx.net>
            Sergio Durigan Junior  <sergiodj@redhat.com>
 
index f430356..1810fa3 100644 (file)
@@ -98,7 +98,6 @@ public:
 
 /* Constant definitions.  */
 #define DEFAULT_TAB_LEN         8
-#define NO_DATA_STRING          "[ No Data Values Displayed ]"
 #define SRC_NAME                "src"
 #define CMD_NAME                "cmd"
 #define DATA_NAME               "regs"
index 71037d4..24b182f 100644 (file)
@@ -437,7 +437,7 @@ void
 tui_data_window::display_all_data ()
 {
   if (regs_content.empty ())
-    erase_data_content (NO_DATA_STRING);
+    erase_data_content (_("[ Register Values Unavailable ]"));
   else
     {
       erase_data_content (NULL);