From aca2255198cca90893ab2ceb8f0a13854b6fc0fc Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 19 Feb 2013 20:52:57 +0000 Subject: gdbserver:server.c - use unpack_varlen_hex to extract hex numbers. Addresses, as most numbers in the RSP are hex encoded, with variable length (that just means the width isn't specified, and there's no top cap. So they should be extracted with unpack_varlen_hex. A couple spots in server.c are using strto(u)l, which doesn't work on LLP64 targets. This patch fixes it. Tested on x86_64 Fedora 17. 2013-02-19 Pedro Alves Kai Tietz PR gdb/15161 * server.c (handle_query) : Use unpack_varlen_hex instead of strtoul to extract address from packet. (process_serial_event) <'z'>: Likewise. --- gdb/gdbserver/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/gdbserver/ChangeLog') diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index eba9cec..88cd101 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,12 @@ +2013-02-19 Pedro Alves + Kai Tietz + + PR gdb/15161 + + * server.c (handle_query) : Use unpack_varlen_hex + instead of strtoul to extract address from packet. + (process_serial_event) <'z'>: Likewise. + 2013-02-18 Yao Qi * linux-bfin-low.c (the_low_target): Use NULL instead of 0. -- cgit v1.1