llvm-project/lldb/packages/Python/lldbsuite/test/lang/c
Jonas Devlieghere bf2d112c15 [DWARFExpression] Read literars as unsigned values.
After landing r341457, we started seeing a failure on the swift-lldb
bots. The change was correct and pretty straightforward, a DW_OP_constu
was replaced with DW_OP_lit23, the value remaining identical.

  0x000000f4: DW_TAG_variable
		DW_AT_location    (0x00000000
		  [0x0000000100000a51,  0x0000000100000d47): DW_OP_lit23, DW_OP_stack_value)
		DW_AT_name        ("number")

However, this broke LLDB.

  (Int) number = <extracting data from value failed>

The value was read correctly, but apparently the value's type was different.
When reading a constu it was reading a uint64 (m_type = e_ulonglong) while for
the literal, it got a signed int (m_type = e_sint). This change makes sure we
read the value as an unsigned.

Differential revision: https://reviews.llvm.org/D51730

llvm-svn: 342142
2018-09-13 15:18:39 +00:00
..
anonymous Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
array_types Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
bitfields Allow IRInterpreter to deal with non-power-of-2 sized types to support some bitfield accesses. 2018-08-28 22:50:01 +00:00
blocks Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
conflicting-symbol [lit, windows] Disable a number of tests that are failing on Windows 2018-06-07 17:49:22 +00:00
const_variables Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
enum_types Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
find_struct_type Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
forward DebugNamesDWARFIndex: Implement DWARFDeclContext variant of GetTypes method 2018-06-12 16:50:01 +00:00
function_types Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
global_variables Remove redundant command. 2018-05-01 15:38:01 +00:00
inlines Add a sanity check for inline testcases. 2018-02-26 22:40:20 +00:00
local_variables [DWARFExpression] Read literars as unsigned values. 2018-09-13 15:18:39 +00:00
modules Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
recurse
register_variables Adapt some tests to work with PPC64le architecture 2018-02-28 20:57:26 +00:00
set_values Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
shared_lib [test] Replace some references to Apple-internal bugs 2018-03-13 23:37:11 +00:00
shared_lib_stripped_symbols [test] Replace some references to Apple-internal bugs 2018-03-13 23:37:11 +00:00
step-target [lit, windows] Disable a number of tests that are failing on Windows 2018-06-07 17:49:22 +00:00
stepping Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
strings Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
struct_types *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
tls_globals Only throw -fPIC when building a shared library 2018-02-08 23:10:29 +00:00
typedef Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
unicode Change xfail to skipIf. The exact condition is really difficult to get 2018-08-23 21:08:30 +00:00
unions Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00