I am writing a python debugger and disassembler using the PyDBG library I have the disassembler part working, but not all of the debugger. Is it possible to use it to return something similar to:
[*] Dumping registers for thread ID: 0x00000550 [**] EIP: 0x7c90eb94 [**] ESP: 0x0007fde0 [**] EBP: 0x0007fdfc [**] EAX: 0x006ee208 [**] EBX: 0x00000000 [**] ECX: 0x0007fdd8 [**] EDX: 0x7c90eb94 [*] END DUMP [*] Dumping registers for thread ID: 0x000005c0 [**] EIP: 0x7c95077b [**] ESP: 0x0094fff8 [**] EBP: 0x00000000 [**] EAX: 0x00000000 [**] EBX: 0x00000001 [**] ECX: 0x00000002 [**] EDX: 0x00000003 [*] END DUMP
I need the register state of every thread running. There are several thread_context
functions in PyDBG but I'm not sure how to use them to get that result. Thanks for any help!