Bump msbuild to track xplat-master (#15295)
[mono-project.git] / data / gdb-pre7.0 / test-xdb.py
blobb60c4a2f1e8c736fcd9c9ead9396e85a97e307c0
1 # Tester script for the xdb functionality
2 # Run using gdb -P test-xdb.py <NORMAL GDB COMMAND LINE>
4 import sys
6 gdb.execute ("file %s".format (sys.argv [0]))
7 gdb.execute ("r --break *:* %s".format (" ".join (sys.argv [1:len (sys.argv)])))
9 while True:
10 try:
11 if gdb.threads () == None:
12 break
13 gdb.execute("xdb")
14 gdb.execute("bt")
15 gdb.execute("info args")
16 gdb.execute("info locals")
17 gdb.execute("c")
18 except:
19 gdb.execute ("quit")