From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D048A20355222 for ; Wed, 8 Nov 2017 07:28:11 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Nov 2017 07:32:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,364,1505804400"; d="scan'208";a="147492052" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga004.jf.intel.com with ESMTP; 08 Nov 2017 07:32:07 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 8 Nov 2017 07:32:06 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 8 Nov 2017 07:32:06 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Wed, 8 Nov 2017 23:32:04 +0800 From: "Gao, Liming" To: Laszlo Ersek , Heyi Guo , "edk2-devel@lists.01.org" Thread-Topic: [edk2] Why do we use -g option of gcc even for RELEASE build? Thread-Index: AQHTWDjhVI9Yx0orJ0+b8ud00oBd86MKDDUAgACQIPA= Date: Wed, 8 Nov 2017 15:32:04 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E17A2B5@SHSMSX104.ccr.corp.intel.com> References: <145387dc-028f-c75f-6df3-cb0ead996eb8@linaro.org> <328f6c59-f41a-1b53-621c-a8ac000dcb45@redhat.com> In-Reply-To: <328f6c59-f41a-1b53-621c-a8ac000dcb45@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Why do we use -g option of gcc even for RELEASE build? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 15:28:12 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SW4gYnVpbGRfcnVsZS50eHQsIEdDQyBidWlsdCBpbWFnZSB3aWxsIGJlIHN0cmlwIGZpcnN0LCB0 aGVuIGJlIGNvbnZlcnRlZCB0byBFRkkgaW1hZ2UgYnkgR2VuRncuIFRoZXJlIGlzIG5vIHN5bWJv bCBpbiB0aGUgZmluYWwgRUZJIGltYWdlLiBBbGwgc3ltYm9scyBhcmUga2VwdCBpbnRvIG9yaWdp bmFsIEdDQyBidWlsdCBpbWFnZS4gDQoNClRoYW5rcw0KTGltaW5nDQo+IC0tLS0tT3JpZ2luYWwg TWVzc2FnZS0tLS0tDQo+IEZyb206IExhc3psbyBFcnNlayBbbWFpbHRvOmxlcnNla0ByZWRoYXQu Y29tXQ0KPiBTZW50OiBXZWRuZXNkYXksIE5vdmVtYmVyIDgsIDIwMTcgMTA6NTQgUE0NCj4gVG86 IEhleWkgR3VvIDxoZXlpLmd1b0BsaW5hcm8ub3JnPjsgZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmcN Cj4gQ2M6IEdhbywgTGltaW5nIDxsaW1pbmcuZ2FvQGludGVsLmNvbT4NCj4gU3ViamVjdDogUmU6 IFtlZGsyXSBXaHk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