This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/TileGX 2/2] fix gdbserver bug for 32bit elf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]