Implement pahole-like 'ptype /o' option
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / jump.c
CommitLineData
c906108c
SS
1/* This program is used to test the "jump" command. There's nothing
2 particularly deep about the functionality nor names in here.
3 */
4
085dd6e6 5static int square (int x)
c906108c 6{
78f98cca 7 return x*x; /* out-of-func */
c906108c
SS
8}
9
10
085dd6e6 11int main ()
c906108c
SS
12{
13 int i = 99;
14
15 i++;
78f98cca
AA
16 i = square (i); /* bp-on-call */
17 i--; /* bp-on-non-call */
085dd6e6 18 return 0;
c906108c 19}
This page took 1.887064 seconds and 4 git commands to generate.