aboutsummaryrefslogtreecommitdiff
path: root/gdb/exceptions.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-01-01 22:02:03 +0000
committerPedro Alves <palves@redhat.com>2009-01-01 22:02:03 +0000
commitccc57cf9e6782a19d8bccb1fdd0d02dd6ab98702 (patch)
tree8f5a92c1161105aae211fbdd06369748a2eee8e3 /gdb/exceptions.h
parent023b0f5cefb067d6338e9bfd2987e4ed54b8b379 (diff)
downloadgdb-ccc57cf9e6782a19d8bccb1fdd0d02dd6ab98702.zip
gdb-ccc57cf9e6782a19d8bccb1fdd0d02dd6ab98702.tar.gz
gdb-ccc57cf9e6782a19d8bccb1fdd0d02dd6ab98702.tar.bz2
2009-01-01 Pedro Alves <pedro@codesourcery.com>
PR breakpoints/9681: * exceptions.h (enum errors): New error type, MEMORY_ERROR. * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR. * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but retrow all other exceptions. 2009-01-01 Pedro Alves <pedro@codesourcery.com> PR breakpoints/9681: * gdb.base/watchpoint.exp: Add regression test.
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r--gdb/exceptions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index b6d4e12..6616dbf 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -72,6 +72,9 @@ enum errors {
/* Problem parsing an XML document. */
XML_PARSE_ERROR,
+ /* Error accessing memory. */
+ MEMORY_ERROR,
+
/* Add more errors here. */
NR_ERRORS
};