gdb debugger multiple source files
c, gdb
Solution
It's as simple as:
b filename.c:XYZ
See the documentation for more info.
Problem
When I attach gdb to a process that uses many source files, such as PHP, sometimes I want to set a breakpoint on line x of file y. How do I specify the file for gdb?