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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

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
Comment by yangqibin (jidibinlin) - Saturday, 05 October 2019, 06:46 GMT
I want this feature too. It`s not a hard job.
Comment by Hector (h3b) - Friday, 11 October 2019, 03:25 GMT
Please enable this feature! Thanks!
Comment by Ignacio Losiggio (mega) - Thursday, 23 January 2020, 18:34 GMT
Attaching a patch for the current PKGBUILD. The generated package works on my machine but i'm not sure if the patch makes source-highlight a hard dependency or an optional one.
Comment by Mariusz Libera (mar04) - Monday, 17 February 2020, 23:15 GMT
That would make it a hard dependency it seems. gdb with source-highlight uninstalled:
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.

Loading...