mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-29 23:36:06 +08:00
* python/lib/gdb/commands/explore.py
(CompoundExplorer.explore_expr): Correct the name of a method being invoked. (ExploreTypeCommand.invoke): Add a missing 'return'. * testsuite/gdb.python/py-explore.exp: Improve a test
This commit is contained in:
@ -462,7 +462,7 @@ class CompoundExplorer(object):
|
||||
return True
|
||||
else:
|
||||
if is_child:
|
||||
Explorer.returning_to_parent_value_message()
|
||||
Explorer.return_to_parent_value()
|
||||
else:
|
||||
if is_child:
|
||||
Explorer.return_to_parent_value_prompt()
|
||||
@ -747,6 +747,7 @@ class ExploreTypeCommand(gdb.Command):
|
||||
if value is not None:
|
||||
print ("'%s' is of type '%s'." % (arg_str, str(value.type)))
|
||||
Explorer.explore_type(str(value.type), value.type, False)
|
||||
return
|
||||
|
||||
raise gdb.GdbError(("'%s' is not a type or value in the current "
|
||||
"context." % arg_str))
|
||||
|
Reference in New Issue
Block a user