diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-12-04 00:32:51 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-12-04 00:32:51 +0000 |
| commit | 3bcdfc0ec19df671655eeedb10da2ff9399b8b65 (patch) | |
| tree | 53fa965c5bbacdfccbef6aff6e5db359ad8fa668 /lldb/test/functionalities/stop-hook | |
| parent | 1dd82dd3fc608ee600652a8bf34f6c345354e3b0 (diff) | |
| download | bcm5719-llvm-3bcdfc0ec19df671655eeedb10da2ff9399b8b65.tar.gz bcm5719-llvm-3bcdfc0ec19df671655eeedb10da2ff9399b8b65.zip | |
<rdar://problem/12798131>
Cleaned up the option parsing code to always pass around the short options as integers. Previously we cast this down to "char" and lost some information. I recently added an assert that would detect duplicate short character options which was firing during the test suite.
This fix does the following:
- make sure all short options are treated as "int"
- make sure that short options can be non-printable values when a short option is not required or when an option group is mixed into many commands and a short option is not desired
- fix the help printing to "do the right thing" in all cases. Previously if there were duplicate short character options, it would just not emit help for the duplicates
- fix option parsing when there are duplicates to parse options correctly. Previously the option parsing, when done for an OptionGroup, would just start parsing options incorrectly by omitting table entries and it would end up setting the wrong option value
llvm-svn: 169189
Diffstat (limited to 'lldb/test/functionalities/stop-hook')
| -rw-r--r-- | lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |

