config/arch/powerpc.in.2
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Dec 13 23:32:39 2011 +0100 (2011-12-13)
branch1.13
changeset 2847 c0bf2319af08
parent 2484 d1a8c2ae7946
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>
(transplanted from 4193d6e6a17430a177fa88c287879c2c35e319f3)
     1 # powerpc specific configuration file
     2 
     3 config ARCH_powerpc_ABI
     4     string
     5     default ""     if ARCH_powerpc_ABI_DEFAULT
     6     default "eabi" if ARCH_powerpc_ABI_EABI
     7     default "spe"  if ARCH_powerpc_ABI_SPE
     8 
     9 choice
    10     bool
    11     prompt "ABI"
    12     default ARCH_powerpc_ABI_DEFAULT
    13 
    14 config ARCH_powerpc_ABI_DEFAULT
    15     bool
    16     prompt "default"
    17     help
    18       The default ABI (System V.4).
    19 
    20 config ARCH_powerpc_ABI_EABI
    21     bool
    22     prompt "EABI"
    23     depends on BARE_METAL
    24     help
    25       The Embedded ABI (stack alignment of 8 bytes, etc).
    26 
    27 config ARCH_powerpc_ABI_SPE
    28     bool
    29     prompt "SPE"
    30     help
    31       Add support for the Signal Processing Engine.  This will set up
    32       the toolchain so that it supports the SPE ABI extensions. This
    33       mainly targets Freescale e500 processors.
    34       
    35       Setting this option will append "spe" to the end of your target
    36       tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
    37       configure/build system will know to include SPE ABI support. It
    38       will also automatically add "-mabi=spe -mspe" to your TARGET_CFLAGS,
    39       and "--enable-e500_double" to your CC_EXTRA_CONFIG_ARRAY, so you
    40       do not need to explicitly add them.
    41 
    42 endchoice