# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import gdb
-import itertools
-
class FrameIterator(object):
"""A gdb.Frame iterator. Iterates over gdb.Frames or objects that
else:
print("'%s' is a %s with the following " "fields:\n" % (name, type_desc))
- has_explorable_fields = False
current_choice = 0
choice_to_compound_field_map = {}
print_list = []
)
def invoke(self, arg_str, from_tty):
- if ExploreUtils.check_args("explore", arg_str) == False:
+ if ExploreUtils.check_args("explore", arg_str) is False:
return
# Check if it is a value
)
def invoke(self, arg_str, from_tty):
- if ExploreUtils.check_args("explore value", arg_str) == False:
+ if ExploreUtils.check_args("explore value", arg_str) is False:
return
value = ExploreUtils.get_value_from_str(arg_str)
)
def invoke(self, arg_str, from_tty):
- if ExploreUtils.check_args("explore type", arg_str) == False:
+ if ExploreUtils.check_args("explore type", arg_str) is False:
return
datatype = ExploreUtils.get_type_from_str(arg_str)
import sys
import gdb
-import copy
-from gdb.FrameIterator import FrameIterator
-from gdb.FrameDecorator import FrameDecorator
import gdb.frames
-import itertools
# GDB Commands.
class SetFilterPrefixCmd(gdb.Command):
from text/word analysis. This list can be empty when there
are no suggestions for completion.
"""
- if all_flag == True:
+ if all_flag:
filter_locations = ["all", "global", "progspace"]
else:
filter_locations = ["global", "progspace"]
return "The extended prompt is not set."
def get_set_string(self):
- if self.hook_set == False:
+ if self.hook_set is False:
gdb.prompt_hook = self.before_prompt_hook
self.hook_set = True
return ""