Extern globals showing up as locals

I’m seeing particular globals spuriously being reported as local variables: they’re returned by SBFrame::GetVariables(true, true, false, true) because their scope is eValueTypeVariableLocal.

I’ve tracked down the problem but don’t know DWARF well enough to determine the right fix. Anyone want to help me out?

I sent my best attempt in https://reviews.llvm.org/D26908, would appreciate any advice there :slight_smile: