aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 675ad80..cf22bce 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1139,6 +1139,7 @@ execute_command (p, from_tty)
register struct cmd_list_element *c;
register enum language flang;
static int warned = 0;
+ extern FILE *serial_logfp;
free_all_values ();
@@ -1146,6 +1147,9 @@ execute_command (p, from_tty)
if (p == NULL)
return;
+ if (serial_logfp != NULL)
+ serial_log_command (p);
+
while (*p == ' ' || *p == '\t') p++;
if (*p)
{