public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdbserver: add comments to read_inferior_memory function Date: Fri, 13 Jan 2023 16:41:27 +0000 (GMT) [thread overview] Message-ID: <20230113164127.5903C3844066@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=027d8f7848f30e5b075dc0c9d74107a1747de190 commit 027d8f7848f30e5b075dc0c9d74107a1747de190 Author: Andrew Burgess <aburgess@redhat.com> Date: Thu Oct 20 10:52:48 2022 +0100 gdbserver: add comments to read_inferior_memory function Just adding some comments to the gdbserver read_inferior_memory function. No actual code changes. Diff: --- gdbserver/target.cc | 2 ++ gdbserver/target.h | 3 +++ gdbserver/tracepoint.cc | 2 ++ 3 files changed, 7 insertions(+) diff --git a/gdbserver/target.cc b/gdbserver/target.cc index 24b8e216013..720a61d636a 100644 --- a/gdbserver/target.cc +++ b/gdbserver/target.cc @@ -79,6 +79,8 @@ set_desired_process () return proc != nullptr; } +/* See target.h. */ + int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len) { diff --git a/gdbserver/target.h b/gdbserver/target.h index eea651c30b4..6d92f0f5cd8 100644 --- a/gdbserver/target.h +++ b/gdbserver/target.h @@ -700,6 +700,9 @@ target_thread_pending_child (thread_info *thread) return the_target->thread_pending_child (thread); } +/* Read LEN bytes from MEMADDR in the buffer MYADDR. Return 0 if the read + is successful, otherwise, return a non-zero error code. */ + int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len); /* Set GDBserver's current thread to the thread the client requested diff --git a/gdbserver/tracepoint.cc b/gdbserver/tracepoint.cc index fa4cd8abb5e..37a9a8c5b7c 100644 --- a/gdbserver/tracepoint.cc +++ b/gdbserver/tracepoint.cc @@ -344,6 +344,8 @@ tracepoint_look_up_symbols (void) GDBserver side. */ #ifdef IN_PROCESS_AGENT +/* See target.h. */ + int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len) {
reply other threads:[~2023-01-13 16:41 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230113164127.5903C3844066@sourceware.org \ --to=aburgess@sourceware.org \ --cc=gdb-cvs@sourceware.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: linkBe 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).