config/companion_libs/cloog.in
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 2435 da167ec304be
child 2853 5182fa901f30
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)
yann@1380
     1
# CLooG options
yann@1380
     2
yann@1380
     3
choice
yann@1380
     4
    bool
yann@1380
     5
    prompt "CLooG/ppl version"
yann@1535
     6
# Don't remove next line
yann@1535
     7
# CT_INSERT_VERSION_BELOW
yann@1380
     8
yann@2435
     9
config CLOOG_V_0_15_11
yann@2435
    10
    bool
yann@2435
    11
    prompt "0.15.11 (EXPERIMENTAL)"
yann@2435
    12
    depends on EXPERIMENTAL
yann@2758
    13
    select CLOOG_0_15_1x
yann@2435
    14
yann@2157
    15
config CLOOG_V_0_15_10
yann@2157
    16
    bool
yann@2157
    17
    prompt "0.15.10"
yann@2758
    18
    select CLOOG_0_15_1x
yann@2157
    19
yann@1873
    20
config CLOOG_V_0_15_9
yann@1873
    21
    bool
yann@1873
    22
    prompt "0.15.9"
yann@1873
    23
yann@1873
    24
config CLOOG_V_0_15_8
yann@1873
    25
    bool
yann@1873
    26
    prompt "0.15.8"
yann@1873
    27
yann@1534
    28
config CLOOG_V_0_15_7
yann@1380
    29
    bool
yann@1534
    30
    prompt "0.15.7"
yann@1534
    31
yann@1534
    32
config CLOOG_V_0_15_6
yann@1534
    33
    bool
yann@1534
    34
    prompt "0.15.6"
yann@1534
    35
yann@1380
    36
endchoice
yann@1380
    37
yann@1380
    38
config CLOOG_VERSION
yann@1380
    39
    string
yann@1535
    40
# Don't remove next line
yann@1535
    41
# CT_INSERT_VERSION_STRING_BELOW
yann@2435
    42
    default "0.15.11" if CLOOG_V_0_15_11
yann@2157
    43
    default "0.15.10" if CLOOG_V_0_15_10
yann@1873
    44
    default "0.15.9" if CLOOG_V_0_15_9
yann@1873
    45
    default "0.15.8" if CLOOG_V_0_15_8
yann@1534
    46
    default "0.15.7" if CLOOG_V_0_15_7
yann@1534
    47
    default "0.15.6" if CLOOG_V_0_15_6
yann@1534
    48
    default "0.15.5" if CLOOG_V_0_15_5
yann@1534
    49
    default "0.15.4" if CLOOG_V_0_15_4
yann@1380
    50
    default "0.15.3" if CLOOG_V_0_15_3
yann@2758
    51
yann@2758
    52
config CLOOG_0_15_1x
yann@2758
    53
    bool
yann@2758
    54
    select CLOOG_NEEDS_AUTORECONF
yann@2758
    55
yann@2758
    56
config CLOOG_NEEDS_AUTORECONF
yann@2758
    57
    bool