From: Gerd Möllmann Date: Sat, 1 Jun 2024 19:05:50 +0000 (+0200) Subject: Fix LLDB frame-format for optional column number info X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=edac7a6015f8fe5d6702f5778c68e65a4a90b251;p=emacs.git Fix LLDB frame-format for optional column number info * lisp/progmodes/gud.el (gud--lldb-python-init-string): In the !gud part, make column number info optional by putting it in a scope. (cherry picked from commit 9a2088bdd928b384beca3c95c2719843f74924a0) --- diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index c16d78c5097..7486804da1b 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -3959,7 +3959,7 @@ so they have been disabled.")) deb = lldb.debugger inst = deb.GetInstanceName() ff = deb.GetInternalVariableValue('frame-format', inst).GetStringAtIndex(0) -ff = ff[:-1] + '!gud ${line.number}:${line.column}:${line.file.fullpath}\\\\n\"' +ff = ff[:-1] + '!gud ${line.number}:{${line.column}}:${line.file.fullpath}\\\\n\"' _ = deb.SetInternalVariable('frame-format', ff, inst) def gud_complete(s, max): interpreter = lldb.debugger.GetCommandInterpreter()