Inspecting AssemblyWarningThis post is more than a year old. Information may be outdated. Assembly CommandDescriptiongdb executablestarts executablelayout asmprints Assembly codesCTRL+Lreformats terminalb function_namesets a breakpoint at function_nameb *0x555555555712sets a breakpoint at specified addressrun 1 (phase number)run with inputx/x $registerprints register in hexx/s $registerprints register in stringsistep instructionninext instructionfinishfinishes current steps and go to next instructionx/d $registerprints register in digitbreak mainsets a breakpoint at the start of the main function.runrestarts the program when stopped in mid-execution.nextruns until the next source line is reached.wherereturns a function call trace of how you got to this point and shows line numbers inside files.listprints surrounding code.contcontinues execution from the current location.quitquits gdb"%d %[^\n]"integer + stringlayout regslayout all registersdisas functionjump to that functionx/1gx $rspprint word from $rspx/32xb $rspprint 32 bytes from memory address inside $rspBacklinks5221020GDBComputer Systems220926220925Comments