]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix LLDB frame-format for optional column number info
authorGerd Möllmann <gerd@gnu.org>
Sat, 1 Jun 2024 19:05:50 +0000 (21:05 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 2 Jun 2024 06:34:02 +0000 (08:34 +0200)
* 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

index c16d78c5097305e1814bfe97a4fddc499018d1d5..7486804da1b40705c8ee4aa8d39be62de531c0f3 100644 (file)
@@ -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()