mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-14 07:38:41 +00:00
37 lines
381 B
C
37 lines
381 B
C
#include <stdio.h>
|
|
/* Test "return" command. */
|
|
|
|
void func1 ()
|
|
{
|
|
printf("in func1\n");
|
|
}
|
|
|
|
int
|
|
func2 ()
|
|
{
|
|
return -5;
|
|
}
|
|
|
|
double
|
|
func3 ()
|
|
{
|
|
return -5.0;
|
|
}
|
|
|
|
int tmp2;
|
|
double tmp3;
|
|
|
|
int main ()
|
|
{
|
|
#ifdef usestubs
|
|
set_debug_traps();
|
|
breakpoint();
|
|
#endif
|
|
func1 ();
|
|
printf("in main after func1\n");
|
|
tmp2 = func2 ();
|
|
tmp3 = func3 ();
|
|
printf("exiting\n");
|
|
return 0;
|
|
}
|