Re: [PATCH v2 1/1] meson.build: Add --enable-pdb option

Mohamed Mediouni <[email protected]>
Newsgroups org.nongnu.qemu-trivial,org.nongnu.qemu-devel
Message-ID <[email protected]>
> On 23. Mar 2026, at 18:44, Steve Aarnio <[email protected]> wrote:
> 
> This option will (attempt to) modify the QEMU compile and link flags to
> emit PDB symbol files rather than the standard (DWARF?) symbol output
> from gcc/clang. Prerequisites for this are host_os == Windows and
> --enable-debug flag set.
> 
> This enables using native Windows debug tools (Windbg/Visual Studio) for
> debugging QEMU.
> 
> Signed-off-by: Steve Aarnio <[email protected]>
> ---
> meson.build       | 5 +++++
> meson_options.txt | 2 ++
> 2 files changed, 7 insertions(+)

Hello,

A small thing on top:

diff --git a/configure b/configure
index cd1dadd8bb..e355484921 100755
--- a/configure
+++ b/configure
@@ -709,6 +709,9 @@ for opt do
       meson_option_add -Doptimization=0
       default_cflags='-O0 -g'
   ;;
+  --enable-pdb)
+      meson_option_add -Dpdb=true
+  ;;
   --disable-tcg) tcg="disabled"
   ;;
   --enable-tcg) tcg=“enabled"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.