From: Andreas Arnez <arnez@linux.vnet.ibm.com>
To: Sergio Durigan Junior <sergiodj@redhat.com>
Cc: gdb-patches@sourceware.org, Ulrich Weigand <uweigand@de.ibm.com>
Subject: Re: Regression on gdb.base/checkpoint.exp on S/390
Date: Wed, 06 May 2015 18:16:00 -0000 [thread overview]
Message-ID: <87ioc5efll.fsf@br87z6lw.de.ibm.com> (raw)
In-Reply-To: <87mw1ig7h3.fsf_-_@redhat.com> (Sergio Durigan Junior's message of "Tue, 05 May 2015 15:16:56 -0400")
On Tue, May 05 2015, Sergio Durigan Junior wrote:
> On Friday, June 07 2013, Andreas Arnez wrote:
>
>> S/390 regmap rework: Represent register maps in a less redundant and
>> more readable way. Also remove some code repetition.
>
> Hey Andreas,
>
> As we discussed on private, this commit has caused the following
> regression on S/390 (31-bit):
>
> $ make check RUNTESTFLAGS='--target_board=unix/-m31 gdb.base/checkpoint.exp'
> Running ../../../gdb/gdb/testsuite/gdb.base/checkpoint.exp ...
> FAIL: gdb.base/checkpoint.exp: restart 1 one
> FAIL: gdb.base/checkpoint.exp: verify i 1 one
> [...]
Right. This is caused by a misunderstanding on my side when I wrote
that patch. In fill_gregset, I was under the assumption that the
"gregset" part of the REGCACHE is fully populated, since that's what
supply_gregset would do. However, fill_gregset is also used within
s390_linux_store_inferior_registers, for merging the inferior's
registers with one (or all) of a regcache's registers. And that is
invoked via regcache_raw_write in a loop for each register when doing
regcache_cpy. Until the loop has finished, the destination regcache is
partially filled, and my assumption is broken.
I've tried a fix that avoids this assumption, and it works. (I'll post
it soon.)
But I also wonder whether it's intended that each regcache_raw_write
results in two ptrace calls? This seems quite inefficient, considering
that all inferior's registers could be modified at once.
next prev parent reply other threads:[~2015-05-06 18:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-07 13:44 [RFA/RFT PATCH 0/3] Add TDB regset support Andreas Arnez
2013-06-07 13:50 ` [PATCH 1/3] S/390 regmap rework Andreas Arnez
2015-05-05 19:17 ` Regression on gdb.base/checkpoint.exp on S/390 (was: Re: [PATCH 1/3] S/390 regmap rework) Sergio Durigan Junior
2015-05-06 18:16 ` Andreas Arnez [this message]
2013-06-07 13:51 ` [PATCH 2/3] Add TDB regset Andreas Arnez
2013-06-07 13:53 ` [PATCH 3/3] Dynamic core regset sections support Andreas Arnez
2013-06-07 14:43 ` Luis Machado
2013-06-07 16:40 ` Andreas Arnez
2013-06-07 15:03 ` [RFA/RFT PATCH 0/3] Add TDB regset support Pedro Alves
2013-06-07 15:59 ` Andreas Arnez
2013-06-07 16:44 ` Pedro Alves
2013-06-07 18:16 ` Andreas Arnez
2013-06-07 19:06 ` Pedro Alves
2013-06-10 16:59 ` Andreas Arnez
2013-06-11 10:48 ` Pedro Alves
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=87ioc5efll.fsf@br87z6lw.de.ibm.com \
--to=arnez@linux.vnet.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=sergiodj@redhat.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