MCPcopy Create free account
hub / github.com/qilingframework/qiling / gdb_test_client

Method gdb_test_client

tests/test_windows_debugger.py:47–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46 # some random command test just to make sure we covered most of the command
47 def gdb_test_client():
48 # yield to allow ql to launch its gdbserver
49 time.sleep(1.337 * 2)
50
51 with SimpleGdbClient('127.0.0.1', 9996) as client:
52 client.send('qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+;xmlRegisters=i386')
53 client.send('vMustReplyEmpty')
54 client.send('QStartNoAckMode')
55 client.send('Hgp0.0')
56 client.send('qXfer:auxv:read::0, 1000')
57 client.send('?')
58 client.send('qXfer:threads:read::0,fff')
59 client.send('qAttached:'+ str(ql.os.pid))
60 client.send('qC')
61 client.send('g')
62 client.send('m200, 100')
63 client.send('p10')
64 client.send('c')
65 client.send('k')
66
67 # yield to make sure ql gdbserver has enough time to receive our last command
68 time.sleep(1.337)
69
70 threading.Thread(target=gdb_test_client, daemon=True).start()
71

Callers

nothing calls this directly

Calls 2

SimpleGdbClientClass · 0.70
sendMethod · 0.45

Tested by

no test coverage detected