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.
This commit is contained in:
Pedro Alves
2009-01-01 22:02:03 +00:00
parent 023b0f5cef
commit ccc57cf9e6
6 changed files with 60 additions and 20 deletions

View File

@ -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
};