This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/TileGX 2/2] fix gdbserver bug for 32bit elf
- From: Pedro Alves <palves at redhat dot com>
- To: Jiong Wang <jiwang at tilera dot com>
- Cc: gdb-patches at sourceware dot org, Walter Lee <walt at tilera dot com>
- Date: Tue, 26 Feb 2013 17:30:25 +0000
- Subject: Re: [RFC/TileGX 2/2] fix gdbserver bug for 32bit elf
- References: <5110E21A.2060308@tilera.com>
On 02/05/2013 10:42 AM, Jiong Wang wrote:
> for tilegx, all general registers are 64bit, while the pseudo 'pc' is 32bit under tilegx32.
>
> gdb client treat 'pc' correctly in
>
> static struct type *
> tilegx_register_type (struct gdbarch *gdbarch, int regnum)
> {
> if (regnum == TILEGX_PC_REGNUM)
> return builtin_type (gdbarch)->builtin_func_ptr;
>
>
> while gdbserver always treat it as 64bit, there
> is mismatch.
>
> gdb/ChangeLog:
> * configure.tgt: Enable gdbserver for tilegx
This bit is an unrelated change. Please split it out
into a separate patch, and post it in a new self-contained
thread, along with its own rationale.
--
Pedro Alves