search for: ptrptr1

Displaying 2 results from an estimated 2 matches for "ptrptr1".

Did you mean: ptrptr
2020 Jan 01
2
DW_OP_implicit_pointer design/implementation in general
...gt; test/DebugInfo/implicit_pointer_mem2reg.c >> ------------------------------------------------ >> # cat multilevel_pointer.c >> static const char *b = "opq"; >> volatile int v; >> int main() { >> int var1 = 4; >> int *ptr1; >> int **ptrptr1; >> >> v++; >> ptr1 = &var1; >> ptrptr1 = &ptr1; >> v++; >> >> return *ptr1 + **ptrptr1 - 5; >> } >> ------------------------------------------------ >> With the the current set of patches it produces DWARF as below >&...
2019 Nov 29
4
DW_OP_implicit_pointer design/implementation in general
Let me try to summarize the implementation first. At the moment, there are two branches. 1. When an existing variable is optimized out and that variable is used to get the de-refereced value, pointed to by another pointer/reference variable. Such cases are being addressed using Dwarf expression DW_OP_implicit_pointer as de-referenced value of a pointer can be seen implicitly (using another