From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Newsgroups: gmane.emacs.devel Subject: How to build Emacs with debugging information? Date: Sat, 24 Jan 2015 16:43:57 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422114250 5488 80.91.229.3 (24 Jan 2015 15:44:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2015 15:44:10 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 24 16:44:09 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YF2sU-0006fV-Ld for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2015 16:44:02 +0100 Original-Received: from localhost ([::1]:35298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YF2sU-00062l-6Q for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2015 10:44:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YF2sR-00062g-Hf for emacs-devel@gnu.org; Sat, 24 Jan 2015 10:44:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YF2sQ-0007yx-NT for emacs-devel@gnu.org; Sat, 24 Jan 2015 10:43:59 -0500 Original-Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:38956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YF2sQ-0007yi-HW for emacs-devel@gnu.org; Sat, 24 Jan 2015 10:43:58 -0500 Original-Received: by mail-wg0-f43.google.com with SMTP id y19so2371189wgg.2 for ; Sat, 24 Jan 2015 07:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+M66tcxANSFOk79e+PWHxUM+uyKVz8t1tMaUTMsgpD4=; b=JYEDxQZvYPXFzmwLc+M27eK1XWJEKM5Dfe5uTruqC0RAir8OjcsnE333sVEcoNMbu+ lJAFAyVefT2Sypv8SalNeeJvrMJyP0AveM3HBE0n2wHu5nMxm9rpSb0CLp6ElVF4zX0M SsP7PLTIhvZ97HJPQE1GSTg4zK+92LgMXuTc5eIJQp8gf2O9lew7zDclseIHF7dPhB9D dxUJavnrk70q7kFwy8g7cFYXmSgpzUxoskNTOWPYdWC9/r8KEZEisz7wcizbnd9lE6p/ 0Cy2CF558J4x0CCulej1QCAFlKyN8nY5NuVCZbrY18mN/EbDX5kwvkxlIXVggTqgDIpw 8a/Q== X-Received: by 10.194.175.102 with SMTP id bz6mr24938887wjc.120.1422114237144; Sat, 24 Jan 2015 07:43:57 -0800 (PST) Original-Received: by 10.27.137.137 with HTTP; Sat, 24 Jan 2015 07:43:57 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181725 Archived-At: Hi all, Sorry if I'm asking obvious things, I'm not too experienced with C. I wanted to step through `scan_lists' from syntax.c to understand why and how "<" and ">" are matched in `c++-mode'. For example, they won't be matched here, calling `forward-list': #include but will be matched here: vector foo; Anyway, stepping with gdb, inside another Emacs instance, I see that many values are "", e.g. (gdb) p found $1 = Normally I would pass "-g -O0" flags to gcc to solve this for the C/C++ programs that I write. How can I do the equivalent thing for Emacs? Is there a way to have both the "debug" and "release" configurations for the Emacs executable? regards, Oleh