From 125862f0f220f631a184599ea7c9ff7efbea9044 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 28 Apr 2023 09:11:23 -0600 Subject: 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 --- gdb/NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 3ea7237d022..f963ab3611b 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -195,6 +195,10 @@ info main ** New function gdb.execute_mi(COMMAND, [ARG]...), that invokes a GDB/MI command and returns the output as a Python dictionary. + ** gdb.parse_and_eval now has a new "global_context" parameter. + This can be used to request that the parse only examine global + symbols. + *** Changes in GDB 13 * MI version 1 is deprecated, and will be removed in GDB 14. -- cgit v1.2.3-65-gdbad