MicrosoftEdge / JsDbg

Debugging extensions for Microsoft Edge and other Chromium-based browsers
MIT License
178 stars 33 forks source link

[gdb] Better handle typedefs to anonymous unions #195

Closed cbiesinger closed 5 years ago

cbiesinger commented 5 years ago

When compiled with clang, for a typedef to an anonymous union, gdb will not be able to find a name and so 'name' is None. When that happens, we should just not call strip_typedefs to keep a name to refer to the type.

Because this only happens with clang, I have not written a testcase for this bug. I did file a clang bug (see link in comment).

This shows up with base::internal::LockImpl::NativeHandle.