diff options
author | Tom Tromey <tromey@adacore.com> | 2023-07-24 08:41:23 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-08-01 12:52:26 -0600 |
commit | f3337b1e944f379fb30e1e1639586d9392096795 (patch) | |
tree | da1b574b2610218316e79582c430280690c844b2 /gdb/python | |
parent | a18b53a8f68bc4fde9bd64b553f4ea500b30c626 (diff) | |
download | gdb-f3337b1e944f379fb30e1e1639586d9392096795.zip gdb-f3337b1e944f379fb30e1e1639586d9392096795.tar.gz gdb-f3337b1e944f379fb30e1e1639586d9392096795.tar.bz2 |
Rename private member of FrameDecorator
In Python, a member name starting with "__" is specially handled to
make it "more private" to the class -- it isn't truly private, but it
is renamed to make it less likely to be reused by mistake. This patch
ensures that this is done for the private method of FrameDecorator.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/lib/gdb/FrameDecorator.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/python/lib/gdb/FrameDecorator.py b/gdb/python/lib/gdb/FrameDecorator.py index 050cb93..c4a7806 100644 --- a/gdb/python/lib/gdb/FrameDecorator.py +++ b/gdb/python/lib/gdb/FrameDecorator.py @@ -53,7 +53,7 @@ class FrameDecorator(object): self._base = base @staticmethod - def _is_limited_frame(frame): + def __is_limited_frame(frame): """Internal utility to determine if the frame is special or limited.""" sal = frame.find_sal() @@ -148,7 +148,7 @@ class FrameDecorator(object): return self._base.frame_args() frame = self.inferior_frame() - if self._is_limited_frame(frame): + if self.__is_limited_frame(frame): return None args = FrameVars(frame) @@ -164,7 +164,7 @@ class FrameDecorator(object): return self._base.frame_locals() frame = self.inferior_frame() - if self._is_limited_frame(frame): + if self.__is_limited_frame(frame): return None args = FrameVars(frame) @@ -179,7 +179,7 @@ class FrameDecorator(object): return self._base.line() frame = self.inferior_frame() - if self._is_limited_frame(frame): + if self.__is_limited_frame(frame): return None sal = frame.find_sal() |