Initial creation of sourceware repository
This commit is contained in:
parent
cd946cff9e
commit
c906108c21
2470 changed files with 976797 additions and 0 deletions
35
gdb/testsuite/gdb.base/mips_pro.c
Normal file
35
gdb/testsuite/gdb.base/mips_pro.c
Normal file
|
@ -0,0 +1,35 @@
|
|||
/* Tests regarding examination of prologues. */
|
||||
|
||||
int
|
||||
inner (z)
|
||||
int z;
|
||||
{
|
||||
return 2 * z;
|
||||
}
|
||||
|
||||
int
|
||||
middle (x)
|
||||
int x;
|
||||
{
|
||||
if (x == 0)
|
||||
return inner (5);
|
||||
else
|
||||
return inner (6);
|
||||
}
|
||||
|
||||
int
|
||||
top (y)
|
||||
int y;
|
||||
{
|
||||
return middle (y + 1);
|
||||
}
|
||||
|
||||
int
|
||||
main (argc, argv)
|
||||
{
|
||||
#ifdef usestubs
|
||||
set_debug_traps();
|
||||
breakpoint();
|
||||
#endif
|
||||
return top (-1) + top (1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue