Why isn't gdb showing me the change in a BSS array when I calculate the address with the same expression as the addressing mode?
<p>Wrote simple program with large buffer in .bss segment</p>

<pre><code>h_vals:
    resq 99999
</code></pre>

<p>then tried to increment value of some array cell.</p>

<pre><code>mov rcx, [h_vals+8*rax]
inc rcx
mov [h_vals+8*rax], rcx
</code></pre>

<p>Still in gdb see the same value(0) both before and after third instruction execution.</p>

<pre><code>x/dg &amp;h_vals &amp;h_vals + 8 * $rax
0x6d68c0: 0
</code></pre>

<p>Why am I still seeing 0 when I try to inspect the address I stored to?</p>