search for: logicalvari

Displaying 6 results from an estimated 6 matches for "logicalvari".

Did you mean: logicalvar
2018 Mar 22
2
Question about debug information for global variables
...without DW_OP_deref, but I always get the same wrong result when I test with LLDB. The offset is always added to the address of BaseAddress and not to its value. The code for creating logical variables looks roughly like: llvm::SmallVector<uint64_t, 4> ops; size_t offset = getOffset(logicalVariable); // Get the value of the global variable that contains a pointer to the memory block. // NOTE: Even if DW_OP_deref is omitted, the results under LLDB are the same. ops.push_back(llvm::dwarf::DW_OP_deref); // Add a constant offset to the value of the global variable. ops.pus...
2018 Mar 22
0
Question about debug information for global variables
...s always added to the address of BaseAddress and not > to its value. Can you share the final expression as printed by llvm-dwarfdump? > > The code for creating logical variables looks roughly like: > > llvm::SmallVector<uint64_t, 4> ops; > size_t offset = getOffset(logicalVariable); > // Get the value of the global variable that contains a pointer to > the memory block. > // NOTE: Even if DW_OP_deref is omitted, the results under LLDB > are the same. Have you considered that this might be a bug in LLDB? You really shouldn't get the same result with...
2018 Mar 22
2
Question about debug information for global variables
...ession(DW_OP_deref, DW_OP_constu, 2000, DW_OP_plus) Without deref: !28 = !DIExpression(DW_OP_constu, 2000, DW_OP_plus) >> >> The code for creating logical variables looks roughly like: >> >> llvm::SmallVector<uint64_t, 4> ops; >> size_t offset = getOffset(logicalVariable); >> // Get the value of the global variable that contains a pointer to >> the memory block. >> // NOTE: Even if DW_OP_deref is omitted, the results under LLDB >> are the same. > > Have you considered that this might be a bug in LLDB? You really shouldn't...
2018 Mar 22
0
Question about debug information for global variables
...DW_OP_plus) > > Without deref: > !28 = !DIExpression(DW_OP_constu, 2000, DW_OP_plus) > >>> >>> The code for creating logical variables looks roughly like: >>> >>> llvm::SmallVector<uint64_t, 4> ops; >>> size_t offset = getOffset(logicalVariable); >>> // Get the value of the global variable that contains a pointer to >>> the memory block. >>> // NOTE: Even if DW_OP_deref is omitted, the results under LLDB >>> are the same. >> >> Have you considered that this might be a bug in LLDB? Y...
2018 Mar 23
2
Question about debug information for global variables
...thout deref: >> !28 = !DIExpression(DW_OP_constu, 2000, DW_OP_plus) >> >>>> >>>> The code for creating logical variables looks roughly like: >>>> >>>> llvm::SmallVector<uint64_t, 4> ops; >>>> size_t offset = getOffset(logicalVariable); >>>> // Get the value of the global variable that contains a pointer to >>>> the memory block. >>>> // NOTE: Even if DW_OP_deref is omitted, the results under LLDB >>>> are the same. >>> >>> Have you considered that this mi...
2018 Mar 23
0
Question about debug information for global variables
...8 = !DIExpression(DW_OP_constu, 2000, DW_OP_plus) >>> >>>>> >>>>> The code for creating logical variables looks roughly like: >>>>> >>>>> llvm::SmallVector<uint64_t, 4> ops; >>>>> size_t offset = getOffset(logicalVariable); >>>>> // Get the value of the global variable that contains a pointer to >>>>> the memory block. >>>>> // NOTE: Even if DW_OP_deref is omitted, the results under LLDB >>>>> are the same. >>>> >>>> Have you...