You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
While running the in-repo unit tests while debugging #1506, I found that Runtime.lib has ten or so references to the PalDebugBreak symbol, but no definition for it. This just started happening now, after I rebased the branch I was working on to the tip of master. This symbol was added in #1534. It seems to me that since PalDebugBreak is now a preprocessor macro, assembly references to that symbol are now dangling. If you want I can prepare a PR that re-adds this symbol in an assembly file for assembler references, yet keep it as a macro for the C++ references.
I also noticed that the Unix version of PalDebugBreak is (possibly) incorrectly defined on Unix. The GCC-compatible builtin equivalent of __debugbreak() is __builtin_trap(). Should I correct this as well?
I do not see any references to PalDebugBreak in the assembly code. The assembly code is referencing RhDebugBreak that is C function. Maybe the assembly code is not getting rebuilt? I have noticed that the incremental build does not always work well for assembly code.
The GCC-compatible builtin equivalent of __debugbreak() is __builtin_trap() . Should I correct this as well?
@jkotas Yeah, the assembler objects were out-of-date. Blowing away the bin\obj\Native directory to force a full rebuild fixed the build; no new functions are required. I will prepare a PR re __builtin_trap.
Activity
wjk commentedon Jul 28, 2016
Correction: I will put this symbol in a C++ file, so I can take advantage of the
__debugbreak()MSVC intrinsic.wjk commentedon Jul 28, 2016
I also noticed that the Unix version of
PalDebugBreakis (possibly) incorrectly defined on Unix. The GCC-compatible builtin equivalent of__debugbreak()is__builtin_trap(). Should I correct this as well?jkotas commentedon Jul 28, 2016
I do not see any references to
PalDebugBreakin the assembly code. The assembly code is referencingRhDebugBreakthat is C function. Maybe the assembly code is not getting rebuilt? I have noticed that the incremental build does not always work well for assembly code.This would be great.
wjk commentedon Jul 28, 2016
@jkotas Yeah, the assembler objects were out-of-date. Blowing away the
bin\obj\Nativedirectory to force a full rebuild fixed the build; no new functions are required. I will prepare a PR re__builtin_trap.