Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

asm("int3"); /*trap*/ query

<< < (2/2)

Wkerry:
Thanks.

reckless:

--- Code: ---#if defined(__i386__) || defined(__x86_64__)
  __asm__ __volatile__("int {$}3":);
#elif defined(__arm__)
  __asm__ __volatile__("udf #0xfe");
#elif defined(__aarch64__)
  __asm__ __volatile__("brk #0xf000");
#else
  __asm__ __volatile__("unimplemented");
#endif
--- End code ---

this should cover it if you need it again.

Navigation

[0] Message Index

[*] Previous page

Go to full version