[PATCH] 32-bit linux use hard-coded DR0 offset not offsetof against a structure

Hi folks

I'm posting this to dev not commits as it's slightly contentious, but when
combined with an earlier posting of mine:

[Lldb-commits] [PATCH] 32-bit linux Remove WriteRegOperation's explicit GetAsUInt32() call

this proposal fixes the 32-bit linux debug experience.

This patch proposes to calculate the offset of an i386 debug offset using a
simple base + multiple sum, instead using offsetof against a structure.

We all know that there are lots of ways to solve this problem. I'm posting this
one as it is compact and fits with the existing "#define DR_OFFSET(reg_index)"

Index: source/Plugins/Process/POSIX/RegisterContextLinux_i386.cpp

RegisterContextLinux_i386.cpp.diff (660 Bytes)

This is now in as part of r202887.