aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index d3def7a..7761fef 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -4081,7 +4081,7 @@ linespec_parse_variable (struct linespec_state *self, const char *variable)
sscanf ((variable[1] == '$') ? variable + 2 : variable + 1, "%d", &index);
val_history
= access_value_history ((variable[1] == '$') ? -index : index);
- if (value_type (val_history)->code () != TYPE_CODE_INT)
+ if (val_history->type ()->code () != TYPE_CODE_INT)
error (_("History values used in line "
"specs must have integer values."));
offset.offset = value_as_long (val_history);