[PATCH 1/3] set trust-readonly-sections off in test cases
Pedro Alves
palves@redhat.com
Fri Sep 6 17:23:00 GMT 2013
On 09/06/2013 03:01 AM, Yao Qi wrote:
> In the test cases, if GDB modified code in the inferior, it should
> 'set trust-readonly-sections off' too. Similarly, users has to set it
> off if users modified code for some purpose.
Hmm, I think this is likely to confuse users that actually
do that, a lot.
One idea would be to either warn about, or even disallow user
initiated writes to readonly sections if trust-readonly-sections
is enabled.
But a better one would be to mark a written section (or memory
block/range) as "tainted", and then trust-readonly-sections would
not trust it anymore.
--
Pedro Alves
More information about the Gdb-patches
mailing list