X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fgdbcore.h;h=8b101bcabef81c9847ac14f1d5b2d9692c2fd9dd;hb=0154d99053a95392380cd4629a89b0ac46df3737;hp=a437c8af7b9152c5456683740354c32ce1c7655c;hpb=a10de6046fbd50e99742af428a815dcd94e2fba8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h index a437c8af7b..8b101bcabe 100644 --- a/gdb/gdbcore.h +++ b/gdb/gdbcore.h @@ -1,6 +1,6 @@ /* Machine independent variables that describe the core file under GDB. - Copyright (C) 1986-2015 Free Software Foundation, Inc. + Copyright (C) 1986-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -76,6 +76,9 @@ extern int safe_read_memory_integer (CORE_ADDR memaddr, int len, extern ULONGEST read_memory_unsigned_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order); +extern int safe_read_memory_unsigned_integer (CORE_ADDR memaddr, int len, + enum bfd_endian byte_order, + ULONGEST *return_value); /* Read an integer from debugged code memory, given address, number of bytes, and byte order for code. */ @@ -101,10 +104,8 @@ extern void read_memory_string (CORE_ADDR, char *, int); CORE_ADDR read_memory_typed_address (CORE_ADDR addr, struct type *type); -/* This takes a char *, not void *. This is probably right, because - passing in an int * or whatever is wrong with respect to - byteswapping, alignment, different sizes for host vs. target types, - etc. */ +/* Same as target_write_memory, but report an error if can't + write. */ extern void write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len);