diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2005-11-01 17:40:25 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2005-11-01 17:40:25 +0000 |
commit | 362c05fe98907eeba515c04386aee99936914114 (patch) | |
tree | fdf7e5641627956309e33c7bab0f0c71da230c3d /gdb/tui/tui-layout.c | |
parent | 3929abe911f69151c090ce5f3912324b852d273c (diff) | |
download | gdb-362c05fe98907eeba515c04386aee99936914114.zip gdb-362c05fe98907eeba515c04386aee99936914114.tar.gz gdb-362c05fe98907eeba515c04386aee99936914114.tar.bz2 |
2005-11-01 Andrew Stubbs <andrew.stubbs@st.com>
* tui/tui-data.h (tui_line_or_address): Encapsulate the union in a
struct with a tag.
(tui_source_element, tui_source_info): Update.
* tui/tui-disasm.c, tui/tui-source.c: Update to use the tagged union.
* tui/tui-source.h, tui/tui-stack.c, tui/tui-win.c: Likewise.
* tui/tui-winsource.c, tui/tui-data.c, tui/tui-layout.c: Likewise.
* tui/tui-winsource.h: Likewise.
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r-- | gdb/tui/tui-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index d2d8efe..5b65533 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -519,14 +519,14 @@ extract_display_start_addr (void) case SRC_COMMAND: case SRC_DATA_COMMAND: find_line_pc (cursal.symtab, - TUI_SRC_WIN->detail.source_info.start_line_or_addr.line_no, + TUI_SRC_WIN->detail.source_info.start_line_or_addr.u.line_no, &pc); addr = pc; break; case DISASSEM_COMMAND: case SRC_DISASSEM_COMMAND: case DISASSEM_DATA_COMMAND: - addr = TUI_DISASM_WIN->detail.source_info.start_line_or_addr.addr; + addr = TUI_DISASM_WIN->detail.source_info.start_line_or_addr.u.addr; break; default: addr = 0; |