From edac7a6015f8fe5d6702f5778c68e65a4a90b251 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerd=20M=C3=B6llmann?= Date: Sat, 1 Jun 2024 21:05:50 +0200 Subject: [PATCH] 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) --- lisp/progmodes/gud.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2