blob: 09a68608b775110bdd536865df7e900f258aac42 [file] [log] [blame]
Johnny Chen77377772010-09-07 17:06:13 +00001"""
2Test lldb settings command.
3"""
4
5import os, time
6import unittest2
7import lldb
8from lldbtest import *
9
10class SettingsCommandTestCase(TestBase):
11
12 mydir = "settings"
13
Johnny Chen1a9f4dd2010-09-16 01:53:04 +000014 @classmethod
15 def classCleanup(cls):
Johnny Chena91b9472010-10-22 21:06:04 +000016 """Cleanup the test byproducts."""
Filipe Cabecinhas0eec15a2012-06-20 10:13:40 +000017 cls.RemoveTempFile("output1.txt")
18 cls.RemoveTempFile("output2.txt")
19 cls.RemoveTempFile("stderr.txt")
20 cls.RemoveTempFile("stdout.txt")
Johnny Chen1a9f4dd2010-09-16 01:53:04 +000021
Johnny Chen7fa6c952011-02-04 00:50:49 +000022 def test_apropos_should_also_search_settings_description(self):
23 """Test that 'apropos' command should also search descriptions for the settings variables."""
24
25 self.expect("apropos 'environment variable'",
Greg Clayton1d885962011-11-08 02:43:13 +000026 substrs = ["target.env-vars",
Johnny Chen7fa6c952011-02-04 00:50:49 +000027 "environment variables",
28 "executable's environment"])
29
Johnny Chen8cc80b22012-01-23 19:49:28 +000030 def test_append_target_env_vars(self):
Greg Clayton67cc0632012-08-22 17:17:09 +000031 """Test that 'append target.run-args' works."""
Johnny Chen8cc80b22012-01-23 19:49:28 +000032 # Append the env-vars.
33 self.runCmd('settings append target.env-vars MY_ENV_VAR=YES')
34 # And add hooks to restore the settings during tearDown().
35 self.addTearDownHook(
Greg Clayton67cc0632012-08-22 17:17:09 +000036 lambda: self.runCmd("settings clear target.env-vars"))
Johnny Chen8cc80b22012-01-23 19:49:28 +000037
38 # Check it immediately!
39 self.expect('settings show target.env-vars',
40 substrs = ['MY_ENV_VAR=YES'])
41
42 def test_insert_before_and_after_target_run_args(self):
43 """Test that 'insert-before/after target.run-args' works."""
44 # Set the run-args first.
45 self.runCmd('settings set target.run-args a b c')
46 # And add hooks to restore the settings during tearDown().
47 self.addTearDownHook(
Greg Clayton67cc0632012-08-22 17:17:09 +000048 lambda: self.runCmd("settings clear target.run-args"))
Johnny Chen8cc80b22012-01-23 19:49:28 +000049
50 # Now insert-before the index-0 element with '__a__'.
51 self.runCmd('settings insert-before target.run-args 0 __a__')
52 # And insert-after the index-1 element with '__A__'.
53 self.runCmd('settings insert-after target.run-args 1 __A__')
54 # Check it immediately!
55 self.expect('settings show target.run-args',
Greg Clayton67cc0632012-08-22 17:17:09 +000056 substrs = ['target.run-args',
Johnny Chen8cc80b22012-01-23 19:49:28 +000057 '[0]: "__a__"',
58 '[1]: "a"',
59 '[2]: "__A__"',
60 '[3]: "b"',
61 '[4]: "c"'])
62
Johnny Chen5928f642012-01-21 01:45:18 +000063 def test_replace_target_run_args(self):
64 """Test that 'replace target.run-args' works."""
65 # Set the run-args and then replace the index-0 element.
66 self.runCmd('settings set target.run-args a b c')
67 # And add hooks to restore the settings during tearDown().
68 self.addTearDownHook(
Greg Clayton67cc0632012-08-22 17:17:09 +000069 lambda: self.runCmd("settings clear target.run-args"))
Johnny Chen5928f642012-01-21 01:45:18 +000070
71 # Now replace the index-0 element with 'A', instead.
72 self.runCmd('settings replace target.run-args 0 A')
73 # Check it immediately!
74 self.expect('settings show target.run-args',
Greg Clayton67cc0632012-08-22 17:17:09 +000075 substrs = ['target.run-args (arguments) =',
Johnny Chen5928f642012-01-21 01:45:18 +000076 '[0]: "A"',
77 '[1]: "b"',
78 '[2]: "c"'])
79
Johnny Chen77377772010-09-07 17:06:13 +000080 def test_set_prompt(self):
81 """Test that 'set prompt' actually changes the prompt."""
Johnny Chen881c3712010-09-07 17:12:10 +000082
Johnny Chen23cb3712010-09-27 17:36:59 +000083 # Set prompt to 'lldb2'.
Greg Clayton00108402013-03-06 21:17:06 +000084 self.runCmd("settings set prompt 'lldb2 '")
Johnny Chen881c3712010-09-07 17:12:10 +000085
86 # Immediately test the setting.
Johnny Chena913ea42010-10-19 19:39:20 +000087 self.expect("settings show prompt", SETTING_MSG("prompt"),
Greg Clayton00108402013-03-06 21:17:06 +000088 startstr = 'prompt (string) = "lldb2 "')
Johnny Chen881c3712010-09-07 17:12:10 +000089
90 # The overall display should also reflect the new setting.
Johnny Chena913ea42010-10-19 19:39:20 +000091 self.expect("settings show", SETTING_MSG("prompt"),
Greg Clayton00108402013-03-06 21:17:06 +000092 substrs = ['prompt (string) = "lldb2 "'])
Johnny Chen77377772010-09-07 17:06:13 +000093
Johnny Chen23cb3712010-09-27 17:36:59 +000094 # Use '-r' option to reset to the original default prompt.
Greg Clayton67cc0632012-08-22 17:17:09 +000095 self.runCmd("settings clear prompt")
Johnny Chen23cb3712010-09-27 17:36:59 +000096
Johnny Chena37764b2010-09-07 17:31:05 +000097 def test_set_term_width(self):
98 """Test that 'set term-width' actually changes the term-width."""
99
Johnny Chena37764b2010-09-07 17:31:05 +0000100 self.runCmd("settings set term-width 70")
101
102 # Immediately test the setting.
Johnny Chena913ea42010-10-19 19:39:20 +0000103 self.expect("settings show term-width", SETTING_MSG("term-width"),
Greg Clayton4c207172011-04-19 22:32:36 +0000104 startstr = "term-width (int) = 70")
Johnny Chena37764b2010-09-07 17:31:05 +0000105
106 # The overall display should also reflect the new setting.
Johnny Chena913ea42010-10-19 19:39:20 +0000107 self.expect("settings show", SETTING_MSG("term-width"),
Greg Clayton4c207172011-04-19 22:32:36 +0000108 substrs = ["term-width (int) = 70"])
Johnny Chena37764b2010-09-07 17:31:05 +0000109
Johnny Chen41b780d2012-01-18 19:07:08 +0000110 #rdar://problem/10712130
Johnny Chen41b780d2012-01-18 19:07:08 +0000111 def test_set_frame_format(self):
112 """Test that 'set frame-format' with a backtick char in the format string works as well as fullpath."""
113 self.buildDefault()
114
115 exe = os.path.join(os.getcwd(), "a.out")
116 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
117
Filipe Cabecinhas5158f3d2012-05-18 21:35:43 +0000118 def cleanup():
119 format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n"
120 self.runCmd("settings set frame-format %s" % format_string, check=False)
Filipe Cabecinhas5158f3d2012-05-18 21:35:43 +0000121
122 # Execute the cleanup function during test case tear down.
123 self.addTearDownHook(cleanup)
124
Johnny Chen41b780d2012-01-18 19:07:08 +0000125 format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name-with-args}{${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\n"
126 self.runCmd("settings set frame-format %s" % format_string)
127
128 # Immediately test the setting.
129 self.expect("settings show frame-format", SETTING_MSG("frame-format"),
130 substrs = [format_string])
131
132 self.runCmd("breakpoint set -n main")
133 self.runCmd("run")
134 self.expect("thread backtrace",
135 substrs = ["`main", os.getcwd()])
136
Johnny Chen3e9c50c2010-10-18 17:51:45 +0000137 def test_set_auto_confirm(self):
138 """Test that after 'set auto-confirm true', manual confirmation should not kick in."""
139 self.buildDefault()
140
141 exe = os.path.join(os.getcwd(), "a.out")
142 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
143
Johnny Chen3e9c50c2010-10-18 17:51:45 +0000144 self.runCmd("settings set auto-confirm true")
145
146 # Immediately test the setting.
Johnny Chena913ea42010-10-19 19:39:20 +0000147 self.expect("settings show auto-confirm", SETTING_MSG("auto-confirm"),
Greg Clayton4c207172011-04-19 22:32:36 +0000148 startstr = "auto-confirm (boolean) = true")
Johnny Chen3e9c50c2010-10-18 17:51:45 +0000149
150 # Now 'breakpoint delete' should just work fine without confirmation
151 # prompt from the command interpreter.
152 self.runCmd("breakpoint set -n main")
153 self.expect("breakpoint delete",
154 startstr = "All breakpoints removed")
155
156 # Restore the original setting of auto-confirm.
Greg Clayton67cc0632012-08-22 17:17:09 +0000157 self.runCmd("settings clear auto-confirm")
Johnny Chena913ea42010-10-19 19:39:20 +0000158 self.expect("settings show auto-confirm", SETTING_MSG("auto-confirm"),
Greg Clayton4c207172011-04-19 22:32:36 +0000159 startstr = "auto-confirm (boolean) = false")
Johnny Chen3e9c50c2010-10-18 17:51:45 +0000160
Johnny Chend5e111c2010-09-15 22:27:29 +0000161 @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
Johnny Chen24086bc2012-04-06 19:54:10 +0000162 @dsym_test
Johnny Chena245f932010-12-14 23:43:29 +0000163 def test_run_args_and_env_vars_with_dsym(self):
Johnny Chend5e111c2010-09-15 22:27:29 +0000164 """Test that run-args and env-vars are passed to the launched process."""
165 self.buildDsym()
166 self.pass_run_args_and_env_vars()
167
Johnny Chen24086bc2012-04-06 19:54:10 +0000168 @dwarf_test
Johnny Chena245f932010-12-14 23:43:29 +0000169 def test_run_args_and_env_vars_with_dwarf(self):
Johnny Chend5e111c2010-09-15 22:27:29 +0000170 """Test that run-args and env-vars are passed to the launched process."""
171 self.buildDwarf()
172 self.pass_run_args_and_env_vars()
173
174 def pass_run_args_and_env_vars(self):
175 """Test that run-args and env-vars are passed to the launched process."""
176 exe = os.path.join(os.getcwd(), "a.out")
177 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
178
179 # Set the run-args and the env-vars.
Johnny Chen707d8222010-10-19 23:40:13 +0000180 # And add hooks to restore the settings during tearDown().
Greg Clayton1d885962011-11-08 02:43:13 +0000181 self.runCmd('settings set target.run-args A B C')
Johnny Chen707d8222010-10-19 23:40:13 +0000182 self.addTearDownHook(
Greg Clayton67cc0632012-08-22 17:17:09 +0000183 lambda: self.runCmd("settings clear target.run-args"))
Greg Clayton1d885962011-11-08 02:43:13 +0000184 self.runCmd('settings set target.env-vars ["MY_ENV_VAR"]=YES')
Johnny Chen707d8222010-10-19 23:40:13 +0000185 self.addTearDownHook(
Greg Clayton67cc0632012-08-22 17:17:09 +0000186 lambda: self.runCmd("settings clear target.env-vars"))
Johnny Chend5e111c2010-09-15 22:27:29 +0000187
188 self.runCmd("run", RUN_SUCCEEDED)
189
190 # Read the output file produced by running the program.
Johnny Chena245f932010-12-14 23:43:29 +0000191 with open('output2.txt', 'r') as f:
Johnny Chen277c8f02010-10-08 22:10:42 +0000192 output = f.read()
Johnny Chend5e111c2010-09-15 22:27:29 +0000193
Johnny Chenbe7da212010-10-08 20:01:03 +0000194 self.expect(output, exe=False,
195 substrs = ["argv[1] matches",
196 "argv[2] matches",
197 "argv[3] matches",
198 "Environment variable 'MY_ENV_VAR' successfully passed."])
Johnny Chend5e111c2010-09-15 22:27:29 +0000199
Johnny Chen80554b82010-12-04 00:44:56 +0000200 def test_pass_host_env_vars(self):
201 """Test that the host env vars are passed to the launched process."""
202 self.buildDefault()
203
204 exe = os.path.join(os.getcwd(), "a.out")
205 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
206
207 # By default, inherit-env is 'true'.
Greg Clayton1d885962011-11-08 02:43:13 +0000208 self.expect('settings show target.inherit-env', "Default inherit-env is 'true'",
209 startstr = "target.inherit-env (boolean) = true")
Johnny Chen80554b82010-12-04 00:44:56 +0000210
211 # Set some host environment variables now.
212 os.environ["MY_HOST_ENV_VAR1"] = "VAR1"
213 os.environ["MY_HOST_ENV_VAR2"] = "VAR2"
214
Johnny Chena245f932010-12-14 23:43:29 +0000215 # This is the function to unset the two env variables set above.
216 def unset_env_variables():
217 os.environ.pop("MY_HOST_ENV_VAR1")
218 os.environ.pop("MY_HOST_ENV_VAR2")
219
220 self.addTearDownHook(unset_env_variables)
Johnny Chen80554b82010-12-04 00:44:56 +0000221 self.runCmd("run", RUN_SUCCEEDED)
222
223 # Read the output file produced by running the program.
Johnny Chena245f932010-12-14 23:43:29 +0000224 with open('output1.txt', 'r') as f:
Johnny Chen80554b82010-12-04 00:44:56 +0000225 output = f.read()
226
227 self.expect(output, exe=False,
228 substrs = ["The host environment variable 'MY_HOST_ENV_VAR1' successfully passed.",
229 "The host environment variable 'MY_HOST_ENV_VAR2' successfully passed."])
230
Johnny Chen93b0c8b2011-01-25 17:39:43 +0000231 def test_set_error_output_path(self):
Greg Clayton1d885962011-11-08 02:43:13 +0000232 """Test that setting target.error/output-path for the launched process works."""
Johnny Chen2fcc0e52010-09-16 18:26:06 +0000233 self.buildDefault()
234
235 exe = os.path.join(os.getcwd(), "a.out")
236 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
237
Johnny Chen93b0c8b2011-01-25 17:39:43 +0000238 # Set the error-path and output-path and verify both are set.
Greg Clayton1d885962011-11-08 02:43:13 +0000239 self.runCmd("settings set target.error-path stderr.txt")
240 self.runCmd("settings set target.output-path stdout.txt")
Johnny Chen93b0c8b2011-01-25 17:39:43 +0000241 # And add hooks to restore the original settings during tearDown().
Johnny Chen707d8222010-10-19 23:40:13 +0000242 self.addTearDownHook(
Greg Clayton67cc0632012-08-22 17:17:09 +0000243 lambda: self.runCmd("settings clear target.output-path"))
Johnny Chen93b0c8b2011-01-25 17:39:43 +0000244 self.addTearDownHook(
Greg Clayton67cc0632012-08-22 17:17:09 +0000245 lambda: self.runCmd("settings clear target.error-path"))
Johnny Chen93b0c8b2011-01-25 17:39:43 +0000246
Greg Clayton1d885962011-11-08 02:43:13 +0000247 self.expect("settings show target.error-path",
248 SETTING_MSG("target.error-path"),
Greg Clayton67cc0632012-08-22 17:17:09 +0000249 startstr = 'target.error-path (file) = "stderr.txt"')
Johnny Chen707d8222010-10-19 23:40:13 +0000250
Greg Clayton1d885962011-11-08 02:43:13 +0000251 self.expect("settings show target.output-path",
252 SETTING_MSG("target.output-path"),
Greg Clayton67cc0632012-08-22 17:17:09 +0000253 startstr = 'target.output-path (file) = "stdout.txt"')
Johnny Chen2fcc0e52010-09-16 18:26:06 +0000254
255 self.runCmd("run", RUN_SUCCEEDED)
256
Johnny Chen93b0c8b2011-01-25 17:39:43 +0000257 # The 'stderr.txt' file should now exist.
258 self.assertTrue(os.path.isfile("stderr.txt"),
Greg Clayton1d885962011-11-08 02:43:13 +0000259 "'stderr.txt' exists due to target.error-path.")
Johnny Chen93b0c8b2011-01-25 17:39:43 +0000260
261 # Read the output file produced by running the program.
262 with open('stderr.txt', 'r') as f:
263 output = f.read()
264
265 self.expect(output, exe=False,
266 startstr = "This message should go to standard error.")
267
Johnny Chen3e9c50c2010-10-18 17:51:45 +0000268 # The 'stdout.txt' file should now exist.
269 self.assertTrue(os.path.isfile("stdout.txt"),
Greg Clayton1d885962011-11-08 02:43:13 +0000270 "'stdout.txt' exists due to target.output-path.")
Johnny Chen3e9c50c2010-10-18 17:51:45 +0000271
Johnny Chen2fcc0e52010-09-16 18:26:06 +0000272 # Read the output file produced by running the program.
Johnny Chenbe7da212010-10-08 20:01:03 +0000273 with open('stdout.txt', 'r') as f:
274 output = f.read()
Johnny Chen2fcc0e52010-09-16 18:26:06 +0000275
Johnny Chenbe7da212010-10-08 20:01:03 +0000276 self.expect(output, exe=False,
277 startstr = "This message should go to standard out.")
Johnny Chen2fcc0e52010-09-16 18:26:06 +0000278
Caroline Ticec9c235e2011-01-31 18:18:54 +0000279 def test_print_dictionary_setting(self):
Greg Clayton67cc0632012-08-22 17:17:09 +0000280 self.runCmd ("settings clear target.env-vars")
Greg Clayton1d885962011-11-08 02:43:13 +0000281 self.runCmd ("settings set target.env-vars [\"MY_VAR\"]=some-value")
282 self.expect ("settings show target.env-vars",
Greg Clayton4c207172011-04-19 22:32:36 +0000283 substrs = [ "MY_VAR=some-value" ])
Greg Clayton67cc0632012-08-22 17:17:09 +0000284 self.runCmd ("settings clear target.env-vars")
Caroline Ticec9c235e2011-01-31 18:18:54 +0000285
286 def test_print_array_setting(self):
Greg Clayton67cc0632012-08-22 17:17:09 +0000287 self.runCmd ("settings clear target.run-args")
Greg Clayton1d885962011-11-08 02:43:13 +0000288 self.runCmd ("settings set target.run-args gobbledy-gook")
289 self.expect ("settings show target.run-args",
Greg Clayton4c207172011-04-19 22:32:36 +0000290 substrs = [ '[0]: "gobbledy-gook"' ])
Greg Clayton67cc0632012-08-22 17:17:09 +0000291 self.runCmd ("settings clear target.run-args")
Caroline Ticec9c235e2011-01-31 18:18:54 +0000292
293 def test_settings_with_quotes (self):
Greg Clayton67cc0632012-08-22 17:17:09 +0000294 self.runCmd ("settings clear target.run-args")
Greg Clayton1d885962011-11-08 02:43:13 +0000295 self.runCmd ("settings set target.run-args a b c")
296 self.expect ("settings show target.run-args",
Greg Clayton4c207172011-04-19 22:32:36 +0000297 substrs = [ '[0]: "a"',
298 '[1]: "b"',
299 '[2]: "c"' ])
Greg Clayton1d885962011-11-08 02:43:13 +0000300 self.runCmd ("settings set target.run-args 'a b c'")
301 self.expect ("settings show target.run-args",
Greg Clayton4c207172011-04-19 22:32:36 +0000302 substrs = [ '[0]: "a b c"' ])
Greg Clayton67cc0632012-08-22 17:17:09 +0000303 self.runCmd ("settings clear target.run-args")
304 self.runCmd ("settings clear target.env-vars")
Greg Clayton1d885962011-11-08 02:43:13 +0000305 self.runCmd ('settings set target.env-vars ["MY_FILE"]="this is a file name with spaces.txt"')
306 self.expect ("settings show target.env-vars",
Greg Clayton4c207172011-04-19 22:32:36 +0000307 substrs = [ 'MY_FILE=this is a file name with spaces.txt' ])
Greg Clayton67cc0632012-08-22 17:17:09 +0000308 self.runCmd ("settings clear target.env-vars")
Caroline Ticec9c235e2011-01-31 18:18:54 +0000309
Greg Clayton00108402013-03-06 21:17:06 +0000310 def test_settings_with_trailing_whitespace (self):
311
312 # boolean
313 self.runCmd ("settings set target.skip-prologue true") # Set to known value
314 self.runCmd ("settings set target.skip-prologue false ") # Set to new value with trailing whitespace
315 # Make sure the setting was correctly set to "false"
316 self.expect ("settings show target.skip-prologue", SETTING_MSG("target.skip-prologue"),
317 startstr = "target.skip-prologue (boolean) = false")
318 self.runCmd("settings clear target.skip-prologue", check=False)
319 # integer
320 self.runCmd ("settings set term-width 70") # Set to known value
321 self.runCmd ("settings set term-width 60 \t") # Set to new value with trailing whitespaces
322 self.expect ("settings show term-width", SETTING_MSG("term-width"),
323 startstr = "term-width (int) = 60")
324 self.runCmd("settings clear term-width", check=False)
325 # string
326 self.runCmd ("settings set target.arg0 abc") # Set to known value
327 self.runCmd ("settings set target.arg0 cde\t ") # Set to new value with trailing whitespaces
328 self.expect ("settings show target.arg0", SETTING_MSG("target.arg0"),
329 startstr = 'target.arg0 (string) = "cde"')
330 self.runCmd("settings clear target.arg0", check=False)
331 # file
332 self.runCmd ("settings set target.output-path /bin/ls") # Set to known value
333 self.runCmd ("settings set target.output-path /bin/cat ") # Set to new value with trailing whitespaces
334 self.expect ("settings show target.output-path", SETTING_MSG("target.output-path"),
Daniel Malea7dadf492013-07-30 21:34:44 +0000335 startstr = 'target.output-path (file) = ', substrs=['/bin/cat"'])
Greg Clayton00108402013-03-06 21:17:06 +0000336 self.runCmd("settings clear target.output-path", check=False)
337 # enum
338 self.runCmd ("settings set stop-disassembly-display never") # Set to known value
339 self.runCmd ("settings set stop-disassembly-display always ") # Set to new value with trailing whitespaces
340 self.expect ("settings show stop-disassembly-display", SETTING_MSG("stop-disassembly-display"),
341 startstr = 'stop-disassembly-display (enum) = always')
342 self.runCmd("settings clear stop-disassembly-display", check=False)
343 # arguments
344 self.runCmd ("settings set target.run-args 1 2 3") # Set to known value
345 self.runCmd ("settings set target.run-args 3 4 5 ") # Set to new value with trailing whitespaces
346 self.expect ("settings show target.run-args", SETTING_MSG("target.run-args"),
347 substrs = [ 'target.run-args (arguments) =',
348 '[0]: "3"',
349 '[1]: "4"',
350 '[2]: "5"' ])
351 self.runCmd("settings clear target.run-args", check=False)
352 # dictionaries
353 self.runCmd ("settings clear target.env-vars") # Set to known value
354 self.runCmd ("settings set target.env-vars A=B C=D\t ") # Set to new value with trailing whitespaces
355 self.expect ("settings show target.env-vars", SETTING_MSG("target.env-vars"),
356 substrs = [ 'target.env-vars (dictionary of strings) =',
357 'A=B',
358 'C=D'])
359 self.runCmd("settings clear target.env-vars", check=False)
360
Caroline Ticeb904ca52011-03-10 22:29:54 +0000361 def test_all_settings_exist (self):
362 self.expect ("settings show",
Greg Clayton67cc0632012-08-22 17:17:09 +0000363 substrs = [ "auto-confirm",
364 "frame-format",
365 "notify-void",
366 "prompt",
367 "script-lang",
368 "stop-disassembly-count",
369 "stop-disassembly-display",
370 "stop-line-count-after",
371 "stop-line-count-before",
372 "term-width",
373 "thread-format",
374 "use-external-editor",
375 "target.default-arch",
376 "target.expr-prefix",
377 "target.prefer-dynamic-value",
378 "target.enable-synthetic-value",
379 "target.skip-prologue",
380 "target.source-map",
381 "target.exec-search-paths",
382 "target.max-children-count",
383 "target.max-string-summary-length",
384 "target.breakpoints-use-platform-avoid-list",
385 "target.run-args",
386 "target.env-vars",
387 "target.inherit-env",
388 "target.input-path",
389 "target.output-path",
390 "target.error-path",
391 "target.disable-aslr",
392 "target.disable-stdio",
393 "target.process.disable-memory-cache",
394 "target.process.extra-startup-command",
395 "target.process.thread.step-avoid-regexp",
396 "target.process.thread.trace-thread"])
397
Caroline Ticeb904ca52011-03-10 22:29:54 +0000398
399
Johnny Chen77377772010-09-07 17:06:13 +0000400if __name__ == '__main__':
401 import atexit
402 lldb.SBDebugger.Initialize()
403 atexit.register(lambda: lldb.SBDebugger.Terminate())
404 unittest2.main()