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: Yao Qi <yao at codesourcery dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 9 Sep 2013 15:48:58 +0800
- 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> <831u4zl52v dot fsf at gnu dot org>
On 09/08/2013 11:13 PM, Eli Zaretskii wrote:
Do most of our supported targets have or don't have memory protection?
How about most native targets?
Nearly all targets with OS have memory protection, but bare-metal
targets don't.
If a large subset of targets have the protection, it might make more
sense to say YES by default, not NO.
If the default is YES, in ${arch}-tdep.c, we should set it to NO, and
set it back to YES in ${arch}-${os}-tdep.c. More changes are involved.
Since the number of supported architectures is greater than the number
of supported operating systems, we'll do less changes if the default is
NO. Only have to set it to YES for supported operating systems.
--
Yao (éå)