From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47917 invoked by alias); 7 Oct 2016 14:48:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 46734 invoked by uid 89); 7 Oct 2016 14:48:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS,URIBL_RED autolearn=no version=3.3.2 spammy=Hosted, metal X-HELO: mail-oi0-f66.google.com Received: from mail-oi0-f66.google.com (HELO mail-oi0-f66.google.com) (209.85.218.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Oct 2016 14:48:20 +0000 Received: by mail-oi0-f66.google.com with SMTP id i127so1816315oia.0 for ; Fri, 07 Oct 2016 07:48:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=dmxrE/AIS07Vo8MwJyHGk3iqulLb8cgzAwuyR3806oY=; b=AtlCVuIhNuUPS2rCacD+GHX2B5AyBn5nMV4pTR27apgcYwMYmGfc952BaLskvuJ3Hz VZ3wjCcaYy2+/S88CI+jt46hfDge641BRMVqkbZ3SR66gllinpDZZupela9EF8fjZySu 5ubkNlgUqL7PXg6l8LEmVIoCxISF/w5yEoNgjx2hDdf988+bBKuoJMYqqAwdzl9WvRGx YMWgp2bLl73CW/tE9lbNVOW30BwTm8fctkPiFAGD9/TNuAKAPCrNGr2TAU62SegL16eO jW0k0DzKPWJ0bjXmKe4L+UJP3uOfgzVeJ6pph2dX/7ecKaVbQKK894OcW515tX4cK24B ilew== X-Gm-Message-State: AA6/9Rm/GgeLDGMuxknuFYAdJYGDY6qDNlnQdPRga8DMHLi3OYNd+b3rj82FnAzaWyzsyDDo6jXARV+U3iX3hg== X-Received: by 10.157.27.232 with SMTP id v37mr12756968otv.119.1475851699140; Fri, 07 Oct 2016 07:48:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.221.3 with HTTP; Fri, 7 Oct 2016 07:48:18 -0700 (PDT) In-Reply-To: References: <1475771231-1739-1-git-send-email-lgustavo@codesourcery.com> From: Yao Qi Date: Fri, 07 Oct 2016 14:48:00 -0000 Message-ID: Subject: Re: [PATCH] Fixup gdb.python/py-value.exp for bare-metal aarch64-elf To: Luis Machado Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00167.txt.bz2 On Fri, Oct 7, 2016 at 1:08 PM, Luis Machado wr= ote: > > 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 n= ot > for a freestanding one, correct? > IMO, bare metal !=3D freestadning environment. Since "main" function is us= ed, 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". --=20 Yao (=E9=BD=90=E5=B0=A7)