Hi Kim! On 2/15/20 10:30 PM, Kim Barrett wrote: > I prefer the approach using a non-ODR-used dummy to the approach of > casting of some random number to an address. Non-ODR-used > declarations are well supported by the standard (C++03 3.2) and widely > used; that's the basis for the "sizeof trick" metaprogramming idiom, > for example.
I've now understood that approach and implemented it. Please see my patch in [1]. FWIW, I have tried to put the declaration of RegistersForDebugging outside the X_offset() functions but that doesn't work. Hope the change is now okay as is :). Adrian > [1] http://cr.openjdk.java.net/~glaubitz/8239001/webrev.02/ -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913