This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/7] Trust readonly sections if target has memory protection
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 08 Sep 2013 18:13:12 +0300
- Subject: Re: [PATCH 4/7] Trust readonly sections if target has memory protection
- Authentication-results: sourceware.org; auth=none
- References: <1378432920-7731-1-git-send-email-yao at codesourcery dot com> <1378641807-24256-1-git-send-email-yao at codesourcery dot com> <1378641807-24256-5-git-send-email-yao at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Yao Qi <yao@codesourcery.com>
> Date: Sun, 8 Sep 2013 20:03:24 +0800
>
> int
> +default_has_memory_protection (struct gdbarch *gdbarch)
> +{
> + /* Simply say no. */
> + return 0;
> +}
Do most of our supported targets have or don't have memory protection?
How about most native targets?
If a large subset of targets have the protection, it might make more
sense to say YES by default, not NO.