This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 4/7] Trust readonly sections if target has memory protection


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]