GDB error: Selected architecture i386 is not compatible with reported target architecture i386:x86-64
OK, the gdb installation on my machine was screwed. There's no chance anyone could imagine it. I moved to another machine and everything is good now.
This error could appear when you try to use WSL gdb on non-WSL app.
I think you updated the system and the latest version of the glib is not supporting 32bit applications.
Can you do a find to find out which files in all the bin
and lib
directories on your system were changed within the last 2 days? If it used to support it, but the upgraded version doesn't, then the application which was (probably without your knowledge) compiled to be 32-bit will not be a valid target for all the standard tools on the box.
You specify the target architecture with -m32
or -m64
. See if you can specify it explicitly if you are compiling and debugging on different machines.