Logo Pastebin.fr
Pastebin

Retrouvez, créez et partagez vos snippets en temps réel.

a

python
import gdb

class DumpCmp(gdb.Breakpoint):
    def stop(self):
        rcx = int(gdb.parse_and_eval("$rcx"))
        rip = int(gdb.parse_and_eval("$rip"))
        imm = int(gdb.selected_inferior().read_memory(rip+1, 1)[0])
        print(f"{rcx:02d}: expected 0x{imm:02x}")
        return False

DumpCmp("*0x4014d8")
end

Créé il y a 2 semaines.

Rechercher un Pastebin

Aucun paste trouvé.