A gdb problem.

Source code in on machine A, its binary is on machine B. Binary was complied using -g option.
When I debug it using gdb, it only shows the line number, not the code content at the line. Is there a way for GDB to refer source code at machine B during debug?

Thank you!