Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: gdb/gdbcore.h

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/gdbcmd.h ('k') | gdb/gdbserver/ChangeLog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/gdbcore.h
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index d6c9de20e3f22d8c930a790cb8dd217eb8ed62cf..c2bc2556cb06b6988bf907ba5c737aba0925b03b 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -1,7 +1,6 @@
/* Machine independent variables that describe the core file under GDB.
- Copyright (C) 1986-1987, 1989-2001, 2004, 2007-2012 Free Software
- Foundation, Inc.
+ Copyright (C) 1986-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -28,6 +27,7 @@ struct regcache;
#include "bfd.h"
#include "exec.h"
+#include "target.h"
/* Return the name of the executable file as a string.
ERR nonzero means get error if there is none specified;
@@ -41,7 +41,13 @@ extern int have_core_file_p (void);
/* Report a memory error with error(). */
-extern void memory_error (int status, CORE_ADDR memaddr);
+extern void memory_error (enum target_xfer_error status, CORE_ADDR memaddr);
+
+/* The string 'memory_error' would use as exception message. Space
+ for the result is malloc'd, caller must free. */
+
+extern char *memory_error_message (enum target_xfer_error err,
+ struct gdbarch *gdbarch, CORE_ADDR memaddr);
/* Like target_read_memory, but report an error if can't read. */
@@ -51,6 +57,10 @@ extern void read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
extern void read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
+/* Like target_read_code, but report an error if can't read. */
+
+extern void read_code (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
+
/* Read an integer from debugged memory, given address and number of
bytes. */
@@ -67,6 +77,19 @@ extern ULONGEST read_memory_unsigned_integer (CORE_ADDR memaddr,
int len,
enum bfd_endian byte_order);
+/* Read an integer from debugged code memory, given address,
+ number of bytes, and byte order for code. */
+
+extern LONGEST read_code_integer (CORE_ADDR memaddr, int len,
+ enum bfd_endian byte_order);
+
+/* Read an unsigned integer from debugged code memory, given address,
+ number of bytes, and byte order for code. */
+
+extern ULONGEST read_code_unsigned_integer (CORE_ADDR memaddr,
+ int len,
+ enum bfd_endian byte_order);
+
/* Read a null-terminated string from the debuggee's memory, given
address, a buffer into which to place the string, and the maximum
available space. */
« no previous file with comments | « gdb/gdbcmd.h ('k') | gdb/gdbserver/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698