delorie.com/djgpp/doc/libc/libc_644.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

read_child

Syntax

 
#include <debug/dbgcom.h>

void read_child (unsigned child_addr, void *buf, unsigned len);

Description

This function reads the memory of the debugged process starting at address child_addr for len bytes, and copies the data read to the buffer pointed to by buf. It is used primarily to save the original instruction at the point where a breakpoint instruction is inserted (to trigger a trap when the debuggee's code gets to that point). See section write_child.

Return Value

The function return zero if it has successfully transferred the data, non-zero otherwise (e.g., if the address in child_addr is outside the limits of the debuggee's code segment.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004