Kaydet (Commit) 6bd6835c authored tarafından Guido van Rossum's avatar Guido van Rossum

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'.
üst 663f6c2a
...@@ -450,6 +450,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): ...@@ -450,6 +450,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def do_where(self, arg): def do_where(self, arg):
self.print_stack_trace() self.print_stack_trace()
do_w = do_where do_w = do_where
do_bt = do_where
def do_up(self, arg): def do_up(self, arg):
if self.curindex == 0: if self.curindex == 0:
...@@ -665,7 +666,9 @@ With a command name as argument, print help about that command ...@@ -665,7 +666,9 @@ With a command name as argument, print help about that command
print """w(here) print """w(here)
Print a stack trace, with the most recent frame at the bottom. Print a stack trace, with the most recent frame at the bottom.
An arrow indicates the "current frame", which determines the 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): def help_down(self):
self.help_d() self.help_d()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment