aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-10-20 10:52:48 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-01-13 16:41:05 +0000
commit027d8f7848f30e5b075dc0c9d74107a1747de190 (patch)
tree95c3e9f4575c13059f595abef845767ad87e2e0a /gdbserver
parentbb0797528bf532848ed96b439b363df543a15477 (diff)
downloadgdb-027d8f7848f30e5b075dc0c9d74107a1747de190.zip
gdb-027d8f7848f30e5b075dc0c9d74107a1747de190.tar.gz
gdb-027d8f7848f30e5b075dc0c9d74107a1747de190.tar.bz2
gdbserver: add comments to read_inferior_memory function
Just adding some comments to the gdbserver read_inferior_memory function. No actual code changes.
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/target.cc2
-rw-r--r--gdbserver/target.h3
-rw-r--r--gdbserver/tracepoint.cc2
3 files changed, 7 insertions, 0 deletions
diff --git a/gdbserver/target.cc b/gdbserver/target.cc
index 24b8e21..720a61d 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 eea651c..6d92f0f 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 fa4cd8a..37a9a8c 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)
{