Re: [PATCH] meson.build: Add --enable-use-pdb option

Mohamed Mediouni <[email protected]>
Newsgroups org.nongnu.qemu-trivial,org.nongnu.qemu-devel
Message-ID <[email protected]>
> On 22. Mar 2026, at 12:56, Michael Tokarev <[email protected]> wrote:
> 
> Overall, I think there's no need to have separate option especially
> for pdb, - it can be enabled on windows when --enable-debug is
> specified (or is it --debug? I don't remember).
> 
> This code:
> 
> option_cflags = (get_option('debug') ? ['-g'] : [])
> 
> can be extended to add the necessary compiler options.

Hello,

I think that’s a bit suboptimal because while Clang can generate PDBs, the same
isn’t true for a GCC build, where gdb + DWARF is in practice preferred instead.

A converter exists at https://github.com/rainers/cv2pdb however to cover the GCC
case but the compiler won’t do it by itself.

And people might also want to use gdb/lldb when they can :)

Thanks,
-Mohamed
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.