summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.hp/gdb.base-hp/hwwatchbus.c
blob: 833d027fc8712329e3b7b568d6870968ea47ce13 (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;

int main()
{
  *bogus_p = 0xdeadbeef;
}