* bug#13445: add2rline usage in manual
@ 2013-01-15 0:09 Glenn Morris
2013-01-15 8:58 ` Andreas Schwab
2013-01-19 22:16 ` Paul Eggert
0 siblings, 2 replies; 6+ messages in thread
From: Glenn Morris @ 2013-01-15 0:09 UTC (permalink / raw
To: 13445
Package: emacs
Version: 24.2.92
Severity: minor
trouble.texi says:
If your system has the @command{addr2line} utility, the following shell
command outputs a backtrace with source-code line numbers:
@example
sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} |
addr2line -Cfip -e @var{bindir}/emacs
@end example
Trying this on RHEL6 fails with:
addr2line: invalid option -- 'p'
By experiment, -Cfi works.
I can't see anywhere in the addr2line manual or info page on this system
that explains what demangling styles are valid.
GNU addr2line version 2.20.51.0.2-5.34.el6 20100205
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#13445: add2rline usage in manual
2013-01-15 0:09 bug#13445: add2rline usage in manual Glenn Morris
@ 2013-01-15 8:58 ` Andreas Schwab
2013-01-19 22:16 ` Paul Eggert
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2013-01-15 8:58 UTC (permalink / raw
To: Glenn Morris; +Cc: 13445
Glenn Morris <rgm@gnu.org> writes:
> Trying this on RHEL6 fails with:
>
> addr2line: invalid option -- 'p'
-p (aka --pretty-print) has been added in binutils 2.21.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#13445: add2rline usage in manual
2013-01-15 0:09 bug#13445: add2rline usage in manual Glenn Morris
2013-01-15 8:58 ` Andreas Schwab
@ 2013-01-19 22:16 ` Paul Eggert
2013-01-19 22:34 ` Glenn Morris
1 sibling, 1 reply; 6+ messages in thread
From: Paul Eggert @ 2013-01-19 22:16 UTC (permalink / raw
To: 13445
With newer addr2line, -p is helpful because function names
aren't printed without it. In trunk bzr 111564..5 I pushed the
following, to suggest -p if available and to say what to do with
older addr2line implementations.
=== modified file 'doc/emacs/ChangeLog'
--- doc/emacs/ChangeLog 2013-01-19 20:38:13 +0000
+++ doc/emacs/ChangeLog 2013-01-19 22:10:50 +0000
@@ -1,3 +1,10 @@
+2013-01-19 Paul Eggert <eggert@cs.ucla.edu>
+
+ * trouble.texi (Crashing): Suggest -p for recent addrline. (Bug#13445)
+ Without it, I don't see function names. Older addrlines will die
+ out sooner or later, so tailor the suggestion to recent addrline
+ and put in a comment about older ones.
+
2013-01-19 Glenn Morris <rgm@gnu.org>
* custom.texi (Directory Variables): Fix paren typo.
=== modified file 'doc/emacs/trouble.texi'
--- doc/emacs/trouble.texi 2013-01-19 20:38:13 +0000
+++ doc/emacs/trouble.texi 2013-01-19 22:14:42 +0000
@@ -325,7 +325,8 @@
@example
sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} |
- addr2line -C -f -i -e @var{bindir}/@var{emacs-binary}
+ addr2line -C -f -i -p -e @var{bindir}/@var{emacs-binary}
+# Omit '-p' for binutils 2.20 and earlier.
@end example
@noindent
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#13445: add2rline usage in manual
2013-01-19 22:16 ` Paul Eggert
@ 2013-01-19 22:34 ` Glenn Morris
2013-01-19 22:50 ` Paul Eggert
0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2013-01-19 22:34 UTC (permalink / raw
To: Paul Eggert; +Cc: 13445
Paul Eggert wrote:
> With newer addr2line, -p is helpful because function names
> aren't printed without it. In trunk bzr 111564..5 I pushed the
> following, to suggest -p if available and to say what to do with
> older addr2line implementations.
This doesn't really make sense, given the changes I had already made.
(See the footnote.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#13445: add2rline usage in manual
2013-01-19 22:34 ` Glenn Morris
@ 2013-01-19 22:50 ` Paul Eggert
2013-01-19 23:40 ` Glenn Morris
0 siblings, 1 reply; 6+ messages in thread
From: Paul Eggert @ 2013-01-19 22:50 UTC (permalink / raw
To: Glenn Morris; +Cc: 13445
On 01/19/2013 02:34 PM, Glenn Morris wrote:
> This doesn't really make sense, given the changes I had already made.
> (See the footnote.)
Sorry, that was my problem -- I didn't see the footnote. (Do people
read footnotes?...) I tried to fix things by pulling that material
out of the footnote and suggesting -p first with a fallback without -p,
in trunk bzr 111567.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-19 23:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-15 0:09 bug#13445: add2rline usage in manual Glenn Morris
2013-01-15 8:58 ` Andreas Schwab
2013-01-19 22:16 ` Paul Eggert
2013-01-19 22:34 ` Glenn Morris
2013-01-19 22:50 ` Paul Eggert
2013-01-19 23:40 ` Glenn Morris
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.