move sizeof_pkt into remote_trace_find
authorTom Tromey <tromey@redhat.com>
Wed, 14 Aug 2013 18:15:48 +0000 (18:15 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 14 Aug 2013 18:15:48 +0000 (18:15 +0000)
commit2f65bcb75d05d93af037229e084160fe25259322
tree752b884f926d80e82f85f2f7bbf7c7b7d623059c
parentb80fafe37584f06b7748a2a3c839db484e18686d
move sizeof_pkt into remote_trace_find

The global sizeof_pkt is only used in remote_trace_find, like so:

  reply = remote_get_noisy_reply (&(rs->buf), &sizeof_pkt);

I think in this situation it is more correct to use the recorded size
of the buffer.  Otherwise it seems that some skew could result.

* remote.c (sizeof_pkt): Remove.
(remote_trace_find): Use rs->buf_size, not sizeof_pkt.
gdb/ChangeLog
gdb/remote.c