use the libiberty crc code
authorTom Tromey <tromey@redhat.com>
Wed, 14 Aug 2013 17:57:09 +0000 (17:57 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 14 Aug 2013 17:57:09 +0000 (17:57 +0000)
commit85ec6ce7d58c48d6474981c428a4f0d92e447173
treeec31227f3cf5c77091cff5cb42aff3cbd7e3597b
parent62c34db3dc2a5a77d28853a650182a26f00896bb
use the libiberty crc code

gdb has a copy of some CRC code that also appears in libiberty.
This patch just removes the local copy.

You may notice that "crc32" returns unsigned long but "xcrc32" returns
unsigned int.  However, this does not matter, because crc32 actually
does all its operations in unsigned int type, and only the return
result is widened.  So, the difference does not matter.

* remote.c (crc32_table, crc32): Remove.
(remote_verify_memory): Use xcrc32.
gdb/ChangeLog
gdb/remote.c