Do we have a way to view assembly and c code both using gdb.
disassemble function_name shows only assembly, I was trying to find a way to easliy map c code to assembly.
For your purpose, try
objdump -S
from man objdump:
-S --source Display source code intermixed with disassembly, if possible. Implies -d.