VirtualBox

Changeset 1619 in kBuild


Ignore:
Timestamp:
May 12, 2008 7:34:17 PM (17 years ago)
Author:
bird
Message:

$(breakpoint ) for debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/kmk/function.c

    r1615 r1619  
    38183818#endif  /* CONFIG_WITH_COMMANDS_FUNC */
    38193819
     3820#ifdef KMK
     3821/* Useful when debugging kmk and/or makefiles. */
     3822char *
     3823func_breakpoint (char *o, char **argv, const char *funcname)
     3824{
     3825#if defined(__i386__) || defined(__x86__) || defined(__X86__) || defined(_M_IX86) || defined(__i386) \
     3826 || defined(__amd64__) || defined(__x86_64__) || defined(__AMD64__) || defined(_M_X64) || defined(__amd64)
     3827  __asm__ __volatile__ ("int3\n\t");
     3828#else
     3829  char *p = (char *)0;
     3830  *p = '\0';
     3831#endif
     3832  return o;
     3833}
     3834#endif /* KMK */
     3835
     3836
    38203837/* Lookup table for builtin functions.
    38213838
     
    39543971  { STRING_SIZE_TUPLE("kb-src-one"),    0,  1,  0,  func_kbuild_source_one},
    39553972#endif
     3973#ifdef KMK
     3974  { STRING_SIZE_TUPLE("breakpoint"),    0,  0,  0,  func_breakpoint},
     3975#endif
    39563976};
    39573977
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