List (Debugging with GDB) - sourceware. org Print lines ending with last Likewise, if last resolves to more than one source line in the program, then the list command prints the list of resolved source lines and does not proceed with the source code listing
Debugging with GDB - Examining Source Files Print the starting and ending addresses of the compiled code for source line linespec You can specify source lines in any of the ways understood by the list command (see section Printing source lines)
gdb QuickStart - University of Michigan Since all of gdb is all in one window, when you are debugging you cannot see the source code for your program To view the source code, type "list" or "l" gdb will print out the source code for the lines around the current line to be executed