From ba49f2040693f59e8720ec2ed2db335b4c4e4152 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 8 Jan 1999 23:28:15 +0000 Subject: [PATCH] new files; part of HP merge. --- gdb/testsuite/ChangeLog | 23 +++++++++++++++++++ gdb/testsuite/gdb.base/.Sanitize | 1 + gdb/testsuite/gdb.base/so-impl-ld.c | 18 +++++++++++++++ gdb/testsuite/gdb.base/so-indr-cl.c | 23 +++++++++++++++++++ .../{whatis-expr.exp => whatis-exp.exp} | 0 5 files changed, 65 insertions(+) create mode 100644 gdb/testsuite/gdb.base/so-impl-ld.c create mode 100644 gdb/testsuite/gdb.base/so-indr-cl.c rename gdb/testsuite/gdb.base/{whatis-expr.exp => whatis-exp.exp} (100%) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index de6d0d551a..bbcf18f7d7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,26 @@ +Wed Jan 6 18:41:15 1999 David Taylor + + The following files are part of the HP merge; some had longer + names at HP, but have been renamed to be no more than 14 + characters in length. + + * gdb.base/ss.h: new file. + * gdb.base/call-ar-st.c: new file. + * gdb.base/call-ar-st.exp: new file. + * gdb.base/call-rt-st.c: new file. + * gdb.base/call-rt-st-exp: new file. + * gdb.base/call-strs.exp: new file. + * gdb.base/ena-dis-br.exp: new file. + * gdb.base/environment.exp: new file. + * gdb.base/sect-cmd.exp: new file. + * gdb.base/shlib-cl2.exp: new file. + * gdb.base/so-impl-ld.c: new file. + * gdb.base/so-impl-ld.exp: new file. + * gdb.base/so-indr-cl.c: new file. + * gdb.base/so-indr-cl.exp: new file. + * gdb.base/volatile.exp: new file. + * gdb.base/whatis-exp.exp: new file. + Wed Jan 6 13:50:57 1999 Stan Shebs * gdb.base/default.exp: Reflect wording change in remote.c. diff --git a/gdb/testsuite/gdb.base/.Sanitize b/gdb/testsuite/gdb.base/.Sanitize index 5feca2137c..a516963a14 100644 --- a/gdb/testsuite/gdb.base/.Sanitize +++ b/gdb/testsuite/gdb.base/.Sanitize @@ -159,6 +159,7 @@ solib_implicitly_loaded.c solib_indirect_call.c sparc-aout.u sparc-elf.u +ss.h step-test.c structs2.c structs2.exp diff --git a/gdb/testsuite/gdb.base/so-impl-ld.c b/gdb/testsuite/gdb.base/so-impl-ld.c new file mode 100644 index 0000000000..a8fa18949b --- /dev/null +++ b/gdb/testsuite/gdb.base/so-impl-ld.c @@ -0,0 +1,18 @@ +/* This program is linked against SOM shared libraries, which the loader + automatically loads along with the program itself). + */ + +#include + +extern int solib_main (int); + +main () +{ + int result; + + /* Call a shlib function. */ + result = solib_main (100); + + /* Call it again. */ + result = solib_main (result); +} diff --git a/gdb/testsuite/gdb.base/so-indr-cl.c b/gdb/testsuite/gdb.base/so-indr-cl.c new file mode 100644 index 0000000000..dc29badcbd --- /dev/null +++ b/gdb/testsuite/gdb.base/so-indr-cl.c @@ -0,0 +1,23 @@ +/* This program is linked against SOM shared libraries, which the loader + automatically loads along with the program itself). + */ + +#include + +extern int solib_main (int); + +static int +solib_wrapper (function) + int (*function)(int); +{ + return (*function)(100); +} + + +main () +{ + int result; + + /* This is an indirect call to solib_main. */ + result = solib_wrapper (solib_main); +} diff --git a/gdb/testsuite/gdb.base/whatis-expr.exp b/gdb/testsuite/gdb.base/whatis-exp.exp similarity index 100% rename from gdb/testsuite/gdb.base/whatis-expr.exp rename to gdb/testsuite/gdb.base/whatis-exp.exp