This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Clear *VAL in regcache_raw_read_unsigned
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Wed, 10 Feb 2016 17:25:34 +0000
- Subject: Re: [PATCH] Clear *VAL in regcache_raw_read_unsigned
- Authentication-results: sourceware.org; auth=none
- References: <1455029644-6197-1-git-send-email-yao dot qi at linaro dot org> <86egckqztq dot fsf at gmail dot com> <56BB6ADB dot 6070909 at redhat dot com>
Pedro Alves <palves@redhat.com> writes:
Hi Pedro,
> Isn't this broken on big endian? AFAICS, we're reading 32-bits into
> the higher 32-bits of a 64-bit variable.
What do you mean by "this"? IIUC, "this" means
regcache_raw_read_unsigned, rather than my patch. My patch just clears
*VAL before passing it to collect_register, so it shouldn't break anything
(I hope) on big endian.
--
Yao (éå)