File tree 2 files changed +3
-39
lines changed
test/Shell/SymbolFile/DWARF
2 files changed +3
-39
lines changed Original file line number Diff line number Diff line change @@ -1853,25 +1853,12 @@ llvm::Expected<Value> DWARFExpression::Evaluate(
1853
1853
const Value::ValueType curr_piece_source_value_type =
1854
1854
curr_piece_source_value.GetValueType ();
1855
1855
Scalar &scalar = curr_piece_source_value.GetScalar ();
1856
- lldb::addr_t addr = scalar.ULongLong (LLDB_INVALID_ADDRESS);
1856
+ const lldb::addr_t addr = scalar.ULongLong (LLDB_INVALID_ADDRESS);
1857
1857
switch (curr_piece_source_value_type) {
1858
1858
case Value::ValueType::Invalid:
1859
1859
return llvm::createStringError (" invalid value type" );
1860
- case Value::ValueType::FileAddress:
1861
- if (target) {
1862
- curr_piece_source_value.ConvertToLoadAddress (module_sp.get (),
1863
- target);
1864
- addr = scalar.ULongLong (LLDB_INVALID_ADDRESS);
1865
- } else {
1866
- return llvm::createStringError (
1867
- " unable to convert file address 0x%" PRIx64
1868
- " to load address "
1869
- " for DW_OP_piece(%" PRIu64 " ): "
1870
- " no target available" ,
1871
- addr, piece_byte_size);
1872
- }
1873
- [[fallthrough]];
1874
- case Value::ValueType::LoadAddress: {
1860
+ case Value::ValueType::LoadAddress:
1861
+ case Value::ValueType::FileAddress: {
1875
1862
if (target) {
1876
1863
if (curr_piece.ResizeData (piece_byte_size) == piece_byte_size) {
1877
1864
if (target->ReadMemory (addr, curr_piece.GetBuffer ().GetBytes (),
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments