This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog remote.c
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Wed, 14 Aug 2013 17:57:09 +0000
- Subject: src/gdb ChangeLog remote.c
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2013-08-14 17:57:09
Modified files:
gdb : ChangeLog remote.c
Log message:
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.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15890&r2=1.15891
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/remote.c.diff?cvsroot=src&r1=1.560&r2=1.561