]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] gdbinit: Use proper define syntax (GH-19557) (GH-19678)
authorFlorian Bruhin <me@the-compiler.org>
Thu, 23 Apr 2020 15:53:23 +0000 (17:53 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 15:53:23 +0000 (08:53 -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 bb10bdba799aa6a57880324b5b22f7ec887ee7b0..a21b28e176170a24bd33ca6e8afde0a4a1a0afd4 100644 (file)
@@ -149,7 +149,7 @@ define pystackv
 end
 
 # generally useful macro to print a Unicode string
-def pu
+define pu
   set $uni = $arg0
   set $i = 0
   while (*$uni && $i++<100)