gdb-best-friend/examples/corefile/1.c
Sergio Durigan Junior dd97dffcfb Adding slides in en_US
This commit adds the slides in en_US, and also the examples.
2014-10-16 18:47:50 -04:00

28 lines
229 B
C

static void foo_segv (void);
static void
bar (void)
{
foo_segv ();
}
static void
foo_segv (void)
{
int *x = 0;
*x = 5;
}
static void
baz (void)
{
bar ();
}
int
main (int argc, char *argv[])
{
baz ();
return 0;
}