[PATCH v2 03/19] PR gdb/21226: Take DWARF stack value pieces from LSB end
Yao Qi
qiyaoltc@gmail.com
Tue May 16 13:50:00 GMT 2017
Andreas Arnez <arnez@linux.vnet.ibm.com> writes:
> I mean this part of the logic:
>
> if (n > c->addr_size - source_offset)
> n = (c->addr_size >= source_offset
> ? c->addr_size - source_offset
> : 0);
> if (n == 0)
> {
> /* Nothing. */
> }
> else ...
>
> Which can essentially be translated into
>
> if (n == 0 || source_offset >= c->addr_size)
> break;
> ...
OK, I see what you mean now. The patch is good to me.
--
Yao (齐尧)
More information about the Gdb-patches
mailing list