aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-02-18 11:17:29 +0100
committerPetr Machata <pmachata@redhat.com>2012-04-19 00:57:35 +0200
commit2b46cfc1127d390eddd9593fe5ce5399c1f68130 (patch)
treebe4ce983280d64681bc3eaa295fc0837eac0b833 /options.c
parenta7db59c355cef464073496221ad27519a48466f9 (diff)
downloadltrace-2b46cfc1127d390eddd9593fe5ce5399c1f68130.tar.gz
The first crude version of tracing across libraries
- the patch will be sliced later
Diffstat (limited to 'options.c')
-rw-r--r--options.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/options.c b/options.c
index 74c28bd..eae797e 100644
--- a/options.c
+++ b/options.c
@@ -9,6 +9,7 @@
#include <sys/ioctl.h>
#include <getopt.h>
+#include <assert.h>
#include "common.h"
@@ -36,8 +37,6 @@ struct options_t options = {
.follow = 0, /* trace child processes */
};
-char *library[MAX_LIBRARIES];
-size_t library_num = 0;
static char *progname; /* Program name (`ltrace') */
int opt_i = 0; /* instruction pointer */
int opt_r = 0; /* print relative timestamp */
@@ -316,13 +315,8 @@ process_options(int argc, char **argv) {
opt_i++;
break;
case 'l':
- if (library_num == MAX_LIBRARIES) {
- fprintf(stderr,
- "Too many libraries. Maximum is %i.\n",
- MAX_LIBRARIES);
- exit(1);
- }
- library[library_num++] = optarg;
+ assert(!"-l support not yet implemented");
+ abort();
break;
case 'L':
options.libcalls = 0;