patches/libelf/0.8.10/100-fix-64-bit-detection.patch
author |
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> |
|
Tue Dec 13 23:32:39 2011 +0100 (2011-12-13) |
changeset 2807 |
4193d6e6a174 |
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@968
|
1 |
diff -dur libelf-0.8.10.orig/configure libelf-0.8.10/configure
|
yann@968
|
2 |
--- libelf-0.8.10.orig/configure 2007-09-07 14:08:06.000000000 +0200
|
yann@968
|
3 |
+++ libelf-0.8.10/configure 2008-10-23 22:43:19.000000000 +0200
|
yann@968
|
4 |
@@ -1595,7 +1595,7 @@
|
yann@968
|
5 |
echo $ac_n "(cached) $ac_c" 1>&6
|
yann@968
|
6 |
else
|
yann@968
|
7 |
if test "$cross_compiling" = yes; then
|
yann@968
|
8 |
- ac_cv_sizeof_long_long=0
|
yann@968
|
9 |
+ ac_cv_sizeof_long_long=8
|
yann@968
|
10 |
else
|
yann@968
|
11 |
cat > conftest.$ac_ext <<EOF
|
yann@968
|
12 |
#line 1602 "configure"
|
yann@968
|
13 |
diff -dur libelf-0.8.10.orig/configure.in libelf-0.8.10/configure.in
|
yann@968
|
14 |
--- libelf-0.8.10.orig/configure.in 2007-09-07 14:07:59.000000000 +0200
|
yann@968
|
15 |
+++ libelf-0.8.10/configure.in 2008-10-23 22:43:10.000000000 +0200
|
yann@968
|
16 |
@@ -90,7 +90,7 @@
|
yann@968
|
17 |
AC_CHECK_SIZEOF(short,2)
|
yann@968
|
18 |
AC_CHECK_SIZEOF(int,4)
|
yann@968
|
19 |
AC_CHECK_SIZEOF(long,4)
|
yann@968
|
20 |
-AC_CHECK_SIZEOF(long long,0)
|
yann@968
|
21 |
+AC_CHECK_SIZEOF(long long,8)
|
yann@968
|
22 |
# Windows port
|
yann@968
|
23 |
AC_CHECK_SIZEOF(__int64, 0)
|
yann@968
|
24 |
|