aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2007-12-07 15:02:12 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2007-12-07 15:02:12 +0000
commit49d03eab05e8f80cffaf764d4d26932bf00519d6 (patch)
treec36ea6df2ae30a7f9d86841f65f4a91483077523 /gdb/top.c
parent27524b67e16c96d7f8a266e99979ceb6ae953bc9 (diff)
downloadgdb-49d03eab05e8f80cffaf764d4d26932bf00519d6.zip
gdb-49d03eab05e8f80cffaf764d4d26932bf00519d6.tar.gz
gdb-49d03eab05e8f80cffaf764d4d26932bf00519d6.tar.bz2
* target.c (update_current_target): Inherit to_log_command.
* target.h (struct target_ops). Add to_log_command. (target_log_command): New macro. * top.c (execute_command): Call target_log_command() rather than serial_log_command(). * monitor.c (init_base_monitor_ops): Initialize to_log_command. * remote-m32r-sdi.c (init_m32r_ops): Likewise. * remote-mips.c (_initialize_remote_mips): Likewise. * remote.c (init_remote_ops): Likewise.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index beb1d96..a221c0c 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -385,7 +385,7 @@ execute_command (char *p, int from_tty)
if (p == NULL)
return;
- serial_log_command (p);
+ target_log_command (p);
while (*p == ' ' || *p == '\t')
p++;