diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 2000-11-06 20:38:02 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 2000-11-06 20:38:02 +0000 |
commit | c7db355bcdf4f72eb71aea0c32506e163b0c4613 (patch) | |
tree | b663ea883637ac6101db3e34bf2e8c194d0a342b /gdb/testsuite/gdb.base/callfuncs.c | |
parent | cf055d540cdf37fb33e63e20c692d56132f4d983 (diff) | |
download | gdb-c7db355bcdf4f72eb71aea0c32506e163b0c4613.zip gdb-c7db355bcdf4f72eb71aea0c32506e163b0c4613.tar.gz gdb-c7db355bcdf4f72eb71aea0c32506e163b0c4613.tar.bz2 |
* gdb.base/callfuncs.c (main): Moved to end of file, call
t_double_values to initialize the FPU before inferior calls are made.
* gdb.base/callfuncs.exp: Test for register preservation after calling
inferior functions. Add tests for continuining, finishing and
returning from a stop in a call dummy.
Diffstat (limited to 'gdb/testsuite/gdb.base/callfuncs.c')
-rw-r--r-- | gdb/testsuite/gdb.base/callfuncs.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/gdb/testsuite/gdb.base/callfuncs.c b/gdb/testsuite/gdb.base/callfuncs.c index ecf9026..f53bd31 100644 --- a/gdb/testsuite/gdb.base/callfuncs.c +++ b/gdb/testsuite/gdb.base/callfuncs.c @@ -172,21 +172,6 @@ cmp10 (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9) (i5 == 5) && (i6 == 6) && (i7 == 7) && (i8 == 8) && (i9 == 9); } - -/* Gotta have a main to be able to generate a linked, runnable - executable, and also provide a useful place to set a breakpoint. */ -extern void * malloc() ; -int main () -{ -#ifdef usestubs - set_debug_traps(); - breakpoint(); -#endif - malloc(1); - t_structs_c(struct_val1); - return 0 ; -} - /* Functions that expect specific values to be passed and return either 0 or 1, depending upon whether the values were passed incorrectly or correctly, respectively. */ @@ -357,3 +342,19 @@ int a, b; { return ((*func_arg1)(a, b)); } + + +/* Gotta have a main to be able to generate a linked, runnable + executable, and also provide a useful place to set a breakpoint. */ +extern void * malloc() ; +int main () +{ +#ifdef usestubs + set_debug_traps(); + breakpoint(); +#endif + malloc(1); + t_double_values(double_val1, double_val2); + t_structs_c(struct_val1); + return 0 ; +} |