[Python-checkins] [3.7] gdbinit: Use proper define syntax (GH-19557) (GH-19678)

Florian Bruhin webhook-mailer at python.org
Thu Apr 23 11:53:27 EDT 2020


https://github.com/python/cpython/commit/e1072d60dbbbfdb41000880da912760c8b60b1f4
commit: e1072d60dbbbfdb41000880da912760c8b60b1f4
branch: 3.7
author: Florian Bruhin <me at the-compiler.org>
committer: GitHub <noreply at github.com>
date: 2020-04-23T08:53:23-07:00
summary:

[3.7] gdbinit: Use proper define syntax (GH-19557) (GH-19678)



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 at the-compiler.org>

files:
M Misc/gdbinit

diff --git a/Misc/gdbinit b/Misc/gdbinit
index bb10bdba799aa..a21b28e176170 100644
--- a/Misc/gdbinit
+++ b/Misc/gdbinit
@@ -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)



More information about the Python-checkins mailing list