This is the mail archive of the
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 <firstname.lastname@example.org> 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
"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 "188.8.131.52 Hosted environment".