Explorar o código

chore: gdb notes

greatbridf %!s(int64=3) %!d(string=hai) anos
pai
achega
c07460aae0
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      gdb-usage.txt

+ 5 - 0
gdb-usage.txt

@@ -0,0 +1,5 @@
+"disas $pc,+32" disassembles 32 bytes from the current PC
+
+the display command prints after execution stops, so "disp /3i $pc" will print the next 3 instructions every time gdb gets control
+
+"stepi" and "nexti" do single-instruction step/next ("step" and "next" are source-line stepping and require debug info)