8 char* cbuf=(
char*) buf;
10 printf(
"[Buffer dump] at %p, size=%d\n",buf,
size);
14 printf(
"%02x ",*cbuf);
24static int seems_valid(
unsigned int p){
28#define DO_RA(x) if(seems_valid(addr) && x<max_depth){ addr=(unsigned int)__builtin_return_address(x); printf("%p; ",addr); }
32 unsigned int addr=0x80000000;
34 printf(
"[Stack trace] ");
58 if (on_read || on_write)
63 unsigned int db=((
unsigned int)
address)&~7;
void data_breakpoint(void *address, int on_read, int on_write)
void stack_trace(int max_depth)
unsigned char elfldr_start[]
void buffer_dump(void *buf, int size)