Re: Another proposal for frontends and queries.

Pedro Alves
2009-09-18T09:31:41Z

On Friday 18 September 2009 05:59:25, Hui Zhu wrote:
> +          if (record_memory_change_default)
> +            n = yquery (_("Because GDB is in replay mode, writing to memory "
>                          "will make the execution log unusable from this "
>                          "point onward.  Write memory at address %s?"),
> -                      paddress (target_gdbarch, offset)))
> +                      paddress (target_gdbarch, offset));
> +         else
> +            n = nquery (_("Because GDB is in replay mode, writing to memory "
> +                        "will make the execution log unusable from this "
> +                        "point onward.  Write memory at address %s?"),
> +                      paddress (target_gdbarch, offset));
> +         if (!n)

Having just "<enter>" behave differently depending on a setting, is
bad UI/usability, IMO. If you switch to 'query', you force the user to
type 'y' or 'n' explicitly, which is a Good Thing.

--
Pedro Alves
\x16º&Öéj×!zÊÞ¶êçë¯|òX¬µªÜ†\a[¥«\…ë