FS#62702 - [gdb] Enable TUI source code syntax highliting
Attached to Project:
Arch Linux
Opened by Krzysztof Kundzicz (Athantor) - Wednesday, 22 May 2019, 07:44 GMT
Last edited by Anatol Pomozov (anatolik) - Thursday, 20 February 2020, 22:29 GMT
Opened by Krzysztof Kundzicz (Athantor) - Wednesday, 22 May 2019, 07:44 GMT
Last edited by Anatol Pomozov (anatolik) - Thursday, 20 February 2020, 22:29 GMT
|
Details
Description:
Since version 8.3, if compiled with `extra/source-highlight`, gdb supports fancy syntax highlighting in its TUI source view. Excerpt from the NEWS file: * Terminal styling is now available for the CLI and the TUI. GNU Source Highlight can additionally be used to provide styling of source code snippets. See the "set style" commands, below, for more information. gdb manually compiled after installing source-highlight: https://ibb.co/KmKFNpv and it's linked with highlighting lib: ``` kk@kk /tmp/gdb-8.3/gdb $ ldd ./gdb | grep high libsource-highlight.so.4 => /usr/lib/libsource-highlight.so.4 (0x00007fb755e1e000) kk@kk /tmp/gdb-8.3/gdb $ ``` Packaged Arch's gdb – no highlighting: https://ibb.co/5rpDqNh and no linkage: ``` kk@kk /tmp/gdb-8.3/gdb $ ldd `which gdb` | grep high kk@kk /tmp/gdb-8.3/gdb ✘ $ ``` Additional info: * package version(s) gdb-8.3-1 * config and/or log files etc. - * link to upstream bug report, if any - Steps to reproduce: - gdb ./app - b main - r - <C-x>, <a> |
This task depends upon
Closed by Anatol Pomozov (anatolik)
Thursday, 20 February 2020, 22:29 GMT
Reason for closing: Implemented
Additional comments about closing: SVN r375968
Thursday, 20 February 2020, 22:29 GMT
Reason for closing: Implemented
Additional comments about closing: SVN r375968
gdb: error while loading shared libraries: libsource-highlight.so.4: cannot open shared object file: No such file or directory
even if I have 'set style sources off' in .gdbinit. Still, I think it's worth it.