]> sourceware.org Git - systemtap.git/commit - dwflpp.cxx
add DWFL_ASSERT and DWARF_ASSERT to help diagnosis
authorJonathan Lebon <jlebon@redhat.com>
Thu, 17 Apr 2014 16:08:00 +0000 (12:08 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Thu, 17 Apr 2014 21:42:37 +0000 (17:42 -0400)
commite1c3b13a974d5d333309f1916b405881e3d50afb
tree99c0168fb83659431a83468b19a417d7924cd043
parent61e3c7e47b88dd023c47c26c969286638052c797
add DWFL_ASSERT and DWARF_ASSERT to help diagnosis

Semantic errors thrown from dwfl_assert() and dwarf_assert() lacked any
positional information to help track down where the assertion failed. We
create two new macros, DWFL_ASSERT and DWARF_ASSERT, which carry down
the __FILE__ and __LINE__ information so that the semantic_error created
contains that information, which can be printed out using -vv.

Before:

semantic error: libdwfl failure (asserting!): no error

After:

semantic error: libdwfl failure (asserting!): no error
   thrown from: ../systemtap/tapsets.cxx:7183
dwarf_wrappers.cxx
dwarf_wrappers.h
dwflpp.cxx
setupdwfl.cxx
tapsets.cxx
translate.cxx
This page took 0.029037 seconds and 5 git commands to generate.