File 0002-fix-CGAL-gdb_autoload-h-end-the-section.patch of Package cgal

From eb2257df4da4c52c75fe384e803d9a6376057b8a Mon Sep 17 00:00:00 2001
From: Laurent Rineau <[email protected]>
Date: Mon, 15 Jun 2026 10:56:34 +0200
Subject: [PATCH] fix <CGAL/gdb_autoload.h>: end the section with a null byte

---
 Installation/include/CGAL/gdb_autoload.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Paths are manually fixed to apply on v6.2.

diff --git a/Installation/include/CGAL/gdb_autoload.h b/Installation/include/CGAL/gdb_autoload.h
index fa676fda69b6..85a04073b3f1 100644
--- a/include/CGAL/gdb_autoload.h
+++ b/include/CGAL/gdb_autoload.h
@@ -26,10 +26,12 @@
 // Use inline assembly to embed the .debug_gdb_scripts section
 __asm__(
     ".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n"
-    ".ascii \"\\4gdb.inlined-script.CGAL\\n\"\n"
+    ".byte 4\n"
+    ".ascii \"gdb.inlined-script.CGAL\\n\"\n"
     ".ascii \"import gdb\\n\"\n"
     ".ascii \"path=[line.strip() for line in gdb.execute('info sources', to_string=True).split(',') if line.count('include/CGAL/gdb_autoload.h')][0].replace('/include/CGAL/gdb_autoload.h', '')\\n\"\n"
     ".ascii \"gdb.execute('source ' + path + '/share/gdb/auto-load/cgal_printers.py')\\n\"\n"
+    ".byte 0\n"
     ".popsection\n"
 );