diff options
Diffstat (limited to 'lldb/test')
31 files changed, 107 insertions, 107 deletions
diff --git a/lldb/test/expression_command/formatters/TestFormatters.py b/lldb/test/expression_command/formatters/TestFormatters.py index 8d13981b240..83b7720bfcf 100644 --- a/lldb/test/expression_command/formatters/TestFormatters.py +++ b/lldb/test/expression_command/formatters/TestFormatters.py @@ -52,9 +52,9 @@ class ExprFormattersTestCase(TestBase): self.runCmd("script import formatters") self.runCmd("script import foosynth") - self.runCmd("frame variable foo1 -T") - self.runCmd("frame variable foo1.b -T") - self.runCmd("frame variable foo1.b.b_ref -T") + self.runCmd("frame variable foo1 --show-types") + self.runCmd("frame variable foo1.b --show-types") + self.runCmd("frame variable foo1.b.b_ref --show-types") self.expect("expression *(new foo(47))", substrs = ['(int) a = 47', '(bar) b = {', '(int) i = 94', '(baz) b = {', '(int) k = 99']) diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py index 372ee6b99ab..e6fe72e7350 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py @@ -54,7 +54,7 @@ class BreakpointCommandTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) # Now add callbacks for the breakpoints just created. - self.runCmd("breakpoint command add -s command -o 'frame variable -T -s' 1") + self.runCmd("breakpoint command add -s command -o 'frame variable --show-types --scope' 1") self.runCmd("breakpoint command add -s python -o 'here = open(\"output.txt\", \"w\"); print >> here, \"lldb\"; here.close()' 2") self.runCmd("breakpoint command add --python-function bktptcmd.function 3") @@ -73,7 +73,7 @@ class BreakpointCommandTestCase(TestBase): self.expect("breakpoint command list 1", "Breakpoint 1 command ok", substrs = ["Breakpoint commands:", - "frame variable -T -s"]) + "frame variable --show-types --scope"]) self.expect("breakpoint command list 2", "Breakpoint 2 command ok", substrs = ["Breakpoint commands:", "here = open", diff --git a/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py b/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py index bb0e1773d34..786588bdfea 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py @@ -85,8 +85,8 @@ class BreakpointConditionsTestCase(TestBase): self.expect("process status", PROCESS_STOPPED, patterns = ['Process .* stopped']) - # 'frame variable -T val' should return 3 due to breakpoint condition. - self.expect("frame variable -T val", VARIABLES_DISPLAYED_CORRECTLY, + # 'frame variable --show-types val' should return 3 due to breakpoint condition. + self.expect("frame variable --show-types val", VARIABLES_DISPLAYED_CORRECTLY, startstr = '(int) val = 3') # Also check the hit count, which should be 3, by design. @@ -116,8 +116,8 @@ class BreakpointConditionsTestCase(TestBase): self.expect("process status", PROCESS_STOPPED, patterns = ['Process .* stopped']) - # 'frame variable -T val' should return 1 since it is the first breakpoint hit. - self.expect("frame variable -T val", VARIABLES_DISPLAYED_CORRECTLY, + # 'frame variable --show-types val' should return 1 since it is the first breakpoint hit. + self.expect("frame variable --show-types val", VARIABLES_DISPLAYED_CORRECTLY, startstr = '(int) val = 1') diff --git a/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py b/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py index ce532fc2696..15596b316bc 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py @@ -284,7 +284,7 @@ class AdvDataFormatterTestCase(TestBase): 'i_2', 'k_2', 'o_2']) - self.expect('frame variable a_long_guy -A', matching=False, + self.expect('frame variable a_long_guy --show-all-children', matching=False, substrs = ['...']) diff --git a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py index efe64420dd8..8bd276e47da 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py @@ -126,7 +126,7 @@ class PythonSynthDataFormatterTestCase(TestBase): 'a = 280']); # check that expanding a pointer does the right thing - self.expect("frame variable -P 1 f00_ptr", + self.expect("frame variable --ptr-depth 1 f00_ptr", substrs = ['r = 45', 'fake_a = 218103808', 'a = 12']) @@ -139,7 +139,7 @@ class PythonSynthDataFormatterTestCase(TestBase): self.expect('frame variable f00_1', matching=False, substrs = ['b = 1', 'j = 17']) - self.expect("frame variable -P 1 f00_ptr", + self.expect("frame variable --ptr-depth 1 f00_ptr", substrs = ['r = 45', 'fake_a = 218103808', 'a = 12']) @@ -151,7 +151,7 @@ class PythonSynthDataFormatterTestCase(TestBase): self.expect('frame variable f00_1', substrs = ['b = 1', 'j = 17']) - self.expect("frame variable -P 1 f00_ptr", matching=False, + self.expect("frame variable --ptr-depth 1 f00_ptr", matching=False, substrs = ['r = 45', 'fake_a = 218103808', 'a = 12']) @@ -176,7 +176,7 @@ class PythonSynthDataFormatterTestCase(TestBase): self.expect('frame variable f00_1', matching=False, substrs = ['b = 1', 'j = 17']) - self.expect("frame variable -P 1 f00_ptr", + self.expect("frame variable --ptr-depth 1 f00_ptr", substrs = ['r = 45', 'fake_a = 218103808', 'a = 12']) diff --git a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py index 1ffcdbf13c8..baf3f2d244b 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py @@ -74,7 +74,7 @@ class SkipSummaryDataFormatterTestCase(TestBase): '}']) # Skip the default (should be 1) levels of summaries - self.expect('frame variable -Y', + self.expect('frame variable --no-summary-depth', substrs = ['(DeepData_1) data1 = {', 'm_child1 = 0x', '}', @@ -86,7 +86,7 @@ class SkipSummaryDataFormatterTestCase(TestBase): '}']) # Now skip 2 levels of summaries - self.expect('frame variable -Y2', + self.expect('frame variable --no-summary-depth=2', substrs = ['(DeepData_1) data1 = {', 'm_child1 = 0x', '}', @@ -99,15 +99,15 @@ class SkipSummaryDataFormatterTestCase(TestBase): '}']) # Check that no "Level 3" comes out - self.expect('frame variable data1.m_child1 -Y2', matching=False, + self.expect('frame variable data1.m_child1 --no-summary-depth=2', matching=False, substrs = ['Level 3']) # Now expand a pointer with 2 level of skipped summaries - self.expect('frame variable data1.m_child1 -Y2', + self.expect('frame variable data1.m_child1 --no-summary-depth=2', substrs = ['(DeepData_2 *) data1.m_child1 = 0x']) # Deref and expand said pointer - self.expect('frame variable *data1.m_child1 -Y2', + self.expect('frame variable *data1.m_child1 --no-summary-depth=2', substrs = ['(DeepData_2) *data1.m_child1 = {', 'm_child2 = {', 'm_child1 = 0x', @@ -115,7 +115,7 @@ class SkipSummaryDataFormatterTestCase(TestBase): '}']) # Expand an expression, skipping 2 layers of summaries - self.expect('frame variable data1.m_child1->m_child2 -Y2', + self.expect('frame variable data1.m_child1->m_child2 --no-summary-depth=2', substrs = ['(DeepData_3) data1.m_child1->m_child2 = {', 'm_child2 = {', 'm_child1 = Level 5', @@ -124,7 +124,7 @@ class SkipSummaryDataFormatterTestCase(TestBase): '}']) # Expand same expression, skipping only 1 layer of summaries - self.expect('frame variable data1.m_child1->m_child2 -Y1', + self.expect('frame variable data1.m_child1->m_child2 --no-summary-depth=1', substrs = ['(DeepData_3) data1.m_child1->m_child2 = {', 'm_child1 = 0x', 'Level 4', @@ -148,14 +148,14 @@ class SkipSummaryDataFormatterTestCase(TestBase): self.skipTest("rdar://problem/9804600 wrong namespace for std::string in debug info") # Expand same expression, skipping 3 layers of summaries - self.expect('frame variable data1.m_child1->m_child2 -T -Y3', + self.expect('frame variable data1.m_child1->m_child2 --show-types --no-summary-depth=3', substrs = ['(DeepData_3) data1.m_child1->m_child2 = {', 'm_some_text = "Just a test"', 'm_child2 = {', 'm_some_text = "Just a test"']) # Expand within a standard string (might depend on the implementation of the C++ stdlib you use) - self.expect('frame variable data1.m_child1->m_child2.m_child1.m_child2 -Y2', + self.expect('frame variable data1.m_child1->m_child2.m_child1.m_child2 --no-summary-depth=2', substrs = ['(DeepData_5) data1.m_child1->m_child2.m_child1.m_child2 = {', 'm_some_text = {', '_M_dataplus = {', @@ -163,18 +163,18 @@ class SkipSummaryDataFormatterTestCase(TestBase): '"Just a test"']) # Repeat the above, but only skip 1 level of summaries - self.expect('frame variable data1.m_child1->m_child2.m_child1.m_child2 -Y1', + self.expect('frame variable data1.m_child1->m_child2.m_child1.m_child2 --no-summary-depth=1', substrs = ['(DeepData_5) data1.m_child1->m_child2.m_child1.m_child2 = {', 'm_some_text = "Just a test"', '}']) - # Change summary and expand, first without -Y then with -Y + # Change summary and expand, first without --no-summary-depth then with --no-summary-depth self.runCmd("type summary add --summary-string \"${var.m_some_text}\" DeepData_5") self.expect('fr var data2.m_child4.m_child2.m_child2', substrs = ['(DeepData_5) data2.m_child4.m_child2.m_child2 = "Just a test"']) - self.expect('fr var data2.m_child4.m_child2.m_child2 -Y', + self.expect('fr var data2.m_child4.m_child2.m_child2 --no-summary-depth', substrs = ['(DeepData_5) data2.m_child4.m_child2.m_child2 = {', 'm_some_text = "Just a test"', '}']) diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py index 5e14bbc7f21..394fd70be33 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py @@ -58,7 +58,7 @@ class LibcxxListDataFormatterTestCase(TestBase): # Execute the cleanup function during test case tear down. self.addTearDownHook(cleanup) - self.runCmd("frame variable numbers_list -T") + self.runCmd("frame variable numbers_list --show-types") self.runCmd("type summary add std::int_list std::string_list int_list string_list --summary-string \"list has ${svar%#} items\" -e") self.runCmd("type format add -f hex int") diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py index aa53f3c3f97..e851b6370b1 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py @@ -58,7 +58,7 @@ class LibcxxMapDataFormatterTestCase(TestBase): self.expect('image list',substrs=['libc++.1.dylib','libc++abi.dylib']) - self.runCmd("frame variable ii -T") + self.runCmd("frame variable ii --show-types") self.runCmd("type summary add -x \"std::__1::map<\" --summary-string \"map has ${svar%#} items\" -e") @@ -135,7 +135,7 @@ class LibcxxMapDataFormatterTestCase(TestBase): substrs = ['map has 0 items', '{}']) - self.runCmd("frame variable si -T") + self.runCmd("frame variable si --show-types") self.expect('frame variable si', substrs = ['map has 0 items', @@ -206,7 +206,7 @@ class LibcxxMapDataFormatterTestCase(TestBase): '{}']) self.runCmd("n") - self.runCmd("frame variable is -T") + self.runCmd("frame variable is --show-types") self.expect('frame variable is', substrs = ['map has 0 items', @@ -267,7 +267,7 @@ class LibcxxMapDataFormatterTestCase(TestBase): '{}']) self.runCmd("n");self.runCmd("n"); - self.runCmd("frame variable ss -T") + self.runCmd("frame variable ss --show-types") self.expect('frame variable ss', substrs = ['map has 0 items', diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py index 76afc20a763..307d639449d 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py @@ -56,7 +56,7 @@ class StdListDataFormatterTestCase(TestBase): # Execute the cleanup function during test case tear down. self.addTearDownHook(cleanup) - self.runCmd("frame variable numbers_list -T") + self.runCmd("frame variable numbers_list --show-types") #self.runCmd("type synth add std::int_list std::string_list int_list string_list -l StdListSynthProvider") self.runCmd("type summary add std::int_list std::string_list int_list string_list --summary-string \"list has ${svar%#} items\" -e") self.runCmd("type format add -f hex int") diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py index dee671b0e55..f3d3a80ace9 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py @@ -56,7 +56,7 @@ class StdMapDataFormatterTestCase(TestBase): # Execute the cleanup function during test case tear down. self.addTearDownHook(cleanup) - self.runCmd("frame variable ii -T") + self.runCmd("frame variable ii --show-types") self.runCmd("type summary add -x \"std::map<\" --summary-string \"map has ${svar%#} items\" -e") @@ -136,7 +136,7 @@ class StdMapDataFormatterTestCase(TestBase): '{}']) self.runCmd("n") - self.runCmd("frame variable si -T") + self.runCmd("frame variable si --show-types") self.expect('frame variable si', substrs = ['map has 0 items', @@ -211,7 +211,7 @@ class StdMapDataFormatterTestCase(TestBase): '{}']) self.runCmd("n") - self.runCmd("frame variable is -T") + self.runCmd("frame variable is --show-types") self.expect('frame variable is', substrs = ['map has 0 items', @@ -272,7 +272,7 @@ class StdMapDataFormatterTestCase(TestBase): '{}']) self.runCmd("n") - self.runCmd("frame variable ss -T") + self.runCmd("frame variable ss --show-types") self.expect('frame variable ss', substrs = ['map has 0 items', diff --git a/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py b/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py index 0ffc29af9ff..bd96049f574 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py @@ -71,7 +71,7 @@ class SynthDataFormatterTestCase(TestBase): 'z = 8']) # if we skip synth and summary show y - self.expect("frame variable int_bag -S false -Y1", + self.expect("frame variable int_bag --synthetic-type false --no-summary-depth=1", substrs = ['x = 6', 'y = 7', 'z = 8']) @@ -97,7 +97,7 @@ class SynthDataFormatterTestCase(TestBase): 'z = 8']) # If I skip summaries, still give me the artificial children - self.expect("frame variable int_bag -Y1", + self.expect("frame variable int_bag --no-summary-depth=1", substrs = ['x = 6', 'z = 8']) @@ -135,14 +135,14 @@ class SynthDataFormatterTestCase(TestBase): # ...even bitfields self.runCmd("type filter add BagOfBags --child x.y --child \"y->z[1-2]\"") - self.expect('frame variable bag_bag -T', + self.expect('frame variable bag_bag --show-types', substrs = ['x.y = 70', '(int:2) y->z[1-2] = 2']) # ...even if we format the bitfields self.runCmd("type filter add BagOfBags --child x.y --child \"y->y[0-0]\"") self.runCmd("type format add \"int:1\" -f bool") - self.expect('frame variable bag_bag -T', + self.expect('frame variable bag_bag --show-types', substrs = ['x.y = 70', '(int:1) y->y[0-0] = true']) @@ -167,7 +167,7 @@ class SynthDataFormatterTestCase(TestBase): 'array[2] = 3']) # skip synthetic children - self.expect('frame variable plenty_of_stuff -S no', + self.expect('frame variable plenty_of_stuff --synthetic-type no', substrs = ['some_values = 0x0', 'array = 0x', 'array_size = 5']) @@ -180,19 +180,19 @@ class SynthDataFormatterTestCase(TestBase): '*(plenty_of_stuff.array) = 3']) # check that we do not lose location information for our children - self.expect('frame variable plenty_of_stuff -L', + self.expect('frame variable plenty_of_stuff --location', substrs = ['0x', ': bitfield = 17']) # check we work across pointer boundaries - self.expect('frame variable plenty_of_stuff.some_values -P1', + self.expect('frame variable plenty_of_stuff.some_values --ptr-depth=1', substrs = ['(BagOfInts *) plenty_of_stuff.some_values', 'x = 5', 'z = 7']) # but not if we don't want to self.runCmd("type filter add BagOfInts --child x --child z -p") - self.expect('frame variable plenty_of_stuff.some_values -P1', + self.expect('frame variable plenty_of_stuff.some_values --ptr-depth=1', substrs = ['(BagOfInts *) plenty_of_stuff.some_values', 'x = 5', 'y = 6', diff --git a/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py b/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py index 9b81705fada..ed389618867 100644 --- a/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py +++ b/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py @@ -65,13 +65,13 @@ class DataFormatterRdar11988289TestCase(TestBase): substrs = ['3 key/value pairs','[0] = {','key = 0x','value = 0x','[1] = {','[2] = {']) self.expect('frame variable mutable --ptr-depth 1', substrs = ['4 key/value pairs','[0] = {','key = 0x','value = 0x','[1] = {','[2] = {','[3] = {']) - self.expect('frame variable dictionary --ptr-depth 1 -d no-run-target', + self.expect('frame variable dictionary --ptr-depth 1 --dynamic-type no-run-target', substrs = ['3 key/value pairs','@"bar"','@"2 objects"','@"baz"','2 key/value pairs']) - self.expect('frame variable mutable --ptr-depth 1 -d no-run-target', + self.expect('frame variable mutable --ptr-depth 1 --dynamic-type no-run-target', substrs = ['4 key/value pairs','(int)23','@"123"','@"http://www.apple.com"','@"puartist"','3 key/value pairs']) - self.expect('frame variable mutable --ptr-depth 2 -d no-run-target', + self.expect('frame variable mutable --ptr-depth 2 --dynamic-type no-run-target', substrs = ['4 key/value pairs','(int)23','@"123"','@"http://www.apple.com"','@"puartist"','3 key/value pairs {','@"bar"','@"2 objects"']) - self.expect('frame variable mutable --ptr-depth 3 -d no-run-target', + self.expect('frame variable mutable --ptr-depth 3 --dynamic-type no-run-target', substrs = ['4 key/value pairs','(int)23','@"123"','@"http://www.apple.com"','@"puartist"','3 key/value pairs {','@"bar"','@"2 objects"','(int)1','@"two"']) self.assertTrue(self.frame().FindVariable("dictionary").MightHaveChildren(), "dictionary says it does not have children!") diff --git a/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py b/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py index aa3c6b018e9..eed7b1196dd 100644 --- a/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py +++ b/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py @@ -64,7 +64,7 @@ class DataFormatterRdar12437442TestCase(TestBase): id_x.SetPreferSyntheticValue(True) if self.TraceOn(): - self.runCmd("frame variable x -d run-target --ptr-depth 1") + self.runCmd("frame variable x --dynamic-type run-target --ptr-depth 1") self.assertTrue(id_x.GetSummary() == '@"5 objects"', "array does not get correct summary") @@ -75,7 +75,7 @@ class DataFormatterRdar12437442TestCase(TestBase): id_x.SetPreferSyntheticValue(True) if self.TraceOn(): - self.runCmd("frame variable x -d run-target --ptr-depth 1") + self.runCmd("frame variable x --dynamic-type run-target --ptr-depth 1") self.assertTrue(id_x.GetNumChildren() == 7, "dictionary does not have 7 children") id_x.SetPreferSyntheticValue(False) diff --git a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py index 2ec84aee55a..2710cf92c7d 100644 --- a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py +++ b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py @@ -61,7 +61,7 @@ class StopHookForMultipleThreadsTestCase(TestBase): # Now run the program, expect to stop at the the first breakpoint which is within the stop-hook range. child.sendline('run') child.expect_exact(prompt) - child.sendline('target stop-hook add -o "frame variable -g g_val"') + child.sendline('target stop-hook add -o "frame variable --show-globals g_val"') child.expect_exact(prompt) # Continue and expect to find the output emitted by the firing of our stop hook. diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py index c7a4fc13775..8da620a5a13 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py @@ -103,7 +103,7 @@ class WatchpointLLDBCommandTestCase(TestBase): 'new value:', ' = 1']) # The watchpoint command "forced" our global variable 'cookie' to become 777. - self.expect("frame variable -g cookie", + self.expect("frame variable --show-globals cookie", substrs = ['(int32_t)', 'cookie = 777']) def watchpoint_command_can_disable_a_watchpoint(self): diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py index 814330f6e04..96a3c619db5 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py @@ -90,7 +90,7 @@ class WatchpointPythonCommandTestCase(TestBase): 'new value:', ' = 1']) # The watchpoint command "forced" our global variable 'cookie' to become 777. - self.expect("frame variable -g cookie", + self.expect("frame variable --show-globals cookie", substrs = ['(int32_t)', 'cookie = 777']) diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py index 7964049826a..f529ef969b1 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py @@ -77,7 +77,7 @@ class WatchpointConditionCmdTestCase(TestBase): # The stop reason of the thread should be watchpoint. self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT, substrs = ['stop reason = watchpoint']) - self.expect("frame variable -g global", + self.expect("frame variable --show-globals global", substrs = ['(int32_t)', 'global = 5']) # Use the '-v' option to do verbose listing of the watchpoint. diff --git a/lldb/test/lang/c/array_types/TestArrayTypes.py b/lldb/test/lang/c/array_types/TestArrayTypes.py index 2adb567a7cd..9e880036689 100644 --- a/lldb/test/lang/c/array_types/TestArrayTypes.py +++ b/lldb/test/lang/c/array_types/TestArrayTypes.py @@ -71,7 +71,7 @@ class ArrayTypesTestCase(TestBase): # Issue 'variable list' command on several array-type variables. - self.expect("frame variable -T strings", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types strings", VARIABLES_DISPLAYED_CORRECTLY, startstr = '(char *[4])', substrs = ['(char *) [0]', '(char *) [1]', @@ -82,14 +82,14 @@ class ArrayTypesTestCase(TestBase): 'Bonjour', 'Guten Tag']) - self.expect("frame variable -T char_16", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types char_16", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['(char) [0]', '(char) [15]']) - self.expect("frame variable -T ushort_matrix", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types ushort_matrix", VARIABLES_DISPLAYED_CORRECTLY, startstr = '(unsigned short [2][3])') - self.expect("frame variable -T long_6", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types long_6", VARIABLES_DISPLAYED_CORRECTLY, startstr = '(long [6])') def array_types_python(self): diff --git a/lldb/test/lang/c/bitfields/TestBitfields.py b/lldb/test/lang/c/bitfields/TestBitfields.py index 177242305e8..e9bd2ee359a 100644 --- a/lldb/test/lang/c/bitfields/TestBitfields.py +++ b/lldb/test/lang/c/bitfields/TestBitfields.py @@ -64,7 +64,7 @@ class BitfieldsTestCase(TestBase): substrs = [' resolved, hit count = 1']) # This should display correctly. - self.expect("frame variable -T bits", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types bits", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['(uint32_t:1) b1 = 1', '(uint32_t:2) b2 = 3', '(uint32_t:3) b3 = 7', @@ -76,7 +76,7 @@ class BitfieldsTestCase(TestBase): # And so should this. # rdar://problem/8348251 - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['(uint32_t:1) b1 = 1', '(uint32_t:2) b2 = 3', '(uint32_t:3) b3 = 7', diff --git a/lldb/test/lang/c/forward/TestForwardDeclaration.py b/lldb/test/lang/c/forward/TestForwardDeclaration.py index ee37bc07393..9ae1fe063cc 100644 --- a/lldb/test/lang/c/forward/TestForwardDeclaration.py +++ b/lldb/test/lang/c/forward/TestForwardDeclaration.py @@ -48,7 +48,7 @@ class ForwardDeclarationTestCase(TestBase): # This should display correctly. # Note that the member fields of a = 1 and b = 2 is by design. - self.expect("frame variable -T *bar_ptr", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types *bar_ptr", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['(bar) *bar_ptr = ', '(int) a = 1', '(int) b = 2']) diff --git a/lldb/test/lang/c/function_types/TestFunctionTypes.py b/lldb/test/lang/c/function_types/TestFunctionTypes.py index 009065a0e2b..5cc6a8b6c91 100644 --- a/lldb/test/lang/c/function_types/TestFunctionTypes.py +++ b/lldb/test/lang/c/function_types/TestFunctionTypes.py @@ -66,7 +66,7 @@ class FunctionTypesTestCase(TestBase): self.runToBreakpoint() # Check that the 'callback' variable display properly. - self.expect("frame variable -T callback", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types callback", VARIABLES_DISPLAYED_CORRECTLY, startstr = '(int (*)(const char *)) callback =') # And that we can break on the callback function. diff --git a/lldb/test/lang/c/global_variables/TestGlobalVariables.py b/lldb/test/lang/c/global_variables/TestGlobalVariables.py index 27b0a7b2528..32a1501f181 100644 --- a/lldb/test/lang/c/global_variables/TestGlobalVariables.py +++ b/lldb/test/lang/c/global_variables/TestGlobalVariables.py @@ -13,13 +13,13 @@ class GlobalVariablesTestCase(TestBase): @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @dsym_test def test_with_dsym(self): - """Test 'frame variable -s -a' which omits args and shows scopes.""" + """Test 'frame variable --scope --no-args' which omits args and shows scopes.""" self.buildDsym() self.global_variables() @dwarf_test def test_with_dwarf(self): - """Test 'frame variable -s -a' which omits args and shows scopes.""" + """Test 'frame variable --scope --no-args' which omits args and shows scopes.""" self.buildDwarf() self.global_variables() @@ -34,7 +34,7 @@ class GlobalVariablesTestCase(TestBase): self.addTearDownHook(lambda: self.runCmd("settings remove target.env-vars " + self.dylibPath)) def global_variables(self): - """Test 'frame variable -s -a' which omits args and shows scopes.""" + """Test 'frame variable --scope --no-args' which omits args and shows scopes.""" exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) @@ -53,7 +53,7 @@ class GlobalVariablesTestCase(TestBase): substrs = [' resolved, hit count = 1']) # Check that GLOBAL scopes are indicated for the variables. - self.expect("frame variable -T -s -g -a", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types --scope --show-globals --no-args", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['GLOBAL: (int) g_file_global_int = 42', 'GLOBAL: (const char *) g_file_global_cstr', '"g_file_global_cstr"', diff --git a/lldb/test/lang/c/set_values/TestSetValues.py b/lldb/test/lang/c/set_values/TestSetValues.py index 1fb6e7b161a..5705a04d33c 100644 --- a/lldb/test/lang/c/set_values/TestSetValues.py +++ b/lldb/test/lang/c/set_values/TestSetValues.py @@ -61,63 +61,63 @@ class SetValuesTestCase(TestBase): substrs = [' resolved, hit count = 1']) # main.c:15 - # Check that 'frame variable -T' displays the correct data type and value. - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + # Check that 'frame variable --show-types' displays the correct data type and value. + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(char) i = 'a'") # Now set variable 'i' and check that it is correctly displayed. self.runCmd("expression i = 'b'") - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(char) i = 'b'") self.runCmd("continue") # main.c:36 - # Check that 'frame variable -T' displays the correct data type and value. - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + # Check that 'frame variable --show-types' displays the correct data type and value. + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, patterns = ["\((short unsigned int|unsigned short)\) i = 33"]) # Now set variable 'i' and check that it is correctly displayed. self.runCmd("expression i = 333") - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, patterns = ["\((short unsigned int|unsigned short)\) i = 333"]) self.runCmd("continue") # main.c:57 - # Check that 'frame variable -T' displays the correct data type and value. - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + # Check that 'frame variable --show-types' displays the correct data type and value. + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(long) i = 33") # Now set variable 'i' and check that it is correctly displayed. self.runCmd("expression i = 33333") - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(long) i = 33333") self.runCmd("continue") # main.c:78 - # Check that 'frame variable -T' displays the correct data type and value. - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + # Check that 'frame variable --show-types' displays the correct data type and value. + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(double) i = 3.14159") # Now set variable 'i' and check that it is correctly displayed. self.runCmd("expression i = 3.14") - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(double) i = 3.14") self.runCmd("continue") # main.c:85 - # Check that 'frame variable -T' displays the correct data type and value. + # Check that 'frame variable --show-types' displays the correct data type and value. # rdar://problem/8422727 # set_values test directory: 'frame variable' shows only (long double) i = - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(long double) i = 3.14159") # Now set variable 'i' and check that it is correctly displayed. self.runCmd("expression i = 3.1") - self.expect("frame variable -T", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(long double) i = 3.1") diff --git a/lldb/test/lang/cpp/class_types/TestClassTypes.py b/lldb/test/lang/cpp/class_types/TestClassTypes.py index f64e778d290..76e8ace4bf1 100644 --- a/lldb/test/lang/cpp/class_types/TestClassTypes.py +++ b/lldb/test/lang/cpp/class_types/TestClassTypes.py @@ -92,7 +92,7 @@ class ClassTypesTestCase(TestBase): substrs = [' resolved, hit count = 1']) # We should be stopped on the ctor function of class C. - self.expect("frame variable -T this", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types this", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['C *', ' this = ']) @@ -188,10 +188,10 @@ class ClassTypesTestCase(TestBase): self.expect("frame variable this",VARIABLES_DISPLAYED_CORRECTLY, substrs = ['C *']) - # Verify that frame variable -T this->m_c_int behaves correctly. + # Verify that frame variable --show-types this->m_c_int behaves correctly. self.runCmd("register read pc") self.runCmd("expr m_c_int") - self.expect("frame variable -T this->m_c_int", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types this->m_c_int", VARIABLES_DISPLAYED_CORRECTLY, startstr = '(int) this->m_c_int = 66') # Verify that 'expression this' gets the data type correct. diff --git a/lldb/test/lang/cpp/namespace/TestNamespace.py b/lldb/test/lang/cpp/namespace/TestNamespace.py index 9c2c6d75ce7..4bf08a4fc23 100644 --- a/lldb/test/lang/cpp/namespace/TestNamespace.py +++ b/lldb/test/lang/cpp/namespace/TestNamespace.py @@ -66,12 +66,12 @@ class NamespaceTestCase(TestBase): substrs = slist) # 'frame variable' with basename 'i' should work. - self.expect("frame variable -c -g i", + self.expect("frame variable --show-declaration --show-globals i", startstr = "main.cpp:%d: (int) (anonymous namespace)::i = 3" % self.line_var_i) # main.cpp:12: (int) (anonymous namespace)::i = 3 # 'frame variable' with basename 'j' should work, too. - self.expect("frame variable -c -g j", + self.expect("frame variable --show-declaration --show-globals j", startstr = "main.cpp:%d: (int) A::B::j = 4" % self.line_var_j) # main.cpp:19: (int) A::B::j = 4 diff --git a/lldb/test/lang/cpp/signed_types/TestSignedTypes.py b/lldb/test/lang/cpp/signed_types/TestSignedTypes.py index d015c974b5c..ebc2c3e6dbc 100644 --- a/lldb/test/lang/cpp/signed_types/TestSignedTypes.py +++ b/lldb/test/lang/cpp/signed_types/TestSignedTypes.py @@ -54,7 +54,7 @@ class UnsignedTypesTestCase(TestBase): self.runCmd("thread step-over") # Test that signed types display correctly. - self.expect("frame variable -T -a", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types --no-args", VARIABLES_DISPLAYED_CORRECTLY, patterns = ["\((short int|short)\) the_signed_short = 99"], substrs = ["(signed char) the_signed_char = 'c'", "(int) the_signed_int = 99", diff --git a/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py b/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py index 891d31dd6bc..c1414c1e8be 100644 --- a/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py +++ b/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py @@ -58,8 +58,8 @@ class UniqueTypesTestCase(TestBase): if clang_version < 3: self.skipTest("rdar://problem/9173060 lldb hangs while running unique-types for clang version < 3") - # Do a "frame variable -T longs" and verify "long" is in each line of output. - self.runCmd("frame variable -T longs") + # Do a "frame variable --show-types longs" and verify "long" is in each line of output. + self.runCmd("frame variable --show-types longs") output = self.res.GetOutput() for x in [line.strip() for line in output.split(os.linesep)]: # Skip empty line or closing brace. @@ -68,8 +68,8 @@ class UniqueTypesTestCase(TestBase): self.expect(x, "Expect type 'long'", exe=False, substrs = ['long']) - # Do a "frame variable -T shorts" and verify "short" is in each line of output. - self.runCmd("frame variable -T shorts") + # Do a "frame variable --show-types shorts" and verify "short" is in each line of output. + self.runCmd("frame variable --show-types shorts") output = self.res.GetOutput() for x in [line.strip() for line in output.split(os.linesep)]: # Skip empty line or closing brace. diff --git a/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py b/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py index 3ddc2510954..6231673c54c 100644 --- a/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py +++ b/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py @@ -51,7 +51,7 @@ class UnsignedTypesTestCase(TestBase): substrs = [' resolved, hit count = 1']) # Test that unsigned types display correctly. - self.expect("frame variable -T -a", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types --no-args", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(unsigned char) the_unsigned_char = 'c'", patterns = ["\((short unsigned int|unsigned short)\) the_unsigned_short = 99"], substrs = ["(unsigned int) the_unsigned_int = 99", diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods.py b/lldb/test/lang/objc/foundation/TestObjCMethods.py index 0896fc4ed23..1d1c7ac5ede 100644 --- a/lldb/test/lang/objc/foundation/TestObjCMethods.py +++ b/lldb/test/lang/objc/foundation/TestObjCMethods.py @@ -146,7 +146,7 @@ class FoundationTestCase(TestBase): 'NSString * str;', 'NSDate * date;']) - self.expect("frame variable -T -s", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types --scope", VARIABLES_DISPLAYED_CORRECTLY, substrs = ["ARG: (MyString *) self"], patterns = ["ARG: \(.*\) _cmd", "(objc_selector *)|(SEL)"]) @@ -158,16 +158,16 @@ class FoundationTestCase(TestBase): # rdar://problem/8492646 # test/foundation fails after updating to tot r115023 # self->str displays nothing as output - self.expect("frame variable -T self->str", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types self->str", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(NSString *) self->str") # rdar://problem/8447030 # 'frame variable self->date' displays the wrong data member - self.expect("frame variable -T self->date", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types self->date", VARIABLES_DISPLAYED_CORRECTLY, startstr = "(NSDate *) self->date") # This should display the str and date member fields as well. - self.expect("frame variable -T *self", VARIABLES_DISPLAYED_CORRECTLY, + self.expect("frame variable --show-types *self", VARIABLES_DISPLAYED_CORRECTLY, substrs = ["(MyString) *self", "(NSString *) str", "(NSDate *) date"]) diff --git a/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py b/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py index ad0df1dd511..16466d68cbb 100644 --- a/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py +++ b/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py @@ -48,13 +48,13 @@ class Rdar10967107TestCase(TestBase): self.runCmd("run", RUN_SUCCEEDED) # check that we correctly see the const char*, even with dynamic types on self.expect("frame variable my_string", substrs = ['const char *']) - self.expect("frame variable my_string -d run-target", substrs = ['const char *']) + self.expect("frame variable my_string --dynamic-type run-target", substrs = ['const char *']) # check that expr also gets it right self.expect("expr my_string", substrs = ['const char *']) self.expect("expr -d true -- my_string", substrs = ['const char *']) # but check that we get the real Foolie as such self.expect("frame variable my_foolie", substrs = ['FoolMeOnce *']) - self.expect("frame variable my_foolie -d run-target", substrs = ['FoolMeOnce *']) + self.expect("frame variable my_foolie --dynamic-type run-target", substrs = ['FoolMeOnce *']) # check that expr also gets it right self.expect("expr my_foolie", substrs = ['FoolMeOnce *']) self.expect("expr -d true -- my_foolie", substrs = ['FoolMeOnce *']) @@ -62,13 +62,13 @@ class Rdar10967107TestCase(TestBase): self.runCmd("next") # check that we correctly see the const char*, even with dynamic types on self.expect("frame variable my_string", substrs = ['const char *']) - self.expect("frame variable my_string -d run-target", substrs = ['const char *']) + self.expect("frame variable my_string --dynamic-type run-target", substrs = ['const char *']) # check that expr also gets it right self.expect("expr my_string", substrs = ['const char *']) self.expect("expr -d true -- my_string", substrs = ['const char *']) # but check that we get the real Foolie as such self.expect("frame variable my_foolie", substrs = ['FoolMeOnce *']) - self.expect("frame variable my_foolie -d run-target", substrs = ['FoolMeOnce *']) + self.expect("frame variable my_foolie --dynamic-type run-target", substrs = ['FoolMeOnce *']) # check that expr also gets it right self.expect("expr my_foolie", substrs = ['FoolMeOnce *']) self.expect("expr -d true -- my_foolie", substrs = ['FoolMeOnce *']) diff --git a/lldb/test/types/AbstractBase.py b/lldb/test/types/AbstractBase.py index 5e7810f19ba..2ebc1126160 100644 --- a/lldb/test/types/AbstractBase.py +++ b/lldb/test/types/AbstractBase.py @@ -10,7 +10,7 @@ import lldbutil def Msg(var, val, using_frame_variable): return "'%s %s' matches the output (from compiled code): %s" % ( - 'frame variable -T' if using_frame_variable else 'expression' ,var, val) + 'frame variable --show-types' if using_frame_variable else 'expression' ,var, val) class GenericTester(TestBase): @@ -116,7 +116,7 @@ class GenericTester(TestBase): lambda: self.runCmd("settings set target.inline-breakpoint-strategy headers")) # Bring the program to the point where we can issue a series of - # 'frame variable -T' command. + # 'frame variable --show-types' command. if blockCaptured: break_line = line_number ("basic_type.cpp", "// Break here to test block captured variables.") else: @@ -128,19 +128,19 @@ class GenericTester(TestBase): substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) - #self.runCmd("frame variable -T") + #self.runCmd("frame variable --show-types") # Now iterate through the golden list, comparing against the output from - # 'frame variable -T var'. + # 'frame variable --show-types var'. for var, val in gl: - self.runCmd("frame variable -T %s" % var) + self.runCmd("frame variable --show-types %s" % var) output = self.res.GetOutput() # The input type is in a canonical form as a set of named atoms. # The display type string must conatin each and every element. # # Example: - # runCmd: frame variable -T a_array_bounded[0] + # runCmd: frame variable --show-types a_array_bounded[0] # output: (char) a_array_bounded[0] = 'a' # try: @@ -209,7 +209,7 @@ class GenericTester(TestBase): substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) - #self.runCmd("frame variable -T") + #self.runCmd("frame variable --show-types") # Now iterate through the golden list, comparing against the output from # 'expr var'. |