diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-01-30 17:51:22 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-01-30 17:51:22 +0000 |
commit | 0a8b301218f4fc1c727f9a7d0c8916a14aa74189 (patch) | |
tree | c9d87c99d2f390b0eff5a64b21ae117c31a2d136 /epan/dissectors/packet-frame.c | |
parent | f091005d3ec9f5f56876b84bb50714c1924323d6 (diff) |
If WIRESHARK_ABORT_ON_DISSECTOR_BUG is set, abort() out if we happened to
catch a DissectorError exception.
(I found this useful when debugging a "More than 1000000 items in the tree"
DissectorError.)
svn path=/trunk/; revision=40772
Diffstat (limited to 'epan/dissectors/packet-frame.c')
-rw-r--r-- | epan/dissectors/packet-frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c index 700b3ab8c0..1c4a7b3ed9 100644 --- a/epan/dissectors/packet-frame.c +++ b/epan/dissectors/packet-frame.c @@ -496,6 +496,9 @@ show_exception(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, "%s", exception_message == NULL ? dissector_error_nomsg : exception_message); + + if (getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) + abort(); break; default: |