diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-20 07:46:51 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:06 -0700 |
commit | 0d1912950e35ff6555d12c0baa983acc006c3cf0 (patch) | |
tree | da40715cada37627b7c1d943cb251c30585a14fa /gdb/printcmd.c | |
parent | b32797e8b99b53d4cdd22a4e649792146b219adc (diff) | |
download | gdb-0d1912950e35ff6555d12c0baa983acc006c3cf0.zip gdb-0d1912950e35ff6555d12c0baa983acc006c3cf0.tar.gz gdb-0d1912950e35ff6555d12c0baa983acc006c3cf0.tar.bz2 |
Convert contained_in to method
This converts contained_in to be a method of block.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 6 |
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"); } |