llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter
Enrico Granata fee0aba006 It has been brought to my attention that, given two variables
T x;
U y;

doing

x = *((T*)y)

is undefined behavior, even if sizeof(T) == sizeof(U), due to pointer aliasing rules

Fix up a couple of places in LLDB that were doing this, and transform them into a defined and safe memcpy() operation

Also, add a test case to ensure we didn't regress by doing this w.r.t. tagged pointer NSDate instances

llvm-svn: 270793
2016-05-25 23:19:01 +00:00
..
boolreference On some platforms, the compiler is allowed to assume that BOOL == bool. On others, BOOL == signed char. 2016-03-15 23:38:04 +00:00
compactvectors Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
data-formatter-advanced Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
data-formatter-categories Enhance the 'type X list' commands such that they actually alert the user if no formatters matching the constraints could be found 2016-03-30 22:45:13 +00:00
data-formatter-cpp Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
data-formatter-disabling Make LLDB print out an explicit marker when it's displaying formatters that are part of a disabled category 2016-05-16 17:27:26 +00:00
data-formatter-enum-format Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
data-formatter-globals Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
data-formatter-named-summaries Enhance the 'type X list' commands such that they actually alert the user if no formatters matching the constraints could be found 2016-03-30 22:45:13 +00:00
data-formatter-objc It has been brought to my attention that, given two variables 2016-05-25 23:19:01 +00:00
data-formatter-proper-plurals Remove what I believe are the last known instances of formatters that run code 2016-04-08 22:49:31 +00:00
data-formatter-ptr-to-array Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
data-formatter-python-synth Fix test cases for big-endian systems 2016-04-14 14:35:02 +00:00
data-formatter-script Fix a bug where LLDB would not print the name of the function that a scripted summary is bound to 2016-01-29 00:56:52 +00:00
data-formatter-skip-summary Fix libstdc++ failure where <atomic> is not able to be imported on Darwin systems. 2016-05-12 22:33:02 +00:00
data-formatter-smart-array Fix test cases for big-endian systems 2016-04-14 14:35:02 +00:00
data-formatter-stl Fix an issue where LLDB would crash if one tried to 'frame variable' an unordered_map more than once in a stop due to the synthetic provider not properly caching the ValueObjects it was returning for the child elements 2016-05-25 20:38:33 +00:00
data-formatter-synth Remove some xfail-s fixed by r253026 2015-11-26 16:11:57 +00:00
data-formatter-synthtype Clean up test results on Windows. 2016-05-13 18:26:30 +00:00
data-formatter-synthval Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
dump_dynamic Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
format-propagation Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
frameformat_smallstruct Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
hexcaps Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
language_category_updates Remove XFAIL from a few tests that have been fixed on Windows. 2016-01-08 22:21:40 +00:00
nsarraysynth Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
nsdictionarysynth Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
nssetsynth Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
ostypeformatting Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
parray Add a --element-count option to the expression command 2016-04-25 00:52:47 +00:00
poarray Add a --element-count option to the expression command 2016-04-25 00:52:47 +00:00
ptr_ref_typedef Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
refpointer-recursion Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
setvaluefromcstring Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
stringprinter Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
summary-string-onfail Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
synthcapping Fix test cases for big-endian systems 2016-04-14 14:35:02 +00:00
synthupdate Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
type_summary_list_arg Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
type_summary_list_script Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
typedef_array Delete all the xfail / skip decorators for specific compilers. 2016-02-09 21:36:15 +00:00
user-format-vs-summary Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
var-in-aggregate-misuse Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
varscript_formatting Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
vector-types Move some of the common decorators to decorators.py. 2016-02-04 18:03:01 +00:00
.categories