From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: pedromfc@linux.ibm.com (Pedro Franco de Carvalho)
Cc: gdb-patches@sourceware.org, edjunior@gmail.com
Subject: Re: [PATCH 14/17] [PowerPC] Add gdbserver support for HTM registers
Date: Fri, 13 Jul 2018 16:26:00 -0000 [thread overview]
Message-ID: <20180713162609.CB0C9D80276@oc3748833570.ibm.com> (raw)
In-Reply-To: <20180713135226.2321-15-pedromfc@linux.ibm.com> from "Pedro Franco de Carvalho" at Jul 13, 2018 10:52:23 AM
Pedro Franco de Carvalho wrote:
> The "fill" functions for checkpointed register sets are not
> implemented, because ptrace can return ENODATA for these regsets
> whenever the inferior is not in a transaction.
>
> Since gdbserver writes all registers in one go before resuming the
> inferior, this error would not be detected at the time the user tries
> to write to one of the registers on the client side, and gdbserver
> would print out warnings every time it resumes the inferior when it is
> not in a transaction, so there is currently no straightforward way to
> handle this case. This means the checkpointed registers in the
> client-side regcache can become dirty when the user tries to write to
> them, until the inferior is resumed and stopped again.
>
> Another limitation for the checkpointed registers is that traceframes
> don't record if registers are available or not, so if these registers
> are collected when a tracepoint is hit and the inferior is not in a
> transaction, the user will see zero values for all of them, instead of
> the usual <unavailable>.
Hmm. It's a bit unfortunate to have these differences between native
and gdbserver debugging. But I guess this is unavoidable for now.
> gdb/gdbserver/ChangeLog:
> 2018-07-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
>
> * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
> <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
> (init_registers_powerpc_isa207_htm_vsx32l)
> (init_registers_powerpc_isa207_htm_vsx64l): Declare.
> * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
> (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
> (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
> (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
> (ppc_store_tm_ctarregset): New functions.
> (ppc_regsets): Add entries for HTM regsets.
> (ppc_arch_setup): Set htm in features struct when needed. Set
> sizes for the HTM regsets.
> (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
> (initialize_low_arch): Call
> init_registers_powerpc_isa207_htm_vsx32l and
> init_registers_powerpc_isa207_htm_vsx64l.
> * linux-ppc-ipa.c (get_ipa_tdesc): Handle
> PPC_TDESC_ISA207_HTM_VSX.
> (initialize_low_tracepoint): Call
> init_registers_powerpc_isa207_htm_vsx32l and
> init_registers_powerpc_isa207_htm_vsx64l.
This is OK once base support is in.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2018-07-13 16:26 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 13:53 [PATCH 00/17] GDB support for more powerpc registers on linux Pedro Franco de Carvalho
2018-07-13 13:53 ` [PATCH 12/17] [PowerPC] Add tests for TAR Pedro Franco de Carvalho
2018-07-13 15:33 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 09/17] [PowerPC] Add support " Pedro Franco de Carvalho
2018-07-13 15:30 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 10/17] [PowerPC] Add record/replay " Pedro Franco de Carvalho
2018-07-13 15:31 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 08/17] [PowerPC] Add tests for PPR and DSCR Pedro Franco de Carvalho
2018-07-13 15:27 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 13/17] [PowerPC] Add support for HTM registers Pedro Franco de Carvalho
2018-07-13 16:24 ` Ulrich Weigand
2018-07-13 18:16 ` Pedro Franco de Carvalho
2018-07-13 13:53 ` [PATCH 03/17] [PowerPC] Fix indentation in arch/ppc-linux-common.c Pedro Franco de Carvalho
2018-07-13 15:18 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 16/17] [PowerPC] Add support for EBB and PMU registers Pedro Franco de Carvalho
2018-07-13 16:38 ` Ulrich Weigand
2018-07-13 18:23 ` Pedro Franco de Carvalho
2018-07-13 13:53 ` [PATCH 05/17] [PowerPC] Add support for PPR and DSCR Pedro Franco de Carvalho
2018-07-13 15:23 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 04/17] [PowerPC] Refactor have_ initializers in rs6000-tdep.c Pedro Franco de Carvalho
2018-07-13 15:19 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 06/17] [PowerPC] Add record/replay support for PPR and DSCR Pedro Franco de Carvalho
2018-07-13 15:25 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 14/17] [PowerPC] Add gdbserver support for HTM registers Pedro Franco de Carvalho
2018-07-13 16:26 ` Ulrich Weigand [this message]
2018-07-13 13:53 ` [PATCH 01/17] [PowerPC] Simplify rs6000_pseudo_register_reggroup_p Pedro Franco de Carvalho
2018-07-13 15:17 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 07/17] [PowerPC] Add gdbserver support for PPR and DSCR Pedro Franco de Carvalho
2018-07-13 15:26 ` Ulrich Weigand
2018-07-13 13:53 ` [PATCH 02/17] [PowerPC] Fix two if statements in gdb/ppc-linux-nat.c Pedro Franco de Carvalho
2018-07-13 15:17 ` Ulrich Weigand
2018-07-13 14:23 ` [PATCH 15/17] [PowerPC] Add tests for HTM registers Pedro Franco de Carvalho
2018-07-13 16:27 ` Ulrich Weigand
2018-07-13 14:49 ` [PATCH 17/17] [PowerPC] Add gdbserver support for EBB and PMU registers Pedro Franco de Carvalho
2018-07-13 16:40 ` Ulrich Weigand
2018-07-13 18:29 ` Pedro Franco de Carvalho
2018-07-13 15:33 ` [PATCH 11/17] [PowerPC] Add gdbserver support for TAR Pedro Franco de Carvalho
2018-07-13 15:33 ` Ulrich Weigand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180713162609.CB0C9D80276@oc3748833570.ibm.com \
--to=uweigand@de.ibm.com \
--cc=edjunior@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=pedromfc@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox