This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fixup gdb.python/py-value.exp for bare-metal aarch64-elf
On Fri, Oct 7, 2016 at 1:08 PM, Luis Machado <lgustavo@codesourcery.com> wrote:
>
> I went back and read the standard and we're dealing with a freestanding
> environment for bare metal here.
>
> The descriptions above seem to make sense for a hosted environment, but not
> for a freestanding one, correct?
>
IMO, bare metal != freestadning environment. Since "main" function is used,
it is a hosted environment. See
https://gcc.gnu.org/onlinedocs/gcc/Standards.html
"a hosted environment, which is not required, in which all the library
facilities are provided and startup is through a function int main
(void) or int main (int, char *[])."
On the other hand, in the C standard, function "main" is only mentioned in
the section of "5.1.2.2 Hosted environment".
--
Yao (齐尧)