butter歌

Searching…

web.mit.edu

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).

sourceware.org

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.

web.eecs.umich.edu

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 c...

ftp.gnu.org

Debugging with GDB - Print Settings - GNU

Another situation where it is helpful to show symbol filenames and line numbers is when disassembling code; GDB shows you the line number and source file that corresponds to each instruction.