aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 236b42f..3b4d23a 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -39,7 +39,7 @@
#include "objfiles.h"
#include "valprint.h"
#include "cli/cli-decode.h"
-
+#include "exceptions.h"
#include "python/python.h"
#include "tracepoint.h"
@@ -826,7 +826,7 @@ static void
require_available (const struct value *value)
{
if (!VEC_empty (range_s, value->unavailable))
- error (_("value is not available"));
+ throw_error (NOT_AVAILABLE_ERROR, _("value is not available"));
}
const gdb_byte *