aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorDawn Perchik <dawn@cygnus>1996-06-28 12:27:08 +0000
committerDawn Perchik <dawn@cygnus>1996-06-28 12:27:08 +0000
commitcb1709aeac4e07ce89f6d9a520cdc0fa83847a92 (patch)
tree837928fdf955e86acdd356d38cacf8d6c38cf85d /gdb/top.c
parent56a4bf5339506c9273ddd9edcbe8c79857dc1211 (diff)
downloadgdb-cb1709aeac4e07ce89f6d9a520cdc0fa83847a92.zip
gdb-cb1709aeac4e07ce89f6d9a520cdc0fa83847a92.tar.gz
gdb-cb1709aeac4e07ce89f6d9a520cdc0fa83847a92.tar.bz2
* remote-e7000.c,remote.c,target.h,top.c:
Add set option "remote_timeout" for setting remote_timeout. Add set option "use_hard_breakpoints" for setting hardware .vs. memory breakpoints.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index bfab3f7..ea217c2 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -319,6 +319,10 @@ int server_command;
int baud_rate = -1;
+/* Timeout limit for response from target. */
+
+int remote_timeout = 20; /* Set default to 20 */
+
/* Non-zero tells remote* modules to output debugging info. */
int remote_debug = 0;
@@ -3589,4 +3593,11 @@ using remote targets.", &setlist),
When enabled, each packet sent or received with the remote target\n\
is displayed.", &setlist),
&showlist);
+
+ add_show_from_set (
+ add_set_cmd ("remotetimeout", no_class, var_integer, (char *)&remote_timeout,
+ "Set timeout limit to wait for target to respond.\n\
+This value is used to set the time limit for gdb to wait for a response\n\
+from he target.", &setlist),
+ &showlist);
}