Hi everyone,
I installed msys2 with C compiler on my windows 10 system and its
console works fine. It also works well using the codeblocks gui from
windows and, adding the path to the PATH, I can also compile from the
cmd prompt but gdb doesn't work. Could anyone tell me how to fix the
problem?
This is what it displays when giving the 'l' command from gdb:
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<
https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<
http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pp...
(gdb) l
1
C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/mbrtowc.c: No
such file or directory.
(gdb) l
1 in C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/mbrtowc.c
(gdb)