aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-bug.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-06 21:55:18 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-06 21:55:18 +0000
commite3a7e9d50196f1c6ed4a591d3acf8263208c889a (patch)
treee2515ea9e1eb90af04c2670104e0e7bf516780c4 /gdb/remote-bug.c
parent9fe444b57a4075beb94408fb603730397605a2ee (diff)
downloadgdb-e3a7e9d50196f1c6ed4a591d3acf8263208c889a.zip
gdb-e3a7e9d50196f1c6ed4a591d3acf8263208c889a.tar.gz
gdb-e3a7e9d50196f1c6ed4a591d3acf8263208c889a.tar.bz2
* remote-bug.c: At the start of each section, reset srec_frame
back to 160.
Diffstat (limited to 'gdb/remote-bug.c')
-rw-r--r--gdb/remote-bug.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/remote-bug.c b/gdb/remote-bug.c
index d709cd2..b523e39 100644
--- a/gdb/remote-bug.c
+++ b/gdb/remote-bug.c
@@ -66,7 +66,8 @@ static int srec_max_retries = 3;
record. I call this download a "frame". Srec_frame says how many
bytes will be represented in each frame. */
-static int srec_frame = 160;
+#define SREC_SIZE 160
+static int srec_frame = SREC_SIZE;
/* This variable determines how many bytes will be represented in each
S3 s-record. */
@@ -138,6 +139,7 @@ bug_load (args, fromtty)
s = abfd->sections;
while (s != (asection *) NULL)
{
+ srec_frame = SREC_SIZE;
if (s->flags & SEC_LOAD)
{
int i;
@@ -1007,6 +1009,9 @@ This affects the communication protocol with the remote target.",
&setlist),
&showlist);
+#if 0
+ /* This needs to set SREC_SIZE, not srec_frame which gets changed at the
+ end of a download. But do we need the option at all? */
add_show_from_set
(add_set_cmd ("srec-frame", class_support, var_uinteger,
(char *) &srec_frame,
@@ -1015,6 +1020,7 @@ Set the number of bytes in an S-record frame.\n\
This affects the communication protocol with the remote target.",
&setlist),
&showlist);
+#endif /* 0 */
add_show_from_set
(add_set_cmd ("srec-noise", class_support, var_zinteger,