[Lldb-commits] [lldb] r122286 - /lldb/trunk/utils/emacs/gud.el

Johnny Chen johnny.chen at apple.com
Mon Dec 20 14:58:58 PST 2010

Author: johnny
Date: Mon Dec 20 16:58:58 2010
New Revision: 122286

URL: http://llvm.org/viewvc/llvm-project?rev=122286&view=rev
The recent change in argument parsing is messing up the emacs lldb mode's capability to properly
scan the debugger output for program counter when it comes to the output of 'Up Stack' or 'Down Stack'
gud commands.  Remove the single quotes around the argument strings for "settings set frame-format"
and "settings set thread-format" commands to avoid the single quotes which were being emitted as part
of the debugger output.


Modified: lldb/trunk/utils/emacs/gud.el
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/utils/emacs/gud.el?rev=122286&r1=122285&r2=122286&view=diff
--- lldb/trunk/utils/emacs/gud.el (original)
+++ lldb/trunk/utils/emacs/gud.el Mon Dec 20 16:58:58 2010
@@ -1001,9 +1001,9 @@
   ;; Make lldb dump fullpath instead of basename for a file.
   ;; See also gud-lldb-marker-filter where gud-last-frame is grokked from lldb output.
-    (gud-call "settings set frame-format 'frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\\n'")
+    (gud-call "settings set frame-format frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\\n")
     (sit-for 1)
-    (gud-call "settings set thread-format 'thread #${thread.index}: tid = ${thread.id}{, ${frame.pc}}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}{, stop reason = ${thread.stop-reason}}\\n'")
+    (gud-call "settings set thread-format thread #${thread.index}: tid = ${thread.id}{, ${frame.pc}}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}{, stop reason = ${thread.stop-reason}}\\n")
     (sit-for 1))
   (gud-def gud-listb  "breakpoint list"

More information about the lldb-commits mailing list