summaryrefslogtreecommitdiffstats
path: root/libdwfl/argp-std.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2007-02-05 07:25:33 +0000
committerUlrich Drepper <[email protected]>2007-02-05 07:25:33 +0000
commitaa915fd3d70b4cbe4581f9ec170d986c6ba35063 (patch)
tree7345e23df9aa4cfcab4eb9afafa0dac6ed16e182 /libdwfl/argp-std.c
parentce0bdb6ee5f977af9e565f2871ba2b1b37d162a5 (diff)
propagate from branch 'com.redhat.elfutils.roland.pending' (head c44dcfac5b545aecb173fede31f34cb003be0173)
to branch 'com.redhat.elfutils' (head 4196d4e01486bdeb0c0632291881d1c6d7163fab)
Diffstat (limited to 'libdwfl/argp-std.c')
-rw-r--r--libdwfl/argp-std.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libdwfl/argp-std.c b/libdwfl/argp-std.c
index bec370a3..c12cb1dd 100644
--- a/libdwfl/argp-std.c
+++ b/libdwfl/argp-std.c
@@ -1,5 +1,5 @@
/* Standard argp argument parsers for tools using libdwfl.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -137,6 +137,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
if (dwfl == NULL)
return fail (dwfl, -1, arg);
state->hook = dwfl;
+
+ /* Start at zero so if there is just one -e foo.so,
+ the DSO is shown without address bias. */
+ dwfl->offline_next_address = 0;
}
if (dwfl->callbacks == &offline_callbacks)
{