dyninstAPI: avoid treating enums like bool
authorJosh Stone <jistone@redhat.com>
Tue, 4 Aug 2015 23:31:55 +0000 (16:31 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 6 Aug 2015 05:39:57 +0000 (22:39 -0700)
commit97b2ae0725aa25ce525bb37f2dc97d5999b872d7
tree6db93510e26de0e67ac82b5b3cf1536315d1bf2d
parent1e9e5ec5c84d851e4908129507a5ceb145c5c7c4
dyninstAPI: avoid treating enums like bool

Implementations of virtual BPatch_addressSpace::getType() are using enum
values to return a bool.  Make that return the proper enum processType
value directly, and make sure comparisons are appropriate.

Similarly, baseTramp had a boolean negation in a state comparison, which
should just use "!=" directly.
dyninstAPI/h/BPatch_addressSpace.h
dyninstAPI/h/BPatch_binaryEdit.h
dyninstAPI/h/BPatch_process.h
dyninstAPI/src/BPatch_binaryEdit.C
dyninstAPI/src/BPatch_image.C
dyninstAPI/src/BPatch_process.C
dyninstAPI/src/baseTramp.C