all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 13775@debbugs.gnu.org
Subject: bug#13775: 24.3.50; Omissions in documentation for crash reporting
Date: Thu, 21 Feb 2013 19:24:03 +0200	[thread overview]
Message-ID: <837gm1oa18.fsf@gnu.org> (raw)
In-Reply-To: <87bobei0tx.fsf@yandex.ru>

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Thu, 21 Feb 2013 11:27:06 +0400
> 
> As a non-GDB-wielding user with not much C experience, I had a hard time
> following the instructions in `report-emacs-bug' and the ones that
> followed.

I'm not sure your expectations can be met with any reasonable effort.
There's no way we can teach everybody the basics of GNU-style
configure scripts, including how to discover the available switches
and override compiler and linker options.  You need to learn that
elsewhere.  In general, if you cannot figure out how to do something,
just ask, and you _will_ be helped.

Some answers below, because most of this info is available, you just
need to know how to find it.

> 1. Calling `xbacktrace' requires src/.gdbinit to be loaded. It
> a) requires the user to run gdb exactly from src/ (not `gdb src/emacs'),

The file etc/DEBUG tells you that at the beginning:

  ** When you debug Emacs with GDB, you should start it in the directory
  where the executable was made.  That directory has a .gdbinit file
  that defines various "user-defined" commands for debugging Emacs.
  (These commands are described below under "Examining Lisp object
  values" and "Debugging Emacs Redisplay problems".)

> b) requires them to modify the `auto-load safe-path', or that .gdbinit
> is ignored.

This "feature" entered GDB only recently.  Versions of GDB before 7.5
don't need that, and will barf if you use this command.  I don't see
any reasonable way of dealing with this without confusing newbies even
more (while veteran GDB users already know how to negotiate this
obstacle).

> 2. "Compile without optimizations" - how do I do that? `configure
> --help' doesn't seem to show any pertinent options. ...but wait, it says
> I can override the choices made by the script.

Yes, it says near the end how to specify compiler switches.

> a) Do I set the variable when calling `make', or do I have to re-run
> ./configure? Not obvious, the answer is "the latter".

Actually, both will work.

> b) I don't know the choice the script made, how do I not break
> anything by overriding it?

You just need to know, or ask.  It is not reasonable to expect Emacs
documentation to repeat the entire compiler manual, or large portions
thereof.

> 3. In #13749 (which caused me to write this), Paul also suggests using
> -DENABLE_CHECKING. If I'm not mistaken, this variable isn't documented
> anywhere.

As Andreas points out, this is in "./configure --help".





  parent reply	other threads:[~2013-02-21 17:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-21  7:27 bug#13775: 24.3.50; Omissions in documentation for crash reporting Dmitry Gutov
2013-02-21  8:31 ` Andreas Schwab
2013-02-21 17:24 ` Eli Zaretskii [this message]
2013-02-22  1:31   ` Dmitry Gutov
2013-02-22  9:24     ` Eli Zaretskii
2013-02-22 21:53       ` Dmitry Gutov
2013-02-22  9:37     ` Andreas Schwab
2013-02-22 21:26       ` Dmitry Gutov
2013-02-22 21:44         ` Eli Zaretskii
2013-02-22 22:00           ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837gm1oa18.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13775@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.