diff options
Diffstat (limited to 'gdb/stubs/sh-stub.c')
-rw-r--r-- | gdb/stubs/sh-stub.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/stubs/sh-stub.c b/gdb/stubs/sh-stub.c index 379824c..03a865e 100644 --- a/gdb/stubs/sh-stub.c +++ b/gdb/stubs/sh-stub.c @@ -418,10 +418,10 @@ retry: if (ch == '#') { - ch = getDebugChar (); - xmitcsum = hex (ch) << 4; - ch = getDebugChar (); - xmitcsum += hex (ch); + ch = getDebugChar (); + xmitcsum = hex (ch) << 4; + ch = getDebugChar (); + xmitcsum += hex (ch); if (checksum != xmitcsum) { @@ -437,7 +437,7 @@ retry: putDebugChar (buffer[0]); putDebugChar (buffer[1]); - return &buffer[3]; + return &buffer[3]; } return &buffer[0]; |