Hi, I am new to this debugger, and I cannot find a way for RemedyBG to find the symbols for an executable I made. The code is very basic, it only prints "Hello, World!", but after I start the debugging, it straight goes into disassembly and breakpoints seem not to work. I compiled the executable like this:
gcc -Wall -Wextra -g -O0 main.c -o main
And I created the .pdb file like this:
objcopy --only-keep-debug main.exe main.pdb
Does remedy also work with the 'gcc' or 'g++' compilers?
Thanks!
gcc does not support producing codeview format debug information (that is stored in pdb files). gcc can produce only dwarf debug info that remedy does not support.
You can try switching to clang - it is mostly gcc compatible and is able to produce codeview/pdb files with its lld linker.
clang -fuse-ld=lld -g -gcodeview -Wl,/debug,/pdb:main.pdb -o main.exe main.c