Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler-rt] Add DumpAllRegisters impl #99049

Merged
merged 5 commits into from
Jul 18, 2024

Commits on Jul 16, 2024

  1. [compiler-rt] Add DumpAllRegisters impl

    - Add implementation for x86_64 and linux
    - Add test
    
    The output is like
    `
    ==XXYYZZ==Register values:
    rax = 0x...  rbx = 0x...  rcx = 0x...  rdx = 0x...
    rdi = 0x...  rsi = 0x...  rbp = 0x...  rsp = 0x...
     r8 = 0x...   r9 = 0x...  r10 = 0x...  r11 = 0x...
    r12 = 0x...  r13 = 0x...  r14 = 0x...  r15 = 0x...
    `
    chestnykh committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    66b8337 View commit details
    Browse the repository at this point in the history
  2. [compiler-rt] Suppress compiler warnings

    Fox example gcc warns about `RegNumToRegName` is unused
    and about `ucontext` is unused
    chestnykh committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e3b0367 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. [compiler-rt] Add DumpAllRegisters impl for i386

    - Restore dump_registers.cpp test in Posix/ dir
    - Add linux-specifix tests inside Linux/ directory
    Mac uses single dump_registers.cpp test inside Darwin/ directory
    though checks in this test are partially 'restricted'
    For linux we provide one test per each supported architecture with
    checks for each part of `DumpAllRegisters` output
    chestnykh committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    9da8703 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8c0bdc2 View commit details
    Browse the repository at this point in the history
  3. Remove ALWAYS_INLINE

    vitalybuka authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    40acbfc View commit details
    Browse the repository at this point in the history