summaryrefslogtreecommitdiff
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
commit9f8c529bab0c0f8f721393aee631a690f4da2801 (patch)
treef90ed1e5ca912023aef7d9e0f9f3a2e5afd90d87
parent89df2d9dcf6c19d05c871e426f75af53cd740cc4 (diff)
downloadgdb-9f8c529bab0c0f8f721393aee631a690f4da2801.tar.gz
* 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.
-rw-r--r--gdb/tui/ChangeLog7
-rw-r--r--gdb/tui/tui.c5
-rw-r--r--gdb/tui/tui.h3
3 files changed, 12 insertions, 3 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 32df100e77d..14e400e7e1c 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,5 +1,12 @@
2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
+ * 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.
+
+2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
+
* tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
is the size of command window.
(tuiResizeAll): Call it instead of init_page_info.
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 8ead02f5b0d..8bf477673d3 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)
{
diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h
index d250208e564..b2ed4aa07ee 100644
--- a/gdb/tui/tui.h
+++ b/gdb/tui/tui.h
@@ -48,8 +48,7 @@ Opaque (*OpaqueFuncPtr) (va_list);
*/
typedef OpaqueFuncPtr TuiOpaqueFuncPtr;
-extern void strcat_to_buf (char *, int, char *);
-extern void strcat_to_buf_with_fmt (char *, int, char *, ...);
+extern void strcat_to_buf (char *, int, const char *);
/* Types of error returns */
typedef enum