aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 8898469..0d3bc29 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -2139,8 +2139,8 @@ do_one_display (struct display *d)
if (d->block)
{
if (d->pspace == current_program_space)
- within_current_scope = contained_in (get_selected_block (0), d->block,
- true);
+ within_current_scope = d->block->contains (get_selected_block (0),
+ true);
else
within_current_scope = 0;
}
@@ -2298,7 +2298,7 @@ Num Enb Expression\n"));
else if (d->format.format)
gdb_printf ("/%c ", d->format.format);
gdb_puts (d->exp_string.c_str ());
- if (d->block && !contained_in (get_selected_block (0), d->block, true))
+ if (d->block && !d->block->contains (get_selected_block (0), true))
gdb_printf (_(" (cannot be evaluated in the current context)"));
gdb_printf ("\n");
}