]> sourceware.org Git - systemtap.git/commit
runtime: offptr_t: Fix NULL, and add a global implementation
authorJosh Stone <jistone@redhat.com>
Tue, 11 Dec 2012 01:11:45 +0000 (17:11 -0800)
committerJosh Stone <jistone@redhat.com>
Tue, 11 Dec 2012 03:07:22 +0000 (19:07 -0800)
commit73575f0c943e386be03383e6403192dd208d13b1
tree3e140276350a715cc92306314b0552f96ecacf93
parentd184da60bc94d65b36e5fa09cfc9316fad9fb588
runtime: offptr_t: Fix NULL, and add a global implementation

NULL can't be treated as a relative pointer, because it's always
absolute.  Good thing we weren't using offptr_t in relocatable memory
yet.  Now this is treated as the special case it must be.

I've also added another offptr_t implementation, based on a fixing
offsets from the global shared-memory base.  This means it's only good
for pointers within that memory, but math should be simpler.
runtime/dyninst/offptr.h
This page took 0.025624 seconds and 5 git commands to generate.