diff mbox series

[1/2] gdb: add source-highlight PACKAGECONFIG option

Message ID 20250410192632.2818966-1-ecordonnier@snap.com
State New
Headers show
Series [1/2] gdb: add source-highlight PACKAGECONFIG option | expand

Commit Message

Etienne Cordonnier April 10, 2025, 7:26 p.m. UTC
From: Etienne Cordonnier <ecordonnier@snap.com>

From gdb documentation:

> There are two ways that highlighting can be done.  First, if
> gdb was linked with the GNU Source Highlight library, then it
> is used.  Otherwise, if gdb was configured with Python
> scripting support, and if the Python Pygments package is available,
> then it will be used.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
 meta/recipes-devtools/gdb/gdb-common.inc | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index c0312f0f05c..474cdf65145 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -38,6 +38,7 @@  PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
 PACKAGECONFIG[tui] = "--enable-tui,--disable-tui,,ncurses-terminfo-base"
 PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz"
 PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"
+PACKAGECONFIG[source-highlight] = "--enable-source-highlight,--disable-source-highlight,source-highlight"
 
 GDBPROPREFIX = "--program-prefix=''"