Update example client for API rewrite

This commit is contained in:
snare 2015-12-31 15:23:09 +11:00
parent 1128cdc30d
commit 2db9368731
1 changed files with 2 additions and 3 deletions

View File

@ -43,12 +43,11 @@ from voltron.core import Client
def main(): def main():
# Create a client and connect to the server # Create a client and connect to the server
client = Client() client = Client()
client.connect()
# Main event loop # Main event loop
while True: while True:
# Wait for the debugger to stop again # Wait for the debugger to stop again
res = client.perform_request('wait') res = client.perform_request('version', block=True)
if res.is_success: if res.is_success:
# If nothing went wrong, get the instruction pointer and print it # If nothing went wrong, get the instruction pointer and print it
res = client.perform_request('registers', registers=['rip']) res = client.perform_request('registers', registers=['rip'])
@ -62,4 +61,4 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() main()