]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/NEWS
Add global_context parameter to gdb.parse_and_eval
authorTom Tromey <tromey@adacore.com>
Fri, 28 Apr 2023 15:11:23 +0000 (09:11 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 23 May 2023 20:17:04 +0000 (14:17 -0600)
commit125862f0f220f631a184599ea7c9ff7efbea9044
treee89a0003d7086ab2e01319ddf1f66e74a125c156
parent2c64cbb737e801c5c3b0e0d8b03901b65b2f84dc
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>
gdb/NEWS
gdb/doc/python.texi
gdb/python/python.c
gdb/testsuite/gdb.python/py-value.c
gdb/testsuite/gdb.python/py-value.exp