Re: [lldb-dev] Display of reference parameters

2017-08-28 Thread Jim Ingham via lldb-dev
Since the address is mostly only interesting "when it goes bad" which should be infrequent, we want to have the value be the easiest thing to pick out. It's a little harder to tell in isolation, what you're really going to see is something like: A: (int) y = 33 (int) z = 33 (int &) x =

Re: [lldb-dev] Display of reference parameters

2017-08-28 Thread Greg Clayton via lldb-dev
> On Aug 27, 2017, at 11:59 AM, Johan Engelen via lldb-dev > wrote: > > Hi all, > Consider this code: > ``` > void foo(int& x) > { > ++x; > // Breakpoint > } > ``` > > Reference parameter `x` is shown like this: > ``` > (lldb) frame variable > (int &) x = 0x7fff5fbff5e8 (&x = 33)

[lldb-dev] Display of reference parameters

2017-08-27 Thread Johan Engelen via lldb-dev
Hi all, Consider this code: ``` void foo(int& x) { ++x; // Breakpoint } ``` Reference parameter `x` is shown like this: ``` (lldb) frame variable (int &) x = 0x7fff5fbff5e8 (&x = 33) ``` Should this perhaps be improved? (I find the "&x = 33" a little confusing) Some ideas: A.(int