aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-24 17:04:33 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-24 17:04:33 +0000
commit297d1607779327c07b70f8b008626a8b5e3af144 (patch)
tree5901dd6da1ca0cca0397f4f63f5d6927ea753646 /gdb/tui/tui.c
parent3e752b0491df868a89f370a136a0edb94c5081f5 (diff)
downloadgdb-297d1607779327c07b70f8b008626a8b5e3af144.zip
gdb-297d1607779327c07b70f8b008626a8b5e3af144.tar.gz
gdb-297d1607779327c07b70f8b008626a8b5e3af144.tar.bz2
* tui.c (strcat_to_buf): Use const char* for source item.
(tui_enable): Update the windows if there is a selected frame. * tui.h (strcat_to_buf): Update prototype. (strcat_to_buf_with_fmt): Remove.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r--gdb/tui/tui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 8ead02f..8bf4776 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -261,6 +261,9 @@ tui_enable (void)
tui_version = 1;
tui_active = 1;
+ if (selected_frame)
+ tuiShowFrameInfo (selected_frame);
+
refresh ();
tui_update_gdb_sizes ();
}
@@ -327,7 +330,7 @@ tuiGetLowDisassemblyAddress (CORE_ADDR low, CORE_ADDR pc)
}
void
-strcat_to_buf (char *buf, int buflen, char *itemToAdd)
+strcat_to_buf (char *buf, int buflen, const char *itemToAdd)
{
if (itemToAdd != (char *) NULL && buf != (char *) NULL)
{