Skip to content

Commit e67340b

Browse files
authored
Add global_context keyword to gdb.parse_and_eval in GDB stub (#12269)
1 parent ea34c97 commit e67340b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/gdb/gdb/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def add_history(value: Value, /) -> int: ...
4646
def history_count() -> int: ...
4747
def convenience_variable(name: str, /) -> Value | None: ...
4848
def set_convenience_variable(name: str, value: _ValueOrNative | None, /) -> None: ...
49-
def parse_and_eval(expression: str, /) -> Value: ...
49+
def parse_and_eval(expression: str, global_context: bool = False, /) -> Value: ...
5050
def find_pc_line(pc: int | Value) -> Symtab_and_line: ...
5151
def post_event(event: Callable[[], object], /) -> None: ...
5252
def write(string: str, stream: int = ...) -> None: ...

0 commit comments

Comments
 (0)