scripts/build/arch/microblaze.sh
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Sat Oct 06 23:48:07 2012 +0200 (2012-10-06)
changeset 3083 3a7b2eee9dcd
child 3169 9d0b37f08a10
permissions -rw-r--r--
scripts: add option to start an interactive debug shell

Add an option that, when a command fails:
- starts an interactive shell with the failed command's environment
- attempts re-execution of the failed command, continues, or aborts
at user's whim.

Before starting the debug-shell, the backtrace is printed.
When exiting for an abort, the standard error message is printed.

Based on an idea and a patch from: Johannes Stezenbach <js@sig21.net>
http://sourceware.org/ml/crossgcc/2012-09/msg00144.html

Signed-off-by: Johannes Stezenbach <js@sig21.net>
[yann.morin.1998@free.fr: integrate in the fault handler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: Johannes Stezenbach <js@sig21.net>
Patchwork-Id: 191571
Patchwork-Id: 191668
david@3053
     1
# Compute microblaze specific values
david@3053
     2
david@3053
     3
CT_DoArchTupleValues () {
david@3053
     4
    # The architecture part of the tuple:
david@3053
     5
    CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
david@3053
     6
david@3053
     7
    # gcc ./configure flags
david@3053
     8
    CT_ARCH_WITH_ARCH=
david@3053
     9
    CT_ARCH_WITH_ABI=
david@3053
    10
    CT_ARCH_WITH_CPU=
david@3053
    11
    CT_ARCH_WITH_TUNE=
david@3053
    12
    CT_ARCH_WITH_FPU=
david@3053
    13
    CT_ARCH_WITH_FLOAT=
david@3053
    14
david@3053
    15
    # CFLAGS
david@3053
    16
    case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
david@3053
    17
        y,) CT_ARCH_FLOAT_CFLAG="-mhard-float" ;;
david@3053
    18
        ,y) CT_ARCH_FLOAT_CFLAG="-msoft-float" ;;
david@3053
    19
    esac
david@3053
    20
david@3053
    21
}