mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
gdb/testsuite/
* gdb.mi/mi-catch-load.c: Remove the include of "dlfcn.h". [__WIN32__]: Include "windows.h" and define macro 'dlopen' and 'dlclose'. [!__WIN32__]: Include "dlfcn.h". * gdb.mi/mi-catch-load.exp: Set up kfail.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2013-10-11 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.mi/mi-catch-load.c: Remove the include of "dlfcn.h".
|
||||||
|
[__WIN32__]: Include "windows.h" and define macro 'dlopen'
|
||||||
|
and 'dlclose'.
|
||||||
|
[!__WIN32__]: Include "dlfcn.h".
|
||||||
|
* gdb.mi/mi-catch-load.exp: Set up kfail.
|
||||||
|
|
||||||
2013-10-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
2013-10-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* lib/gdb.exp (gdb_core_cmd): Replace fixed string "re-load
|
* lib/gdb.exp (gdb_core_cmd): Replace fixed string "re-load
|
||||||
|
@ -15,9 +15,16 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef __WIN32__
|
||||||
|
#include <windows.h>
|
||||||
|
#define dlopen(name, mode) LoadLibrary (TEXT (name))
|
||||||
|
#define dlclose(handle) FreeLibrary (handle)
|
||||||
|
#else
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
char *libname = "mi-catch-load-so.so";
|
char *libname = "mi-catch-load-so.so";
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -58,6 +58,7 @@ gdb_expect {
|
|||||||
pass "catch-load: solib-event stop"
|
pass "catch-load: solib-event stop"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {
|
-re ".*$mi_gdb_prompt$" {
|
||||||
|
setup_kfail mi/15945 *-*-*mingw*
|
||||||
fail "catch-load: solib-event stop"
|
fail "catch-load: solib-event stop"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
@ -85,6 +86,7 @@ gdb_expect {
|
|||||||
pass "catch-unload: solib-event stop"
|
pass "catch-unload: solib-event stop"
|
||||||
}
|
}
|
||||||
-re ".*$mi_gdb_prompt$" {
|
-re ".*$mi_gdb_prompt$" {
|
||||||
|
setup_kfail mi/15945 *-*-*mingw*
|
||||||
fail "catch-unload: solib-event stop"
|
fail "catch-unload: solib-event stop"
|
||||||
}
|
}
|
||||||
timeout {
|
timeout {
|
||||||
|
Reference in New Issue
Block a user