summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-20 17:57:37 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-20 17:57:37 (GMT)
commit6bd6835c1f68509a0bb9d82f98873a32c1475142 (patch)
treeeddac08cb457c03247273b9fdae841bbca4acba0 /Lib
parent663f6c2ad288b2e8bc1a1a50d29e12df4f755d5b (diff)
downloadcpython-6bd6835c1f68509a0bb9d82f98873a32c1475142.zip
cpython-6bd6835c1f68509a0bb9d82f98873a32c1475142.tar.gz
cpython-6bd6835c1f68509a0bb9d82f98873a32c1475142.tar.bz2
I've been using gdb a lot lately -- I'm missing 'bt' as a command in
pdb (pdb calls it 'where'). Added 'bt' as an alias for 'where'.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pdb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index cb1a4d2..d7fe54a 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -450,6 +450,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def do_where(self, arg):
self.print_stack_trace()
do_w = do_where
+ do_bt = do_where
def do_up(self, arg):
if self.curindex == 0:
@@ -665,7 +666,9 @@ With a command name as argument, print help about that command
print """w(here)
Print a stack trace, with the most recent frame at the bottom.
An arrow indicates the "current frame", which determines the
-context of most commands."""
+context of most commands. 'bt' is an alias for this command."""
+
+ help_bt = help_w
def help_down(self):
self.help_d()