This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdbarch: Add pc_signed field and use it when adjusting BP addresses
- From: Vlad Ivanov <vlad dot ivanov at lab-systems dot ru>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: "schwab at suse dot de" <schwab at suse dot de>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 15 Mar 2018 16:10:20 +0300
- Subject: Re: [PATCH] gdbarch: Add pc_signed field and use it when adjusting BP addresses
- References: <830441521113797@web37j.yandex.ru> from "Vlad Ivanov" at Mar 15, 2018 02:36:37 PM <20180315125901.CE510D804A7@oc3748833570.ibm.com>
15.03.2018, 15:59, "Ulrich Weigand" <uweigand@de.ibm.com>:
> If the address is already correct, why don't you simply set
> gdbarch_significant_addr_bit
> to 64 in the mips back-end instead of adding a new gdbarch routine?
That would affect address printing. Moreover, semantically it's
probably not a good practice because the code would imply that for
all kind of MIPS all 64 bits of address are significant, whereas
in reality it differs from target to target.
Regards,
Vlad