Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Pedro Franco de Carvalho <pedromfc@linux.ibm.com>,
	gdb-patches@sourceware.org
Cc: uweigand@de.ibm.com, edjunior@gmail.com
Subject: Re: [PATCH v4 12/12] [PowerPC] Add support for HTM registers
Date: Fri, 17 Aug 2018 18:11:00 -0000	[thread overview]
Message-ID: <e4421409-9a0e-57d8-9223-a4b66db46acc@redhat.com> (raw)
In-Reply-To: <87mutlj2m3.fsf@linux.vnet.ibm.com>

On 08/17/2018 12:47 AM, Pedro Franco de Carvalho wrote:
> Pedro Franco de Carvalho <pedromfc@linux.ibm.com> writes:
> 
>> Pedro Franco de Carvalho <pedromfc@linux.ibm.com> writes:
>>
>>> Pedro Alves <palves@redhat.com> writes:
>>>
>>>> I won't pretend to understand the above fully (not an Power expert),
>>>> but the question I ended up with was, after all this, will the
>>>> GDB-generated files end up looking like kernel-generated cores?
>>>> Or are there plans for that?
>>>
>>> They will end up looking different for this regset note section.  This
>>> really seems like a kernel bug, which I'm hoping will get fixed.
>>
>> Correction: the size of the regset note section for 32-bit threads seems
>> like a kernel bug.  The fact that the kernel includes values for
>> registers that GDB doesn't include in the note section (by zeroing them)
>> isn't a kernel bug, but to do this GDB would have to be aware of all
>> these registers that aren't defined in the architecture.
>>
> 
> Does this issue block the patches?

Up to you guys.  I don't really understand the nuances here.  Too many
new registers.  :-)

Off hand, I'd think it better if GDB and kernel-generated cores had
the same format.  But I can't tell which is better.

> I could add the registers to GDB but it would be messy, since it would
> require a linux-specific target description with these extra registers.

Can you clarify what do you mean by "is messy"?  Linux-specific target
descriptions are nothing something new.  There's
gdb/features/rs6000/power64-linux.xml already, for example?

> Alternatively, I can make GDB not generate this specific note section,
> this is a simple change in the current patches.  The only confusing
> thing is that when reading back the core file through GDB the
> checkpointed GPRs will show up as unavailable, even if the thread was in
> the middle of a transaction when the core file was generated, while all
> the other checkpointed registers will be available.
Is the only difference zeros vs <unavailable>?  If so, I think <unavailable>
is less confusing than a bogus zero.  The former tells the truth.  A fake
zero is misleading.

Or is that so that by dropping the note we would lose access to other,
relevant info as well?

Thanks,
Pedro Alves


  reply	other threads:[~2018-08-17 18:11 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-15  0:07 [PATCH v4 00/12] GDB support for more powerpc registers on linux Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 04/12] [PowerPC] Remove rs6000_pseudo_register_reggroup_p Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 05/12] [PowerPC] Fix two if statements in gdb/ppc-linux-nat.c Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 11/12] [PowerPC] Reject tdescs with VSX and no FPU or Altivec Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 09/12] [PowerPC] Add support for TAR Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 03/12] Add decfloat registers to float reggroup Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 06/12] [PowerPC] Fix indentation in arch/ppc-linux-common.c Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 01/12] Zero-initialize linux note sections Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 10/12] [PowerPC] Add support for EBB and PMU registers Pedro Franco de Carvalho
2018-08-16 16:51   ` Pedro Alves
2018-08-16 18:16     ` Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 02/12] [PowerPC] Don't zero-initialize vector register buffers Pedro Franco de Carvalho
2018-08-15  0:07 ` [PATCH v4 07/12] [PowerPC] Refactor have_ initializers in rs6000-tdep.c Pedro Franco de Carvalho
2018-08-15  0:55 ` [PATCH v4 12/12] [PowerPC] Add support for HTM registers Pedro Franco de Carvalho
2018-08-16 16:53   ` Pedro Alves
2018-08-16 17:50     ` Pedro Franco de Carvalho
2018-08-16 20:16       ` Pedro Franco de Carvalho
2018-08-16 23:47         ` Pedro Franco de Carvalho
2018-08-17 18:11           ` Pedro Alves [this message]
2018-08-17 19:25             ` Pedro Franco de Carvalho
2018-08-15  1:16 ` [PATCH v4 08/12] [PowerPC] Add support for PPR and DSCR Pedro Franco de Carvalho
2018-08-16 16:46 ` [PATCH v4 00/12] GDB support for more powerpc registers on linux Pedro Franco de Carvalho
2018-08-16 17:00   ` Pedro Alves
2018-08-16 17:42     ` Pedro Franco de Carvalho
2018-08-16 18:02       ` Eli Zaretskii
2018-08-16 18:08         ` Pedro Franco de Carvalho
2018-08-16 18:45           ` Eli Zaretskii
2018-08-16 19:23             ` Pedro Franco de Carvalho
2018-10-08 19:09     ` ping: " Jan Kratochvil
2018-10-08 19:32       ` Pedro Franco de Carvalho

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=e4421409-9a0e-57d8-9223-a4b66db46acc@redhat.com \
    --to=palves@redhat.com \
    --cc=edjunior@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedromfc@linux.ibm.com \
    --cc=uweigand@de.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