gdbserver: add comments to read_inferior_memory function

Just adding some comments to the gdbserver read_inferior_memory
function.  No actual code changes.
This commit is contained in:
Andrew Burgess 2022-10-20 10:52:48 +01:00
parent bb0797528b
commit 027d8f7848
3 changed files with 7 additions and 0 deletions

View File

@ -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)
{

View File

@ -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

View File

@ -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)
{