-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
027115e
commit d3c831c
Showing
8 changed files
with
288 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from collections.abc import Iterator | ||
from typing import Protocol | ||
|
||
import gdb | ||
|
||
class SymValueWrapper(Protocol): | ||
def symbol(self) -> gdb.Symbol | str: ... | ||
def value(self) -> gdb._ValueOrNative | None: ... | ||
|
||
class FrameDecorator: | ||
def __init__(self, base: gdb.Frame | FrameDecorator) -> None: ... | ||
def elided(self) -> Iterator[gdb.Frame] | None: ... | ||
def function(self) -> str | None: ... | ||
def address(self) -> int | None: ... | ||
def filename(self) -> str | None: ... | ||
def line(self) -> int | None: ... | ||
def frame_args(self) -> Iterator[SymValueWrapper] | None: ... | ||
def frame_locals(self) -> Iterator[SymValueWrapper] | None: ... | ||
def inferior_frame(self) -> gdb.Frame: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import gdb | ||
|
||
class FrameIterator: | ||
frame: gdb.Frame | ||
|
||
def __init__(self, frame_obj: gdb.Frame) -> None: ... | ||
def __iter__(self) -> FrameIterator: ... | ||
def next(self) -> gdb.Frame: ... | ||
def __next__(self) -> gdb.Frame: ... |
Oops, something went wrong.