Remove NO_DATA_STRING
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.
This commit is contained in:
parent
6744bcad05
commit
1f6d2f100a
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue