Skip to content

Instantly share code, notes, and snippets.

@ice799
Created October 27, 2009 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ice799/219405 to your computer and use it in GitHub Desktop.
Save ice799/219405 to your computer and use it in GitHub Desktop.
/*
* is this cool enough that it warrants a blog post?
*
* trigger breakpoint in GDB, from code.
*/
#include <stdio.h>
int main(int argc, char *argv[]) {
if (argc > 3)
asm("int $0x3\n");
else
printf("hi\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment