summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.hp/hwwatchbus.c
blob: 7a02c9b44981318d1b40bd523f1fd0bd7913967c (plain)
1
2
3
4
5
6
7
8
9
/* This program raises a SIGBUS signal on HP-UX when the
   pointer "bogus_p" is dereferenced.
   */
int *  bogus_p = (int *)3;

main()
{
  *bogus_p = 0xdeadbeef;
}