From: "H.J. Lu" <hjl.tools@gmail.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Fix solib-disc.exp regression with x86 gdbserver
Date: Mon, 12 Apr 2010 13:05:00 -0000 [thread overview]
Message-ID: <g2o6dc9ffc81004120605ubec22d47lccc66cabe4781e06@mail.gmail.com> (raw)
In-Reply-To: <201004120845.56101.pedro@codesourcery.com>
On Mon, Apr 12, 2010 at 12:45 AM, Pedro Alves <pedro@codesourcery.com> wrote:
> On Sunday 11 April 2010 22:12:08, H.J. Lu wrote:
>> This patch breaks gdbserver on AVX. We have
>>
>> 1. Connect from GDB with XML support:
>> gdbserver enables XML support.
>> 2. Disconnect.
>> 3. Reconnect from any GDB
>> a. gdberver assumes GDB doesn't support XML sets to
>> target to Linux without AVX.
>> b. Gdbserver aborts when it tries to invalidate regcache
>> since the target doesn't support AVX registers.
>>
>> I will try to fix it.
>>
>
> Then, this means we're invalidating the regcache too late.
> We're flushing the old regcache contents to the threads, that were
> created using the previous gdb's register layout, but we're flushing
> the data using the _new_ register cache layout and low target
> methods. That sounds wrong indeed.
>
> I think this would help. Or is this still too late?
>
> --
> Pedro Alves
>
> 2010-04-12 Pedro Alves <pedro@codesourcery.com>
>
> gdb/gdbserver/
> * regcache.c (set_register_cache): Invalidate regcaches before
> changing the register cache layout.
> (regcache_invalidate_one): Allow a NULL regcache.
> * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
> regcaches before changing the register cache layout or the target
> regsets.
>
It works.
Thanks.
--
H.J.
next prev parent reply other threads:[~2010-04-12 13:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-11 1:52 Pedro Alves
2010-04-11 14:04 ` H.J. Lu
2010-04-11 14:18 ` Pedro Alves
2010-04-11 15:43 ` H.J. Lu
2010-04-11 16:17 ` Pedro Alves
2010-04-11 16:22 ` H.J. Lu
2010-04-11 16:59 ` H.J. Lu
2010-04-11 16:04 ` H.J. Lu
2010-04-11 16:13 ` Pedro Alves
2010-04-11 16:18 ` H.J. Lu
2010-04-11 21:12 ` H.J. Lu
2010-04-11 21:18 ` H.J. Lu
2010-04-12 7:46 ` Pedro Alves
2010-04-12 13:05 ` H.J. Lu [this message]
2010-04-12 13:26 ` 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=g2o6dc9ffc81004120605ubec22d47lccc66cabe4781e06@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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