Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

PalDebugBreak symbol not found #1593

Closed
Closed

Description

@wjk

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.

Activity

  1. wjk commented on Jul 28, 2016

    @wjk
    ContributorAuthor

    Correction: I will put this symbol in a C++ file, so I can take advantage of the __debugbreak() MSVC intrinsic.

  2. wjk commented on Jul 28, 2016

    @wjk
    ContributorAuthor

    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?

  3. jkotas commented on Jul 28, 2016

    @jkotas
    Member

    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?

    This would be great.

  4. wjk commented on Jul 28, 2016

    @wjk
    ContributorAuthor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions