all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to build Emacs with debugging information?
@ 2015-01-24 15:43 Oleh
  2015-01-24 17:10 ` Alan Mackenzie
  0 siblings, 1 reply; 4+ messages in thread
From: Oleh @ 2015-01-24 15:43 UTC (permalink / raw)
  To: emacs-devel

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 <vector>

but will be matched here:

    vector<int> foo;

Anyway, stepping with gdb, inside another Emacs instance, I see that
many values are "<optimized out>", e.g.

    (gdb) p found
    $1 = <optimized out>

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-24 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-24 15:43 How to build Emacs with debugging information? Oleh
2015-01-24 17:10 ` Alan Mackenzie
2015-01-24 18:13   ` Óscar Fuentes
2015-01-24 20:52   ` Oleh

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.