Factor remote_read_bytes.
authorYao Qi <yao@codesourcery.com>
Tue, 11 Mar 2014 03:19:12 +0000 (11:19 +0800)
committerYao Qi <yao@codesourcery.com>
Sat, 22 Mar 2014 10:31:36 +0000 (18:31 +0800)
commit9217e74e903fcc21755e7b320ce54a9209f9b5e7
tree851f6d2a09c9ecf38d33189ab42eb027c3e99a37
parent8acf9577e5acd99c23fe8f3fa87a961668de7805
Factor remote_read_bytes.

This patch moves code in remote_read_bytes on reading from the remote
stub to a new function remote_read_bytes_1.

gdb:

2014-03-22  Yao Qi  <yao@codesourcery.com>

* remote.c (remote_read_bytes): Move code on reading from the
remote stub to ...
(remote_read_bytes_1): ... here.  New function.
gdb/ChangeLog
gdb/remote.c