aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-08-30 19:23:09 -0700
committerGuy Harris <guy@alum.mit.edu>2016-08-31 02:23:57 +0000
commit33bb9bed3ec5c00a5ad4b2817ee90ae2aabe7d15 (patch)
tree425283ce8abe667d81ca511195c0b51edc139998 /tshark.c
parent290e23299d25722a457e58baf7a611001cadd73d (diff)
Debugging printouts, to see why tshark -G crashes on the Win64 buildbot.
Change-Id: I16f6b7a69eed5ec66842df9d0640216fd273d3b0 Reviewed-on: https://code.wireshark.org/review/17408 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 7a8c2d4d63..b4924a3f96 100644
--- a/tshark.c
+++ b/tshark.c
@@ -829,11 +829,18 @@ main(int argc, char *argv[])
XXX - we do this here, for now, to support "-G" with no arguments.
If none of our build or other processes uses "-G" with no arguments,
we can just process it with the other arguments. */
+fprintf(stderr, "Checking for -G\n");
if (argc >= 2 && strcmp(argv[1], "-G") == 0) {
+fprintf(stderr, "-G detected\n");
proto_initialize_all_prefixes();
+fprintf(stderr, "proto_initialize_all_prefixes() returned\n");
if (argc == 2)
+{
+fprintf(stderr, "calling proto_registrar_dump_fields()\n");
proto_registrar_dump_fields();
+fprintf(stderr, "proto_registrar_dump_fields() returned\n");
+}
else {
if (strcmp(argv[2], "column-formats") == 0)
column_dump_column_formats();
@@ -878,6 +885,7 @@ main(int argc, char *argv[])
return 1;
}
}
+fprintf(stderr, "About to return\n");
return 0;
}