]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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 fba2f4a995ec12171b5f5855a6287e91f8f683b7..0cb864fdfcb685cdfd48cb13ab43b4d780038689 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 f43035674d57ea3c61b07f4524ce750544a49798..1810fa3e729c026c5a9dcc731d315fd760eaa11b 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 71037d410470aec0d6142046851f069a74893be6..24b182f2aec20e69e5125e702e007bc54947b708 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);