mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
Move TUI data item window to tui-regs.h
The TUI data item window is only used by the TUI register window. So, this patch moves the relevant code to tui-regs.[ch]. gdb/ChangeLog 2019-07-17 Tom Tromey <tom@tromey.com> * tui/tui-regs.h (struct tui_data_item_window): Move from tui-data.h. * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c. * tui/tui-data.h (struct tui_data_item_window): Move to tui-regs.h. * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2019-07-17 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* tui/tui-regs.h (struct tui_data_item_window): Move from
|
||||||
|
tui-data.h.
|
||||||
|
* tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
|
||||||
|
* tui/tui-data.h (struct tui_data_item_window): Move to
|
||||||
|
tui-regs.h.
|
||||||
|
* tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
|
||||||
|
|
||||||
2019-07-17 Tom Tromey <tom@tromey.com>
|
2019-07-17 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* tui/tui.c: Update.
|
* tui/tui.c: Update.
|
||||||
|
@ -333,14 +333,3 @@ tui_source_window_base::~tui_source_window_base ()
|
|||||||
xfree (fullname);
|
xfree (fullname);
|
||||||
delete execution_info;
|
delete execution_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************
|
|
||||||
** LOCAL STATIC FUNCTIONS **
|
|
||||||
**********************************/
|
|
||||||
|
|
||||||
|
|
||||||
tui_data_item_window::~tui_data_item_window ()
|
|
||||||
{
|
|
||||||
xfree (value);
|
|
||||||
xfree (content);
|
|
||||||
}
|
|
||||||
|
@ -249,25 +249,6 @@ struct tui_locator_window : public tui_gen_win_info
|
|||||||
struct gdbarch *gdbarch = nullptr;
|
struct gdbarch *gdbarch = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* A data item window. */
|
|
||||||
|
|
||||||
struct tui_data_item_window : public tui_gen_win_info
|
|
||||||
{
|
|
||||||
tui_data_item_window ()
|
|
||||||
: tui_gen_win_info (DATA_ITEM_WIN)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
~tui_data_item_window () override;
|
|
||||||
|
|
||||||
const char *name = nullptr;
|
|
||||||
/* The register number, or data display number. */
|
|
||||||
int item_no = -1;
|
|
||||||
void *value = nullptr;
|
|
||||||
bool highlight = false;
|
|
||||||
char *content = nullptr;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* This defines information about each logical window. */
|
/* This defines information about each logical window. */
|
||||||
struct tui_win_info : public tui_gen_win_info
|
struct tui_win_info : public tui_gen_win_info
|
||||||
{
|
{
|
||||||
|
@ -53,6 +53,15 @@ static void tui_get_register (struct frame_info *frame,
|
|||||||
struct tui_data_item_window *data,
|
struct tui_data_item_window *data,
|
||||||
int regnum, bool *changedp);
|
int regnum, bool *changedp);
|
||||||
|
|
||||||
|
|
||||||
|
/* See tui-regs.h. */
|
||||||
|
|
||||||
|
tui_data_item_window::~tui_data_item_window ()
|
||||||
|
{
|
||||||
|
xfree (value);
|
||||||
|
xfree (content);
|
||||||
|
}
|
||||||
|
|
||||||
/* See tui-regs.h. */
|
/* See tui-regs.h. */
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -24,6 +24,25 @@
|
|||||||
|
|
||||||
#include "tui/tui-data.h"
|
#include "tui/tui-data.h"
|
||||||
|
|
||||||
|
/* A data item window. */
|
||||||
|
|
||||||
|
struct tui_data_item_window : public tui_gen_win_info
|
||||||
|
{
|
||||||
|
tui_data_item_window ()
|
||||||
|
: tui_gen_win_info (DATA_ITEM_WIN)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
~tui_data_item_window () override;
|
||||||
|
|
||||||
|
const char *name = nullptr;
|
||||||
|
/* The register number, or data display number. */
|
||||||
|
int item_no = -1;
|
||||||
|
void *value = nullptr;
|
||||||
|
bool highlight = false;
|
||||||
|
char *content = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
/* The TUI registers window. */
|
/* The TUI registers window. */
|
||||||
struct tui_data_window : public tui_win_info
|
struct tui_data_window : public tui_win_info
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user