profiler.py 370 Bytes
Newer Older
German Leon's avatar
German Leon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gdb

"""
Main function
"""

# Initialize GDB to run the app
gdb.execute("set confirm off")
gdb.execute("set pagination off")
gdb.execute("set target-async off")
gdb.execute("set non-stop off")

# gdb_init_strings = str(os.environ["CAROL_FI_INFO"])
gdb_init_strings = arg0

for init_str in gdb_init_strings.split(";"):
     gdb.execute(init_str)

gdb.execute("r")