From ccc57cf9e6782a19d8bccb1fdd0d02dd6ab98702 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 1 Jan 2009 22:02:03 +0000 Subject: 2009-01-01 Pedro Alves 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 PR breakpoints/9681: * gdb.base/watchpoint.exp: Add regression test. --- gdb/exceptions.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/exceptions.h') 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 }; -- cgit v1.1