On 04/02/2014 01:37 PM, Eli Zaretskii wrote: >> Date: Wed, 02 Apr 2014 12:46:13 -0700 >> From: Daniel Colascione >> Cc: 17168@debbugs.gnu.org >> >> Nicolas, what is the bzr revision from which this Emacs was compiled? >> (Is there a way to get this information from a core other than just >> walking the symbol obarray?) > > Like this: > > (gdb) p Fsymbol_value(intern("emacs-bzr-version")) > $5 = 57020481 > (gdb) xtype > Lisp_String > (gdb) xstring > $6 = (struct Lisp_String *) 0x3661040 > "116894 rudalics@gmx.at-20140402143333-a56l2vy9oak0njsg" > > Alas, you cannot do this when debugging a core file, you need a > running program. I was afraid of that. Would you object to declaring emacs-repository-version in C so that we can find it more easily in core dumps?