aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2009-04-07 13:10:08 +0200
committerJuan Cespedes <cespedes@debian.org>2009-04-07 13:10:08 +0200
commit43739a69d0fb63011609af50f758fbe4734e0c67 (patch)
tree2d15099466a84f4e63c5344f3a848c376e90c1ae
parente2023f721b66db48cc8a0f4ab6519460093c2cf1 (diff)
downloadltrace-43739a69d0fb63011609af50f758fbe4734e0c67.tar.gz
Documentation, small fixes
-rw-r--r--BUGS4
-rw-r--r--TODO2
-rw-r--r--debug.h2
-rw-r--r--options.c2
4 files changed, 7 insertions, 3 deletions
diff --git a/BUGS b/BUGS
index ac809e1..129e135 100644
--- a/BUGS
+++ b/BUGS
@@ -3,3 +3,7 @@
* Doesn't work with threads
* Doesn't do inter-library calls (BP is in the executable's PLT)
* It lacks support for several Linux archs, and many operating systems
+* 2008-12-29: this line in config file does not work (2nd argument not used):
+ string setlocale(enum(LC_ALL=6), string);
+* 2009-04-07 fork() and clone() are not always followed
+* 2009-04-07 ltrace segfaults when killed with SIGTERM
diff --git a/TODO b/TODO
index 16fb9a4..6de0a32 100644
--- a/TODO
+++ b/TODO
@@ -1,7 +1,5 @@
-* fork(), clone() does not work sometimes
* EVENT_FORK, EVENT_EXEC instead of fork_p() and exec_p()
* Get rid of EVENT_ARCH_SYSCALL and EVENT_ARCH_SYSRET
-* ltrace segfaults when killed with SIGTERM
* BFD:
+ New executable formats
+ Read list of libraries needed
diff --git a/debug.h b/debug.h
index e3749ff..7a9761b 100644
--- a/debug.h
+++ b/debug.h
@@ -18,6 +18,6 @@ int xinfdump(long, void *, int);
# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
# define DEBUG_FUNCTION __func__
# else
-# define DEBUG_FUNCTION ((__const char *) 0)
+# define DEBUG_FUNCTION "???"
# endif
# endif
diff --git a/options.c b/options.c
index f230d1b..04e55a8 100644
--- a/options.c
+++ b/options.c
@@ -195,6 +195,8 @@ guess_cols(void) {
}
} else if (ioctl(1, TIOCGWINSZ, &ws) != -1 && ws.ws_col > 0) {
options.align = ws.ws_col * 5 / 8;
+ } else if (ioctl(2, TIOCGWINSZ, &ws) != -1 && ws.ws_col > 0) {
+ options.align = ws.ws_col * 5 / 8;
}
}