|
|
Subscribe / Log in / New account

Emacs and LLDB

Emacs and LLDB

Posted Feb 19, 2015 12:58 UTC (Thu) by mlopezibanez (guest, #66088)
In reply to: Emacs and LLDB by mathstuf
Parent article: Emacs and LLDB

Are you talking about GCC or Clang here? I implemented the GCC caret diagnostics with this testcase in mind (https://github.com/gcc-mirror/gcc/blob/master/gcc/diagnos...) thus if it doesn't work it must be some bug. Please report it: https://gcc.gnu.org/bugzilla/


to post comments

Emacs and LLDB

Posted Feb 19, 2015 13:00 UTC (Thu) by mathstuf (subscriber, #69389) [Link] (2 responses)

It works fine. The problem is that when a macro expands to some absurd line length, the caret is preceded by thousands of blanks which causes huge gaps in the scroll back.

Emacs and LLDB

Posted Feb 19, 2015 13:22 UTC (Thu) by mlopezibanez (guest, #66088) [Link] (1 responses)

> The problem is that when a macro expands to some absurd line length, the caret is preceded by thousands of blanks which causes huge gaps in the scroll back.

Perhaps I'm misunderstanding what you mean. Have you tried using -fmessage-length=100 to tell GCC to limit the output? In case of messages, they will wrap around so you don't lose any information but the caret line will be trimmed to fit in 100 columns.

Emacs and LLDB

Posted Feb 19, 2015 14:28 UTC (Thu) by mathstuf (subscriber, #69389) [Link]

That helps the blast of whitespace for a single caret, but unfortunately, Vim doesn't deal well with getting the message when it is wrapped like that (it just shows "path/to/file:line:col: warning: assuming " as the status message for :cc and friends, but it is all in the quickfix list at least).


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds