public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: hilbert  <swdtian@163.com>
To: "John Baldwin" <jhb@FreeBSD.org>
Cc: gdb@sourceware.org
Subject: Re:Re: Why are these two methods default_memory_insert_breakpoint() and default_memory_remove_breakpoint() called multiple times
Date: Fri, 2 Jun 2023 10:09:34 +0800 (CST)	[thread overview]
Message-ID: <cf89c64.3959.18879de09b1.Coremail.swdtian@163.com> (raw)
In-Reply-To: <ea93894a-b761-1041-e926-e3a11e5aa8b4@FreeBSD.org>

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]



 @John Baldwin 

Got it.

Thank you so much














At 2023-06-02 01:09:40, "John Baldwin" <jhb@FreeBSD.org> wrote:
>On 5/31/23 6:50 PM, hilbert wrote:
>>   @John Baldwin
>> 
>> 
>> 
>> Thank you very much for your answer;
>> 
>> 
>> 
>> 
>> I have another question, very confused.I don't understand the mechanism of register caching.
>> 
>> The register cache is initialized at the very beginning, when will it be updated later?
>> 
>> Will it be automatically updated later?
>
>My understanding is that the cache for a given thread is flushed on each stop of that thread,
>so the cache is only active in terms of preventing multiple ptrace() calls or multiple
>requests to the remote target while a user is examining a thread during a single stop.
>
>-- 
>John Baldwin

      reply	other threads:[~2023-06-02  2:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31  9:12 hilbert
2023-05-31 15:57 ` John Baldwin
2023-06-01  1:50   ` hilbert
2023-06-01 17:09     ` John Baldwin
2023-06-02  2:09       ` hilbert [this message]

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=cf89c64.3959.18879de09b1.Coremail.swdtian@163.com \
    --to=swdtian@163.com \
    --cc=gdb@sourceware.org \
    --cc=jhb@FreeBSD.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).