config/debug/strace.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Sat Oct 06 23:48:07 2012 +0200 (2012-10-06)
changeset 3083 3a7b2eee9dcd
parent 2733 3362c64f4b6c
child 3142 6569f6a9060c
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
     1 # strace
     2 
     3 ## depends on ! BACKEND
     4 
     5 choice
     6     bool
     7     prompt "strace version"
     8 # Don't remove next line
     9 # CT_INSERT_VERSION_BELOW
    10 
    11 config STRACE_V_4_6
    12     bool
    13     prompt "4.6 (EXPERIMENTAL)"
    14     depends on EXPERIMENTAL
    15     depends on CONFIGURE_has_xz
    16 
    17 config STRACE_V_4_5_20
    18     bool
    19     prompt "4.5.20 (EXPERIMENTAL)"
    20     depends on EXPERIMENTAL
    21 
    22 config STRACE_V_4_5_19
    23     bool
    24     prompt "4.5.19"
    25 
    26 config STRACE_V_4_5_18
    27     bool
    28     prompt "4.5.18"
    29 
    30 config STRACE_V_4_5_17
    31     bool
    32     prompt "4.5.17 (OBSOLETE)"
    33     depends on OBSOLETE
    34 
    35 config STRACE_V_4_5_16
    36     bool
    37     prompt "4.5.16 (OBSOLETE)"
    38     depends on OBSOLETE
    39 
    40 config STRACE_V_4_5_15
    41     bool
    42     prompt "4.5.15 (OBSOLETE)"
    43     depends on OBSOLETE
    44 
    45 endchoice
    46 
    47 config STRACE_VERSION
    48     string
    49 # Don't remove next line
    50 # CT_INSERT_VERSION_STRING_BELOW
    51     default "4.6" if STRACE_V_4_6
    52     default "4.5.20" if STRACE_V_4_5_20
    53     default "4.5.19" if STRACE_V_4_5_19
    54     default "4.5.18" if STRACE_V_4_5_18
    55     default "4.5.17" if STRACE_V_4_5_17
    56     default "4.5.16" if STRACE_V_4_5_16
    57     default "4.5.15" if STRACE_V_4_5_15