aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@sourceware.org>2013-01-21 21:44:57 +0000
committerSiva Chandra Reddy <sivachandra@sourceware.org>2013-01-21 21:44:57 +0000
commitaa6199c69abb6e2cb00dff0d79985c8548db4b1c (patch)
tree59544bbac72fabe40de595bb34e5abfecad968d5 /gdb/python
parentd2afef13c283c7ea0f551ddfe966651b63ad6700 (diff)
downloadgdb-aa6199c69abb6e2cb00dff0d79985c8548db4b1c.zip
gdb-aa6199c69abb6e2cb00dff0d79985c8548db4b1c.tar.gz
gdb-aa6199c69abb6e2cb00dff0d79985c8548db4b1c.tar.bz2
* 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
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/lib/gdb/command/explore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/command/explore.py b/gdb/python/lib/gdb/command/explore.py
index d5f09c1..dd77875 100644
--- a/gdb/python/lib/gdb/command/explore.py
+++ b/gdb/python/lib/gdb/command/explore.py
@@ -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))