]> Git Repo - binutils.git/blobdiff - gdb/gdbcore.h
Stop using errno values around target_xfer interfaces and memory errors.
[binutils.git] / gdb / gdbcore.h
index 01ed4df5c4e0414b19f364cd97f43b16d3460ae2..41bcf1f44e22adba0d8a91ec0826da4b6e49b476 100644 (file)
@@ -27,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;
@@ -40,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.  */
 
This page took 0.024771 seconds and 4 git commands to generate.