From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23026 invoked by alias); 18 Dec 2013 15:13:54 -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 23017 invoked by uid 89); 18 Dec 2013 15:13:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Dec 2013 15:13:53 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rBIFDnWu030264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Dec 2013 10:13:50 -0500 Received: from barimba (ovpn-113-93.phx2.redhat.com [10.3.113.93]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rBIFDmH7002207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 18 Dec 2013 10:13:49 -0500 From: Tom Tromey To: Yao Qi Cc: Subject: Re: [PATCH 2/6] gdbserver: remove function abbrevs from debugging text References: <52B0EF1E.7080302@codesourcery.com> Date: Wed, 18 Dec 2013 15:13:00 -0000 In-Reply-To: <52B0EF1E.7080302@codesourcery.com> (Yao Qi's message of "Wed, 18 Dec 2013 08:41:02 +0800") Message-ID: <87ob4embtf.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-12/txt/msg00702.txt.bz2 >>>>> "Yao" == Yao Qi writes: Yao> The function names in debugging output will be out of sync as function Yao> names are changed, unless macro __func__ is used. However, __func__ Yao> is defined in C99 and we are using C90 (?) in GDB. FWIW we found out a while back that gdbserver actually relies on GNU C -- see the ax_debug and ax_debug_1 defines in ax.c. And, BFD unconditionally uses "long long" in spots. So while the rule is officially that gdb is C89, in practice that isn't actually true. Tom