]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gdbinit: Use proper define syntax (GH-19557)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Apr 2020 12:55:29 +0000 (05:55 -0700)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 12:55:29 +0000 (05:55 -0700)
Using `def` rather than `define` results in:

    Ambiguous command "def pu": define, define-prefix.

Automerge-Triggered-By: @csabella
(cherry picked from commit 1221135289306333d11db25ab20cbbd21ceec630)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
Misc/gdbinit

index 45e79fcf6f4682d1445be4f5a4a92da4ef3cddf9..e8f62ba64764236ee5e69af100dd7bb32e6c3bb0 100644 (file)
@@ -160,7 +160,7 @@ document pystackv
   Print the entire Python call stack - verbose mode
 end
 
-def pu
+define pu
   set $uni = $arg0
   set $i = 0
   while (*$uni && $i++<100)