I use emacs + gdb to debug a bunch of .c files on unix - and it always worked well. But some of the projects I work for also contain many .pc files (Pro * C / C ++). These files generate .c and .i files after compilation. But at runtime, I can only see .i files in gdb - which are not useful for debugging and are always out of sync. In other words, gdb will not load the .c files I need.
One of the guys who work with me suggested opening the .c files in another editor and trying to find the source of the lines that gdb shows for .i files.
Is there another way? How to upload .c files to gdb? How to debug these .pc files?
source
share