blob: e1e3628157e3bc1669c48c35fbfbfe29360a3ffa [file] [log] [blame]
Caroline Tice558be582010-06-30 16:22:25 +00001#
2# append-debugger-id.py
3#
4# This script adds a global variable, 'debugger_unique_id' to the lldb
5# module (which was automatically generated via running swig), and
6# initializes it to 0.
7#
Johnny Chen6b6f5ba2010-10-14 16:36:49 +00008# It also calls SBDebugger.Initialize() to initialize the lldb debugger
9# subsystem.
10#
Caroline Tice558be582010-06-30 16:22:25 +000011
12import sys
13
14if len (sys.argv) != 2:
15 output_name = "./lldb.py"
16else:
17 output_name = sys.argv[1] + "/lldb.py"
18
19# print "output_name is '" + output_name + "'"
20
Johnny Chen0b480152010-10-14 16:57:08 +000021with open(output_name, 'a') as f_out:
22 f_out.write("debugger_unique_id = 0\n")
23 f_out.write("SBDebugger.Initialize()\n")