Files
binutils-gdb/gdb/testsuite/gdb.python/py-value.c
Tom Tromey 125862f0f2 Add global_context parameter to gdb.parse_and_eval
This adds a 'global_context' parse_and_eval to gdb.parse_and_eval.
This lets users request a parse that is done at "global scope".

I considered letting callers pass in a block instead, with None
meaning "global" -- but then there didn't seem to be a clean way to
express the default for this parameter.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
2023-05-23 14:17:04 -06:00

2.4 KiB