diff options
author | Yao Qi <yao@codesourcery.com> | 2014-08-08 13:45:23 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-08-09 08:50:17 +0800 |
commit | dcd2e6ef22c3453b9322ad4b46fb7cc05810b7ee (patch) | |
tree | 9ec8c830339aa5c8cdf0f052a01efee67117f56b /bfd/nlm32-i386.c | |
parent | 20c6f1e176f4139ed1e76d4256e70149e38c0820 (diff) | |
download | gdb-dcd2e6ef22c3453b9322ad4b46fb7cc05810b7ee.zip gdb-dcd2e6ef22c3453b9322ad4b46fb7cc05810b7ee.tar.gz gdb-dcd2e6ef22c3453b9322ad4b46fb7cc05810b7ee.tar.bz2 |
Fix PR remote/9053: remove dead code on query packet size
The code becomes dead as GDB evolves. In 2003, Andrew Cagney post patch
https://sourceware.org/ml/gdb-patches/2003-10/msg00511.html to add target
read/write partial methods. They support query buffer size when both
OFFSET and LEN is zero, and it was used in avr-tdep.c and kod.c. Then,
Daniel added target_read_object_alloc and avr-tdep.c switches to use that
in patch https://sourceware.org/ml/gdb-patches/2006-07/msg00009.html
From then on, GDB on longer queries the buffer size, so the code
returning packet size in remote_xfer_partial became dead.
PR 17060 is duplicated of PR 9053, so I mention the latter in the
ChangeLog entry. Rebuild GDB with this patch. OK to apply?
I'll mark PR 17060 as duplicated once the patch is applied.
gdb:
2014-08-09 Yao Qi <yao@codesourcery.com>
PR remote/9053
* remote.c (remote_xfer_partial): Remove dead code.
Diffstat (limited to 'bfd/nlm32-i386.c')
0 files changed, 0 insertions, 0 deletions