diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-04 19:09:37 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:36:35 +0200 |
commit | 796267f3370f37bc3b7657b53c6eda16bab3c930 (patch) | |
tree | 227d16ce5cc42ae20788096d292f71dce792d7dc | |
parent | 157cc4d6ee93f35e3aa65edcf57f369ae4e4677c (diff) | |
download | ltrace-796267f3370f37bc3b7657b53c6eda16bab3c930.tar.gz |
options.no_plt is useless
- or, as of now, it's used to decide whether or not we should display
"unexpected breakpoint" messages
-rw-r--r-- | handle_event.c | 4 | ||||
-rw-r--r-- | options.c | 7 | ||||
-rw-r--r-- | options.h | 1 |
3 files changed, 3 insertions, 9 deletions
diff --git a/handle_event.c b/handle_event.c index c96b9e6..57695af 100644 --- a/handle_event.c +++ b/handle_event.c @@ -700,10 +700,10 @@ handle_breakpoint(Event *event) return; } - if (event->proc->state != STATE_IGNORED && !options.no_plt) { + if (event->proc->state != STATE_IGNORED) output_line(event->proc, "unexpected breakpoint at %p", brk_addr); - } + continue_process(event->proc->pid); } @@ -402,7 +402,6 @@ char ** process_options(int argc, char **argv) { progname = argv[0]; options.output = stderr; - options.no_plt = 0; options.no_signals = 0; #if defined(HAVE_LIBUNWIND) options.bt_depth = -1; @@ -426,14 +425,13 @@ process_options(int argc, char **argv) { {"library", 1, 0, 'l'}, {"output", 1, 0, 'o'}, {"version", 0, 0, 'V'}, - {"no-plt", 0, 0, 'g'}, {"no-signals", 0, 0, 'b'}, #if defined(HAVE_LIBUNWIND) {"where", 1, 0, 'w'}, #endif /* defined(HAVE_LIBUNWIND) */ {0, 0, 0, 0} }; - c = getopt_long(argc, argv, "+cfhiLrStTVgb" + c = getopt_long(argc, argv, "+cfhiLrStTVb" # ifdef USE_DEMANGLE "C" # endif @@ -495,9 +493,6 @@ process_options(int argc, char **argv) { opt_F = tmp; break; } - case 'g': - options.no_plt = 1; - break; case 'h': usage(); exit(0); @@ -16,7 +16,6 @@ struct options_t { size_t arraylen; /* default maximum # of array elements printed */ size_t strlen; /* default maximum # of bytes printed in strings */ int follow; /* trace child processes */ - int no_plt; /* set bps on PLT entries */ int no_signals; /* don't print signals */ #if defined(HAVE_LIBUNWIND) int bt_depth; /* how may levels of stack frames to show */ |