aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorPaul Gilliam <pgilliam@us.ibm.com>2006-04-24 22:06:23 +0200
committerIan Wienand <ianw@debian.org>2006-04-24 22:06:23 +0200
commitbe3207721cb07e7d01a81fb3beecd0327201478c (patch)
tree71488c6828c68147b6428890897b9014620f142d /options.c
parent3f1219f7803599df8556e7fc096a6a239f9a04fd (diff)
downloadltrace-be3207721cb07e7d01a81fb3beecd0327201478c.tar.gz
Use e_entry if "_start" can't be found on architectures where it is needed
Diffstat (limited to 'options.c')
-rw-r--r--options.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/options.c b/options.c
index 9a1e298..b6dabab 100644
--- a/options.c
+++ b/options.c
@@ -53,9 +53,11 @@ int opt_e_enable = 1;
/* List of global function names given to -x: */
struct opt_x_t *opt_x = NULL;
+#ifdef PLT_REINITALISATION_BP
/* Set a break on the routine named here in order to re-initialize breakpoints
after all the PLTs have been initialzed */
-char *PLTs_initialized_by_here = PLTs_INIT_BY_HERE;
+char *PLTs_initialized_by_here = PLT_REINITALISATION_BP;
+#endif
static void usage(void)
{
@@ -120,8 +122,10 @@ static void usage(void)
" -V output version information and exit.\n"
# endif
" -x NAME treat the global NAME like a library subroutine.\n"
+#ifdef PLT_REINITALISATION_BP
" -X NAME same as -x; and PLT's will be initialized by here.\n"
- "\nReport bugs to Juan Cespedes <cespedes@debian.org>\n",
+#endif
+ "\nReport bugs to ltrace-devel@lists.alioth.debian.org\n",
progname);
#endif
}
@@ -318,7 +322,12 @@ char **process_options(int argc, char **argv)
"version 2 or later for copying conditions. There is NO warranty.\n");
exit(0);
case 'X':
+#ifdef PLT_REINITALISATION_BP
PLTs_initialized_by_here = optarg;
+#else
+ fprintf(stderr, "WANRING: \"-X\" not used for this "
+ "architecture: assuming you meant \"-x\"\n");
+#endif
/* Fall Thru */
case 'x':