README
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Dec 13 23:32:39 2011 +0100 (2011-12-13)
changeset 2807 4193d6e6a174
parent 2091 7975604aacbd
child 2834 0a0410dd0cb0
permissions -rw-r--r--
scripts: fix dumping execution backtrace

Dumping the backtrace has been broken since changeset #652e56d6d35a:
scripts: execute each steps in a subshell

We can spawn sub-sub-shells in some cases.

The way the fault handler works is to dump the backtrace, but to avoid
printing it once for every sub-shell (which could get quite confusing),
it simply exits when it detects that it is being run in a sub-shell,
leaving to the top-level shell the work to dump the backtrace.

Because each step is executed in its own sub-shell, the variable arrays
that contain the step name, the source file and line number, are lost
when exiting the per-step sub-shell.

Hence, the backtrace is currently limited to printing only the top-level
main procedure of the shell.

Fix this thus:
- when dumping the bckatraces for the steps & the functions, remember
it was dumped, and only dump it if it was not already dumped
- at the top-level shell, print the hints

Also, rename the top-level step label.

Reported-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1
     1
This is the README for crosstool-NG
yann@1
     2
yann@2091
     3
Crosstool-NG follows the autoconf dance. So, to get you
yann@2091
     4
kick-started, just run:
yann@185
     5
  ./configure --help
yann@1
     6
yann@2091
     7
You will find the documentation in the directory 'docs'.
yann@2091
     8
Here is a quick overview of what you'll find there:
yann@2091
     9
  0 - Table of content
yann@2091
    10
  1 - Introduction
yann@2091
    11
  2 - Installing crosstool-NG
yann@2091
    12
  3 - Configuring a toolchain
yann@2091
    13
  4 - Building the toolchain
yann@2091
    14
  5 - Using the toolchain
yann@2091
    15
  6 - Toolchain types
yann@2091
    16
  7 - Contributing
yann@2091
    17
  8 - Internals
yann@2091
    18
  A - Credits
yann@2091
    19
  B - Known issues
yann@2091
    20
  C - Misc. tutorials
yann@1
    21
yann@1575
    22
You can also point your browser at:
yann@2725
    23
  http://crosstool-ng.org/
yann@96
    24
yann@185
    25
Aloha!