VirtualBox

Changeset 100106 in vbox


Ignore:
Timestamp:
Jun 7, 2023 6:31:59 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157799
Message:

include/iprt/cdefs.h: Use brk #0xf000 for RT_BREAKPOINT() instead of brk #0x1 on ARM. lldb will detect this and set the PC to after the brk instruction allowing the thread to continue execution instead of looping endlessly on the brk instruction. Helpful for continuing after assertions happening while running under lldb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r99906 r100106  
    40184018#  define RT_BREAKPOINT()       __asm__ __volatile__("unimp 0\n\t")     /** @todo Sparc: this is just a wild guess (same as Sparc64, just different name). */
    40194019# elif defined(RT_ARCH_ARM32) || defined(RT_ARCH_ARM64)
    4020 #  define RT_BREAKPOINT()       __asm__ __volatile__("brk #0x1\n\t")
     4020#  define RT_BREAKPOINT()       __asm__ __volatile__("brk #0xf000\n\t")
    40214021# endif
    40224022#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette