GNU Binutils with patches for OS216
Revision | 380f081b1e41c0cb0f517022150698c4cdb0a4a6 (tree) |
---|---|
Time | 2005-11-17 15:22:44 |
Author | Mark Mitchell <mark@code...> |
Commiter | Mark Mitchell |
* gdb/remote-sim.c (gdbsim_wait): Don't use target_signal_to_host
or target_signal_from_host.
* sim/arm/wrapper.c (gdb/signals.h): Include it.
(SIGTRAP): Don't define it.
(SIGBUS): Likewise.
(sim_stop_reason): Use TARGET_SIGNAL_*.
* sim/common/sim-reason.c (sim_stop_reason): Use
sim_signal_to_target, not sim_signal_to_host.
* sim/common/sim-signal.c (sim_signal_to_host): Fix typo.
(sim_signal_to_target): New function.
* sim/common/sim-signal.h: Declare it.
* sim/d10v/interp.c (gdb/signals.h): Include it.
(sim_stop_reason): Use TARGET_SIGNAL_*.
* sim/erc32/interf.c: (gdb/signals.h): Include it.
(sim_stop_reason): Use TARGET_SIGNAL_*.
* sim/ppc/sim_calls.c (gdb/signals.h): Include it.
(sim_stop_reason): Use TARGET_SIGNAL_*.
@@ -0,0 +1,31 @@ | ||
1 | +2005-11-16 Mark Mitchell <mark@codesourcery.com> | |
2 | + | |
3 | + * gdb/remote-sim.c (gdbsim_wait): Don't use target_signal_to_host | |
4 | + or target_signal_from_host. | |
5 | + * sim/arm/wrapper.c (gdb/signals.h): Include it. | |
6 | + (SIGTRAP): Don't define it. | |
7 | + (SIGBUS): Likewise. | |
8 | + (sim_stop_reason): Use TARGET_SIGNAL_*. | |
9 | + * sim/common/sim-reason.c (sim_stop_reason): Use | |
10 | + sim_signal_to_target, not sim_signal_to_host. | |
11 | + * sim/common/sim-signal.c (sim_signal_to_host): Fix typo. | |
12 | + (sim_signal_to_target): New function. | |
13 | + * sim/common/sim-signal.h: Declare it. | |
14 | + * sim/d10v/interp.c (gdb/signals.h): Include it. | |
15 | + (sim_stop_reason): Use TARGET_SIGNAL_*. | |
16 | + * sim/erc32/interf.c: (gdb/signals.h): Include it. | |
17 | + (sim_stop_reason): Use TARGET_SIGNAL_*. | |
18 | + * sim/ppc/sim_calls.c (gdb/signals.h): Include it. | |
19 | + (sim_stop_reason): Use TARGET_SIGNAL_*. | |
20 | + | |
21 | +2005-11-16 Mark Mitchell <mark@codesourcery.com> | |
22 | + | |
23 | + * sim/ppc/configure.ac (USE_WIN32API): Define it. | |
24 | + (sys/errno.h): Add it to AC_CHECK_HEADERS list. | |
25 | + * sim/ppc/configure.in: Regenerate. | |
26 | + * sim/ppc/config.in: Likewise. | |
27 | + * sim/ppc/emul_netbsd.c (sys/errno.h): Guard with HAVE_SYS_ERRNO_H. | |
28 | + (write_timezone): Guard with HAVE_GETTIMEOFDAY. | |
29 | + * sim/ppc/emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir. | |
30 | + | |
31 | + |
@@ -674,8 +674,7 @@ gdbsim_wait (ptid_t ptid, struct target_waitstatus *status) | ||
674 | 674 | #else |
675 | 675 | prev_sigint = signal (SIGINT, gdbsim_cntrl_c); |
676 | 676 | #endif |
677 | - sim_resume (gdbsim_desc, resume_step, | |
678 | - target_signal_to_host (resume_siggnal)); | |
677 | + sim_resume (gdbsim_desc, resume_step, resume_siggnal); | |
679 | 678 | signal (SIGINT, prev_sigint); |
680 | 679 | resume_step = 0; |
681 | 680 |
@@ -690,24 +689,20 @@ gdbsim_wait (ptid_t ptid, struct target_waitstatus *status) | ||
690 | 689 | case sim_stopped: |
691 | 690 | switch (sigrc) |
692 | 691 | { |
693 | - case SIGABRT: | |
692 | + case TARGET_SIGNAL_ABRT: | |
694 | 693 | quit (); |
695 | 694 | break; |
696 | - case SIGINT: | |
697 | - case SIGTRAP: | |
695 | + case TARGET_SIGNAL_INT: | |
696 | + case TARGET_SIGNAL_TRAP: | |
698 | 697 | default: |
699 | 698 | status->kind = TARGET_WAITKIND_STOPPED; |
700 | - /* The signal in sigrc is a host signal. That probably | |
701 | - should be fixed. */ | |
702 | - status->value.sig = target_signal_from_host (sigrc); | |
699 | + status->value.sig = sigrc; | |
703 | 700 | break; |
704 | 701 | } |
705 | 702 | break; |
706 | 703 | case sim_signalled: |
707 | 704 | status->kind = TARGET_WAITKIND_SIGNALLED; |
708 | - /* The signal in sigrc is a host signal. That probably | |
709 | - should be fixed. */ | |
710 | - status->value.sig = target_signal_from_host (sigrc); | |
705 | + status->value.sig = sigrc; | |
711 | 706 | break; |
712 | 707 | case sim_running: |
713 | 708 | case sim_polling: |
@@ -37,14 +37,7 @@ | ||
37 | 37 | #include "sim-utils.h" |
38 | 38 | #include "run-sim.h" |
39 | 39 | #include "gdb/sim-arm.h" |
40 | - | |
41 | -#ifndef SIGTRAP | |
42 | -#define SIGTRAP 5 | |
43 | -#endif | |
44 | - | |
45 | -#ifndef SIGBUS | |
46 | -#define SIGBUS SIGSEGV | |
47 | -#endif | |
40 | +#include "gdb/signals.h" | |
48 | 41 | |
49 | 42 | host_callback *sim_callback; |
50 | 43 |
@@ -910,7 +903,7 @@ sim_stop_reason (sd, reason, sigrc) | ||
910 | 903 | if (stop_simulator) |
911 | 904 | { |
912 | 905 | *reason = sim_stopped; |
913 | - *sigrc = SIGINT; | |
906 | + *sigrc = TARGET_SIGNAL_INT; | |
914 | 907 | } |
915 | 908 | else if (state->EndCondition == 0) |
916 | 909 | { |
@@ -921,10 +914,10 @@ sim_stop_reason (sd, reason, sigrc) | ||
921 | 914 | { |
922 | 915 | *reason = sim_stopped; |
923 | 916 | if (state->EndCondition == RDIError_BreakpointReached) |
924 | - *sigrc = SIGTRAP; | |
917 | + *sigrc = TARGET_SIGNAL_TRAP; | |
925 | 918 | else if ( state->EndCondition == RDIError_DataAbort |
926 | 919 | || state->EndCondition == RDIError_AddressException) |
927 | - *sigrc = SIGBUS; | |
920 | + *sigrc = TARGET_SIGNAL_BUS; | |
928 | 921 | else |
929 | 922 | *sigrc = 0; |
930 | 923 | } |
@@ -35,21 +35,9 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc) | ||
35 | 35 | case sim_exited : |
36 | 36 | *sigrc = engine->sigrc; |
37 | 37 | break; |
38 | - case sim_signalled : | |
39 | - /* ??? See the comment below case `sim_signalled' in | |
40 | - gdb/remote-sim.c:gdbsim_wait. | |
41 | - ??? Consider the case of the target requesting that it | |
42 | - kill(2) itself with SIGNAL. That SIGNAL, being target | |
43 | - specific, will not correspond to either of the SIM_SIGNAL | |
44 | - enum nor the HOST_SIGNAL. A mapping from TARGET_SIGNAL to | |
45 | - HOST_SIGNAL is needed. */ | |
46 | - *sigrc = sim_signal_to_host (sd, engine->sigrc); | |
47 | - break; | |
48 | 38 | case sim_stopped : |
49 | - /* The gdb/simulator interface calls for us to return the host | |
50 | - version of the signal which gdb then converts into the | |
51 | - target's version. This is obviously a bit clumsy. */ | |
52 | - *sigrc = sim_signal_to_host (sd, engine->sigrc); | |
39 | + case sim_signalled : | |
40 | + *sigrc = sim_signal_to_target (sd, engine->sigrc); | |
53 | 41 | break; |
54 | 42 | default : |
55 | 43 | abort (); |
@@ -77,7 +77,7 @@ sim_signal_to_host (SIM_DESC sd, SIM_SIGNAL sig) | ||
77 | 77 | break; |
78 | 78 | |
79 | 79 | case SIM_SIGFPE: |
80 | -#ifdef SIGXCPU | |
80 | +#ifdef SIGFPE | |
81 | 81 | return SIGFPE; |
82 | 82 | #endif |
83 | 83 | break; |
@@ -94,3 +94,42 @@ sim_signal_to_host (SIM_DESC sd, SIM_SIGNAL sig) | ||
94 | 94 | return 1; |
95 | 95 | #endif |
96 | 96 | } |
97 | + | |
98 | +int | |
99 | +sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig) | |
100 | +{ | |
101 | + switch (sig) | |
102 | + { | |
103 | + case SIM_SIGINT : | |
104 | + return TARGET_SIGNAL_INT; | |
105 | + | |
106 | + case SIM_SIGABRT : | |
107 | + return TARGET_SIGNAL_ABRT; | |
108 | + | |
109 | + case SIM_SIGILL : | |
110 | + return TARGET_SIGNAL_ILL; | |
111 | + | |
112 | + case SIM_SIGTRAP : | |
113 | + return TARGET_SIGNAL_TRAP; | |
114 | + | |
115 | + case SIM_SIGBUS : | |
116 | + return TARGET_SIGNAL_BUS; | |
117 | + | |
118 | + case SIM_SIGSEGV | |
119 | + return TARGET_SIGNAL_SEGV; | |
120 | + | |
121 | + case SIM_SIGXCPU : | |
122 | + return TARGET_SIGNAL_XCPU; | |
123 | + | |
124 | + case SIM_SIGFPE: | |
125 | + return TARGET_SIGNAL_FPE; | |
126 | + break; | |
127 | + | |
128 | + case SIM_SIGNONE: | |
129 | + return TARGET_SIGNAL_0; | |
130 | + break; | |
131 | + } | |
132 | + | |
133 | + sim_io_eprintf (sd, "sim_signal_to_host: unknown signal: %d\n", sig); | |
134 | + return TARGET_SIGNAL_HUP; | |
135 | +} |
@@ -21,6 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc., | ||
21 | 21 | #ifndef SIM_SIGNAL_H |
22 | 22 | #define SIM_SIGNAL_H |
23 | 23 | |
24 | +#include "gdb/signals.h" | |
25 | + | |
24 | 26 | /* Signals we use. |
25 | 27 | This provides a layer between our values and host/target values. */ |
26 | 28 |
@@ -45,5 +47,6 @@ typedef enum { | ||
45 | 47 | } SIM_SIGNAL; |
46 | 48 | |
47 | 49 | int sim_signal_to_host (SIM_DESC sd, SIM_SIGNAL); |
50 | +enum target_signal sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL); | |
48 | 51 | |
49 | 52 | #endif /* SIM_SIGNAL_H */ |
@@ -6,6 +6,7 @@ | ||
6 | 6 | |
7 | 7 | #include "d10v_sim.h" |
8 | 8 | #include "gdb/sim-d10v.h" |
9 | +#include "gdb/signals.h" | |
9 | 10 | |
10 | 11 | enum _leftright { LEFT_FIRST, RIGHT_FIRST }; |
11 | 12 |
@@ -1277,17 +1278,13 @@ sim_stop_reason (sd, reason, sigrc) | ||
1277 | 1278 | |
1278 | 1279 | case SIG_D10V_BUS: |
1279 | 1280 | *reason = sim_stopped; |
1280 | -#ifdef SIGBUS | |
1281 | - *sigrc = SIGBUS; | |
1282 | -#else | |
1283 | - *sigrc = SIGSEGV; | |
1284 | -#endif | |
1281 | + *reson = TARGET_SIGNAL_BUS; | |
1285 | 1282 | break; |
1286 | 1283 | |
1287 | 1284 | default: /* some signal */ |
1288 | 1285 | *reason = sim_stopped; |
1289 | 1286 | if (stop_simulator && !State.exception) |
1290 | - *sigrc = SIGINT; | |
1287 | + *sigrc = TARGET_SIGNAL_INT; | |
1291 | 1288 | else |
1292 | 1289 | *sigrc = State.exception; |
1293 | 1290 | break; |
@@ -33,6 +33,7 @@ | ||
33 | 33 | #include "sim-config.h" |
34 | 34 | |
35 | 35 | #include "gdb/remote-sim.h" |
36 | +#include "gdb/signals.h" | |
36 | 37 | |
37 | 38 | #define PSR_CWP 0x7 |
38 | 39 |
@@ -386,16 +387,13 @@ sim_stop_reason(sd, reason, sigrc) | ||
386 | 387 | switch (simstat) { |
387 | 388 | case CTRL_C: |
388 | 389 | *reason = sim_stopped; |
389 | - *sigrc = SIGINT; | |
390 | + *sigrc = TARGET_SIGNAL_INT; | |
390 | 391 | break; |
391 | 392 | case OK: |
392 | 393 | case TIME_OUT: |
393 | 394 | case BPT_HIT: |
394 | 395 | *reason = sim_stopped; |
395 | -#ifdef _WIN32 | |
396 | -#define SIGTRAP 5 | |
397 | -#endif | |
398 | - *sigrc = SIGTRAP; | |
396 | + *sigrc = TARGET_SIGNAL_TRAP; | |
399 | 397 | break; |
400 | 398 | case ERROR: |
401 | 399 | *sigrc = 0; |
@@ -267,6 +267,9 @@ | ||
267 | 267 | */ |
268 | 268 | #undef HAVE_SYS_DIR_H |
269 | 269 | |
270 | +/* Define to 1 if you have the <sys/errno.h> header file. */ | |
271 | +#undef HAVE_SYS_ERRNO_H | |
272 | + | |
270 | 273 | /* Define to 1 if you have the <sys/ioctl.h> header file. */ |
271 | 274 | #undef HAVE_SYS_IOCTL_H |
272 | 275 |
@@ -398,6 +401,11 @@ | ||
398 | 401 | /* Define to 1 if your <sys/time.h> declares `struct tm'. */ |
399 | 402 | #undef TM_IN_SYS_TIME |
400 | 403 | |
404 | +/* Define if we should use the Windows API, instead of the POSIX API. On | |
405 | + Windows, we use the Windows API when building for MinGW, but the POSIX API | |
406 | + when building for Cygwin. */ | |
407 | +#undef USE_WIN32API | |
408 | + | |
401 | 409 | /* Define to 1 if your processor stores words with the most significant byte |
402 | 410 | first (like Motorola and SPARC, unlike Intel and VAX). */ |
403 | 411 | #undef WORDS_BIGENDIAN |
@@ -992,7 +992,7 @@ esac | ||
992 | 992 | else |
993 | 993 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
994 | 994 | fi |
995 | - cd "$ac_popdir" | |
995 | + cd $ac_popdir | |
996 | 996 | done |
997 | 997 | fi |
998 | 998 |
@@ -2012,7 +2012,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2012 | 2012 | cat conftest.err >&5 |
2013 | 2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2014 | 2014 | (exit $ac_status); } && |
2015 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2015 | + { ac_try='test -z "$ac_c_werror_flag" | |
2016 | + || test ! -s conftest.err' | |
2016 | 2017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2017 | 2018 | (eval $ac_try) 2>&5 |
2018 | 2019 | ac_status=$? |
@@ -2070,7 +2071,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2070 | 2071 | cat conftest.err >&5 |
2071 | 2072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2072 | 2073 | (exit $ac_status); } && |
2073 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2074 | + { ac_try='test -z "$ac_c_werror_flag" | |
2075 | + || test ! -s conftest.err' | |
2074 | 2076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2075 | 2077 | (eval $ac_try) 2>&5 |
2076 | 2078 | ac_status=$? |
@@ -2186,7 +2188,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2186 | 2188 | cat conftest.err >&5 |
2187 | 2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2188 | 2190 | (exit $ac_status); } && |
2189 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2191 | + { ac_try='test -z "$ac_c_werror_flag" | |
2192 | + || test ! -s conftest.err' | |
2190 | 2193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2191 | 2194 | (eval $ac_try) 2>&5 |
2192 | 2195 | ac_status=$? |
@@ -2240,7 +2243,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2240 | 2243 | cat conftest.err >&5 |
2241 | 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2242 | 2245 | (exit $ac_status); } && |
2243 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2246 | + { ac_try='test -z "$ac_c_werror_flag" | |
2247 | + || test ! -s conftest.err' | |
2244 | 2248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2245 | 2249 | (eval $ac_try) 2>&5 |
2246 | 2250 | ac_status=$? |
@@ -2285,7 +2289,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2285 | 2289 | cat conftest.err >&5 |
2286 | 2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2287 | 2291 | (exit $ac_status); } && |
2288 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2292 | + { ac_try='test -z "$ac_c_werror_flag" | |
2293 | + || test ! -s conftest.err' | |
2289 | 2294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2290 | 2295 | (eval $ac_try) 2>&5 |
2291 | 2296 | ac_status=$? |
@@ -2329,7 +2334,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2329 | 2334 | cat conftest.err >&5 |
2330 | 2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2331 | 2336 | (exit $ac_status); } && |
2332 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2337 | + { ac_try='test -z "$ac_c_werror_flag" | |
2338 | + || test ! -s conftest.err' | |
2333 | 2339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2334 | 2340 | (eval $ac_try) 2>&5 |
2335 | 2341 | ac_status=$? |
@@ -2525,7 +2531,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2525 | 2531 | cat conftest.err >&5 |
2526 | 2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2527 | 2533 | (exit $ac_status); } && |
2528 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2534 | + { ac_try='test -z "$ac_c_werror_flag" | |
2535 | + || test ! -s conftest.err' | |
2529 | 2536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2530 | 2537 | (eval $ac_try) 2>&5 |
2531 | 2538 | ac_status=$? |
@@ -2579,7 +2586,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2579 | 2586 | cat conftest.err >&5 |
2580 | 2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2581 | 2588 | (exit $ac_status); } && |
2582 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2589 | + { ac_try='test -z "$ac_c_werror_flag" | |
2590 | + || test ! -s conftest.err' | |
2583 | 2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2584 | 2592 | (eval $ac_try) 2>&5 |
2585 | 2593 | ac_status=$? |
@@ -2894,7 +2902,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2894 | 2902 | cat conftest.err >&5 |
2895 | 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2896 | 2904 | (exit $ac_status); } && |
2897 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2905 | + { ac_try='test -z "$ac_c_werror_flag" | |
2906 | + || test ! -s conftest.err' | |
2898 | 2907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2899 | 2908 | (eval $ac_try) 2>&5 |
2900 | 2909 | ac_status=$? |
@@ -3101,7 +3110,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3101 | 3110 | cat conftest.err >&5 |
3102 | 3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3103 | 3112 | (exit $ac_status); } && |
3104 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3113 | + { ac_try='test -z "$ac_c_werror_flag" | |
3114 | + || test ! -s conftest.err' | |
3105 | 3115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3106 | 3116 | (eval $ac_try) 2>&5 |
3107 | 3117 | ac_status=$? |
@@ -3161,7 +3171,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3161 | 3171 | cat conftest.err >&5 |
3162 | 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3163 | 3173 | (exit $ac_status); } && |
3164 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3174 | + { ac_try='test -z "$ac_c_werror_flag" | |
3175 | + || test ! -s conftest.err' | |
3165 | 3176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3166 | 3177 | (eval $ac_try) 2>&5 |
3167 | 3178 | ac_status=$? |
@@ -3240,7 +3251,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3240 | 3251 | cat conftest.err >&5 |
3241 | 3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3242 | 3253 | (exit $ac_status); } && |
3243 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3254 | + { ac_try='test -z "$ac_c_werror_flag" | |
3255 | + || test ! -s conftest.err' | |
3244 | 3256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3245 | 3257 | (eval $ac_try) 2>&5 |
3246 | 3258 | ac_status=$? |
@@ -3305,7 +3317,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3305 | 3317 | cat conftest.err >&5 |
3306 | 3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3307 | 3319 | (exit $ac_status); } && |
3308 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3320 | + { ac_try='test -z "$ac_c_werror_flag" | |
3321 | + || test ! -s conftest.err' | |
3309 | 3322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3310 | 3323 | (eval $ac_try) 2>&5 |
3311 | 3324 | ac_status=$? |
@@ -3370,7 +3383,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3370 | 3383 | cat conftest.err >&5 |
3371 | 3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3372 | 3385 | (exit $ac_status); } && |
3373 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3386 | + { ac_try='test -z "$ac_c_werror_flag" | |
3387 | + || test ! -s conftest.err' | |
3374 | 3388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3375 | 3389 | (eval $ac_try) 2>&5 |
3376 | 3390 | ac_status=$? |
@@ -3434,7 +3448,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3434 | 3448 | cat conftest.err >&5 |
3435 | 3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3436 | 3450 | (exit $ac_status); } && |
3437 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3451 | + { ac_try='test -z "$ac_c_werror_flag" | |
3452 | + || test ! -s conftest.err' | |
3438 | 3453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3439 | 3454 | (eval $ac_try) 2>&5 |
3440 | 3455 | ac_status=$? |
@@ -3515,7 +3530,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3515 | 3530 | cat conftest.err >&5 |
3516 | 3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3517 | 3532 | (exit $ac_status); } && |
3518 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3533 | + { ac_try='test -z "$ac_c_werror_flag" | |
3534 | + || test ! -s conftest.err' | |
3519 | 3535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3520 | 3536 | (eval $ac_try) 2>&5 |
3521 | 3537 | ac_status=$? |
@@ -3656,7 +3672,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3656 | 3672 | cat conftest.err >&5 |
3657 | 3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3658 | 3674 | (exit $ac_status); } && |
3659 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3675 | + { ac_try='test -z "$ac_c_werror_flag" | |
3676 | + || test ! -s conftest.err' | |
3660 | 3677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3661 | 3678 | (eval $ac_try) 2>&5 |
3662 | 3679 | ac_status=$? |
@@ -3794,7 +3811,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3794 | 3811 | cat conftest.err >&5 |
3795 | 3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3796 | 3813 | (exit $ac_status); } && |
3797 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3814 | + { ac_try='test -z "$ac_c_werror_flag" | |
3815 | + || test ! -s conftest.err' | |
3798 | 3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3799 | 3817 | (eval $ac_try) 2>&5 |
3800 | 3818 | ac_status=$? |
@@ -3978,7 +3996,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3978 | 3996 | cat conftest.err >&5 |
3979 | 3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3980 | 3998 | (exit $ac_status); } && |
3981 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3999 | + { ac_try='test -z "$ac_c_werror_flag" | |
4000 | + || test ! -s conftest.err' | |
3982 | 4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3983 | 4002 | (eval $ac_try) 2>&5 |
3984 | 4003 | ac_status=$? |
@@ -4229,7 +4248,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4229 | 4248 | cat conftest.err >&5 |
4230 | 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4231 | 4250 | (exit $ac_status); } && |
4232 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4251 | + { ac_try='test -z "$ac_c_werror_flag" | |
4252 | + || test ! -s conftest.err' | |
4233 | 4253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4234 | 4254 | (eval $ac_try) 2>&5 |
4235 | 4255 | ac_status=$? |
@@ -4423,7 +4443,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4423 | 4443 | cat conftest.err >&5 |
4424 | 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4425 | 4445 | (exit $ac_status); } && |
4426 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4446 | + { ac_try='test -z "$ac_c_werror_flag" | |
4447 | + || test ! -s conftest.err' | |
4427 | 4448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4428 | 4449 | (eval $ac_try) 2>&5 |
4429 | 4450 | ac_status=$? |
@@ -4526,7 +4547,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4526 | 4547 | cat conftest.err >&5 |
4527 | 4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4528 | 4549 | (exit $ac_status); } && |
4529 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4550 | + { ac_try='test -z "$ac_c_werror_flag" | |
4551 | + || test ! -s conftest.err' | |
4530 | 4552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4531 | 4553 | (eval $ac_try) 2>&5 |
4532 | 4554 | ac_status=$? |
@@ -4597,7 +4619,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4597 | 4619 | cat conftest.err >&5 |
4598 | 4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4599 | 4621 | (exit $ac_status); } && |
4600 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4622 | + { ac_try='test -z "$ac_c_werror_flag" | |
4623 | + || test ! -s conftest.err' | |
4601 | 4624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4602 | 4625 | (eval $ac_try) 2>&5 |
4603 | 4626 | ac_status=$? |
@@ -4694,7 +4717,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4694 | 4717 | cat conftest.err >&5 |
4695 | 4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4696 | 4719 | (exit $ac_status); } && |
4697 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4720 | + { ac_try='test -z "$ac_c_werror_flag" | |
4721 | + || test ! -s conftest.err' | |
4698 | 4722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4699 | 4723 | (eval $ac_try) 2>&5 |
4700 | 4724 | ac_status=$? |
@@ -4830,7 +4854,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4830 | 4854 | cat conftest.err >&5 |
4831 | 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4832 | 4856 | (exit $ac_status); } && |
4833 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4857 | + { ac_try='test -z "$ac_c_werror_flag" | |
4858 | + || test ! -s conftest.err' | |
4834 | 4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4835 | 4860 | (eval $ac_try) 2>&5 |
4836 | 4861 | ac_status=$? |
@@ -4894,7 +4919,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4894 | 4919 | cat conftest.err >&5 |
4895 | 4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4896 | 4921 | (exit $ac_status); } && |
4897 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4922 | + { ac_try='test -z "$ac_c_werror_flag" | |
4923 | + || test ! -s conftest.err' | |
4898 | 4924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4899 | 4925 | (eval $ac_try) 2>&5 |
4900 | 4926 | ac_status=$? |
@@ -4949,7 +4975,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4949 | 4975 | cat conftest.err >&5 |
4950 | 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4951 | 4977 | (exit $ac_status); } && |
4952 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4978 | + { ac_try='test -z "$ac_c_werror_flag" | |
4979 | + || test ! -s conftest.err' | |
4953 | 4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4954 | 4981 | (eval $ac_try) 2>&5 |
4955 | 4982 | ac_status=$? |
@@ -5089,7 +5116,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5089 | 5116 | cat conftest.err >&5 |
5090 | 5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5091 | 5118 | (exit $ac_status); } && |
5092 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5119 | + { ac_try='test -z "$ac_c_werror_flag" | |
5120 | + || test ! -s conftest.err' | |
5093 | 5121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5094 | 5122 | (eval $ac_try) 2>&5 |
5095 | 5123 | ac_status=$? |
@@ -5222,7 +5250,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5222 | 5250 | cat conftest.err >&5 |
5223 | 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5224 | 5252 | (exit $ac_status); } && |
5225 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5253 | + { ac_try='test -z "$ac_c_werror_flag" | |
5254 | + || test ! -s conftest.err' | |
5226 | 5255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5227 | 5256 | (eval $ac_try) 2>&5 |
5228 | 5257 | ac_status=$? |
@@ -5499,7 +5528,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5499 | 5528 | cat conftest.err >&5 |
5500 | 5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5501 | 5530 | (exit $ac_status); } && |
5502 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5531 | + { ac_try='test -z "$ac_c_werror_flag" | |
5532 | + || test ! -s conftest.err' | |
5503 | 5533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5504 | 5534 | (eval $ac_try) 2>&5 |
5505 | 5535 | ac_status=$? |
@@ -6005,7 +6035,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6005 | 6035 | cat conftest.err >&5 |
6006 | 6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6007 | 6037 | (exit $ac_status); } && |
6008 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6038 | + { ac_try='test -z "$ac_c_werror_flag" | |
6039 | + || test ! -s conftest.err' | |
6009 | 6040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6010 | 6041 | (eval $ac_try) 2>&5 |
6011 | 6042 | ac_status=$? |
@@ -6047,7 +6078,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6047 | 6078 | cat conftest.err >&5 |
6048 | 6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6049 | 6080 | (exit $ac_status); } && |
6050 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6081 | + { ac_try='test -z "$ac_c_werror_flag" | |
6082 | + || test ! -s conftest.err' | |
6051 | 6083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6052 | 6084 | (eval $ac_try) 2>&5 |
6053 | 6085 | ac_status=$? |
@@ -6104,7 +6136,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6104 | 6136 | cat conftest.err >&5 |
6105 | 6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6106 | 6138 | (exit $ac_status); } && |
6107 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6139 | + { ac_try='test -z "$ac_c_werror_flag" | |
6140 | + || test ! -s conftest.err' | |
6108 | 6141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6109 | 6142 | (eval $ac_try) 2>&5 |
6110 | 6143 | ac_status=$? |
@@ -6691,6 +6724,16 @@ rm conftest.sed | ||
6691 | 6724 | |
6692 | 6725 | . ${srcdir}/../../bfd/configure.host |
6693 | 6726 | |
6727 | +case ${host} in | |
6728 | + *mingw32*) | |
6729 | + | |
6730 | +cat >>confdefs.h <<\_ACEOF | |
6731 | +#define USE_WIN32API 1 | |
6732 | +_ACEOF | |
6733 | + | |
6734 | + ;; | |
6735 | +esac | |
6736 | + | |
6694 | 6737 | ac_config_headers="$ac_config_headers config.h:config.in" |
6695 | 6738 | |
6696 | 6739 |
@@ -6726,7 +6769,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6726 | 6769 | cat conftest.err >&5 |
6727 | 6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6728 | 6771 | (exit $ac_status); } && |
6729 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6772 | + { ac_try='test -z "$ac_c_werror_flag" | |
6773 | + || test ! -s conftest.err' | |
6730 | 6774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6731 | 6775 | (eval $ac_try) 2>&5 |
6732 | 6776 | ac_status=$? |
@@ -6769,7 +6813,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6769 | 6813 | cat conftest.err >&5 |
6770 | 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6771 | 6815 | (exit $ac_status); } && |
6772 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6816 | + { ac_try='test -z "$ac_c_werror_flag" | |
6817 | + || test ! -s conftest.err' | |
6773 | 6818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6774 | 6819 | (eval $ac_try) 2>&5 |
6775 | 6820 | ac_status=$? |
@@ -6839,7 +6884,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6839 | 6884 | cat conftest.err >&5 |
6840 | 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6841 | 6886 | (exit $ac_status); } && |
6842 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6887 | + { ac_try='test -z "$ac_c_werror_flag" | |
6888 | + || test ! -s conftest.err' | |
6843 | 6889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6844 | 6890 | (eval $ac_try) 2>&5 |
6845 | 6891 | ac_status=$? |
@@ -6882,7 +6928,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6882 | 6928 | cat conftest.err >&5 |
6883 | 6929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6884 | 6930 | (exit $ac_status); } && |
6885 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6931 | + { ac_try='test -z "$ac_c_werror_flag" | |
6932 | + || test ! -s conftest.err' | |
6886 | 6933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6887 | 6934 | (eval $ac_try) 2>&5 |
6888 | 6935 | ac_status=$? |
@@ -6962,7 +7009,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6962 | 7009 | cat conftest.err >&5 |
6963 | 7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6964 | 7011 | (exit $ac_status); } && |
6965 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7012 | + { ac_try='test -z "$ac_c_werror_flag" | |
7013 | + || test ! -s conftest.err' | |
6966 | 7014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6967 | 7015 | (eval $ac_try) 2>&5 |
6968 | 7016 | ac_status=$? |
@@ -7005,7 +7053,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7005 | 7053 | cat conftest.err >&5 |
7006 | 7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7007 | 7055 | (exit $ac_status); } && |
7008 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7056 | + { ac_try='test -z "$ac_c_werror_flag" | |
7057 | + || test ! -s conftest.err' | |
7009 | 7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7010 | 7059 | (eval $ac_try) 2>&5 |
7011 | 7060 | ac_status=$? |
@@ -7075,7 +7124,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7075 | 7124 | cat conftest.err >&5 |
7076 | 7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7077 | 7126 | (exit $ac_status); } && |
7078 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7127 | + { ac_try='test -z "$ac_c_werror_flag" | |
7128 | + || test ! -s conftest.err' | |
7079 | 7129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7080 | 7130 | (eval $ac_try) 2>&5 |
7081 | 7131 | ac_status=$? |
@@ -7140,7 +7190,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7140 | 7190 | cat conftest.err >&5 |
7141 | 7191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7142 | 7192 | (exit $ac_status); } && |
7143 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7193 | + { ac_try='test -z "$ac_c_werror_flag" | |
7194 | + || test ! -s conftest.err' | |
7144 | 7195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7145 | 7196 | (eval $ac_try) 2>&5 |
7146 | 7197 | ac_status=$? |
@@ -7186,7 +7237,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7186 | 7237 | cat conftest.err >&5 |
7187 | 7238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7188 | 7239 | (exit $ac_status); } && |
7189 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7240 | + { ac_try='test -z "$ac_c_werror_flag" | |
7241 | + || test ! -s conftest.err' | |
7190 | 7242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7191 | 7243 | (eval $ac_try) 2>&5 |
7192 | 7244 | ac_status=$? |
@@ -7260,7 +7312,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7260 | 7312 | cat conftest.err >&5 |
7261 | 7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7262 | 7314 | (exit $ac_status); } && |
7263 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7315 | + { ac_try='test -z "$ac_c_werror_flag" | |
7316 | + || test ! -s conftest.err' | |
7264 | 7317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7265 | 7318 | (eval $ac_try) 2>&5 |
7266 | 7319 | ac_status=$? |
@@ -7451,7 +7504,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7451 | 7504 | cat conftest.err >&5 |
7452 | 7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7453 | 7506 | (exit $ac_status); } && |
7454 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7507 | + { ac_try='test -z "$ac_c_werror_flag" | |
7508 | + || test ! -s conftest.err' | |
7455 | 7509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7456 | 7510 | (eval $ac_try) 2>&5 |
7457 | 7511 | ac_status=$? |
@@ -7516,7 +7570,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7516 | 7570 | cat conftest.err >&5 |
7517 | 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7518 | 7572 | (exit $ac_status); } && |
7519 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7573 | + { ac_try='test -z "$ac_c_werror_flag" | |
7574 | + || test ! -s conftest.err' | |
7520 | 7575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7521 | 7576 | (eval $ac_try) 2>&5 |
7522 | 7577 | ac_status=$? |
@@ -7581,7 +7636,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7581 | 7636 | cat conftest.err >&5 |
7582 | 7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7583 | 7638 | (exit $ac_status); } && |
7584 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7639 | + { ac_try='test -z "$ac_c_werror_flag" | |
7640 | + || test ! -s conftest.err' | |
7585 | 7641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7586 | 7642 | (eval $ac_try) 2>&5 |
7587 | 7643 | ac_status=$? |
@@ -7653,7 +7709,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7653 | 7709 | cat conftest.err >&5 |
7654 | 7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7655 | 7711 | (exit $ac_status); } && |
7656 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7712 | + { ac_try='test -z "$ac_c_werror_flag" | |
7713 | + || test ! -s conftest.err' | |
7657 | 7714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7658 | 7715 | (eval $ac_try) 2>&5 |
7659 | 7716 | ac_status=$? |
@@ -7714,7 +7771,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7714 | 7771 | cat conftest.err >&5 |
7715 | 7772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7716 | 7773 | (exit $ac_status); } && |
7717 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7774 | + { ac_try='test -z "$ac_c_werror_flag" | |
7775 | + || test ! -s conftest.err' | |
7718 | 7776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7719 | 7777 | (eval $ac_try) 2>&5 |
7720 | 7778 | ac_status=$? |
@@ -7904,7 +7962,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7904 | 7962 | cat conftest.err >&5 |
7905 | 7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7906 | 7964 | (exit $ac_status); } && |
7907 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7965 | + { ac_try='test -z "$ac_c_werror_flag" | |
7966 | + || test ! -s conftest.err' | |
7908 | 7967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7909 | 7968 | (eval $ac_try) 2>&5 |
7910 | 7969 | ac_status=$? |
@@ -7955,7 +8014,8 @@ done | ||
7955 | 8014 | |
7956 | 8015 | |
7957 | 8016 | |
7958 | -for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h | |
8017 | + | |
8018 | +for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h sys/errno.h | |
7959 | 8019 | do |
7960 | 8020 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7961 | 8021 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
@@ -7988,7 +8048,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7988 | 8048 | cat conftest.err >&5 |
7989 | 8049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7990 | 8050 | (exit $ac_status); } && |
7991 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8051 | + { ac_try='test -z "$ac_c_werror_flag" | |
8052 | + || test ! -s conftest.err' | |
7992 | 8053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7993 | 8054 | (eval $ac_try) 2>&5 |
7994 | 8055 | ac_status=$? |
@@ -8143,7 +8204,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8143 | 8204 | cat conftest.err >&5 |
8144 | 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8145 | 8206 | (exit $ac_status); } && |
8146 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8207 | + { ac_try='test -z "$ac_c_werror_flag" | |
8208 | + || test ! -s conftest.err' | |
8147 | 8209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8148 | 8210 | (eval $ac_try) 2>&5 |
8149 | 8211 | ac_status=$? |
@@ -8215,7 +8277,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8215 | 8277 | cat conftest.err >&5 |
8216 | 8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8217 | 8279 | (exit $ac_status); } && |
8218 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8280 | + { ac_try='test -z "$ac_c_werror_flag" | |
8281 | + || test ! -s conftest.err' | |
8219 | 8282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8220 | 8283 | (eval $ac_try) 2>&5 |
8221 | 8284 | ac_status=$? |
@@ -8269,7 +8332,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8269 | 8332 | cat conftest.err >&5 |
8270 | 8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8271 | 8334 | (exit $ac_status); } && |
8272 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8335 | + { ac_try='test -z "$ac_c_werror_flag" | |
8336 | + || test ! -s conftest.err' | |
8273 | 8337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8274 | 8338 | (eval $ac_try) 2>&5 |
8275 | 8339 | ac_status=$? |
@@ -8340,7 +8404,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8340 | 8404 | cat conftest.err >&5 |
8341 | 8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8342 | 8406 | (exit $ac_status); } && |
8343 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8407 | + { ac_try='test -z "$ac_c_werror_flag" | |
8408 | + || test ! -s conftest.err' | |
8344 | 8409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8345 | 8410 | (eval $ac_try) 2>&5 |
8346 | 8411 | ac_status=$? |
@@ -8394,7 +8459,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8394 | 8459 | cat conftest.err >&5 |
8395 | 8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8396 | 8461 | (exit $ac_status); } && |
8397 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8462 | + { ac_try='test -z "$ac_c_werror_flag" | |
8463 | + || test ! -s conftest.err' | |
8398 | 8464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8399 | 8465 | (eval $ac_try) 2>&5 |
8400 | 8466 | ac_status=$? |
@@ -8465,7 +8531,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8465 | 8531 | cat conftest.err >&5 |
8466 | 8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8467 | 8533 | (exit $ac_status); } && |
8468 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8534 | + { ac_try='test -z "$ac_c_werror_flag" | |
8535 | + || test ! -s conftest.err' | |
8469 | 8536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8470 | 8537 | (eval $ac_try) 2>&5 |
8471 | 8538 | ac_status=$? |
@@ -8524,7 +8591,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8524 | 8591 | cat conftest.err >&5 |
8525 | 8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8526 | 8593 | (exit $ac_status); } && |
8527 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8594 | + { ac_try='test -z "$ac_c_werror_flag" | |
8595 | + || test ! -s conftest.err' | |
8528 | 8596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8529 | 8597 | (eval $ac_try) 2>&5 |
8530 | 8598 | ac_status=$? |
@@ -8592,7 +8660,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8592 | 8660 | cat conftest.err >&5 |
8593 | 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8594 | 8662 | (exit $ac_status); } && |
8595 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8663 | + { ac_try='test -z "$ac_c_werror_flag" | |
8664 | + || test ! -s conftest.err' | |
8596 | 8665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8597 | 8666 | (eval $ac_try) 2>&5 |
8598 | 8667 | ac_status=$? |
@@ -8654,7 +8723,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8654 | 8723 | cat conftest.err >&5 |
8655 | 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8656 | 8725 | (exit $ac_status); } && |
8657 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8726 | + { ac_try='test -z "$ac_c_werror_flag" | |
8727 | + || test ! -s conftest.err' | |
8658 | 8728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8659 | 8729 | (eval $ac_try) 2>&5 |
8660 | 8730 | ac_status=$? |
@@ -8727,7 +8797,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8727 | 8797 | cat conftest.err >&5 |
8728 | 8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8729 | 8799 | (exit $ac_status); } && |
8730 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8800 | + { ac_try='test -z "$ac_c_werror_flag" | |
8801 | + || test ! -s conftest.err' | |
8731 | 8802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8732 | 8803 | (eval $ac_try) 2>&5 |
8733 | 8804 | ac_status=$? |
@@ -8791,7 +8862,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8791 | 8862 | cat conftest.err >&5 |
8792 | 8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8793 | 8864 | (exit $ac_status); } && |
8794 | - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8865 | + { ac_try='test -z "$ac_c_werror_flag" | |
8866 | + || test ! -s conftest.err' | |
8795 | 8867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8796 | 8868 | (eval $ac_try) 2>&5 |
8797 | 8869 | ac_status=$? |
@@ -9938,6 +10010,11 @@ esac | ||
9938 | 10010 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
9939 | 10011 | esac |
9940 | 10012 | |
10013 | + if test x"$ac_file" != x-; then | |
10014 | + { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
10015 | +echo "$as_me: creating $ac_file" >&6;} | |
10016 | + rm -f "$ac_file" | |
10017 | + fi | |
9941 | 10018 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
9942 | 10019 | # use $as_me), people would be surprised to read: |
9943 | 10020 | # /* config.h. Generated by config.status. */ |
@@ -9976,12 +10053,6 @@ echo "$as_me: error: cannot find input file: $f" >&2;} | ||
9976 | 10053 | fi;; |
9977 | 10054 | esac |
9978 | 10055 | done` || { (exit 1); exit 1; } |
9979 | - | |
9980 | - if test x"$ac_file" != x-; then | |
9981 | - { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9982 | -echo "$as_me: creating $ac_file" >&6;} | |
9983 | - rm -f "$ac_file" | |
9984 | - fi | |
9985 | 10056 | _ACEOF |
9986 | 10057 | cat >>$CONFIG_STATUS <<_ACEOF |
9987 | 10058 | sed "$ac_vpsub |
@@ -567,6 +567,16 @@ AC_ARG_PROGRAM | ||
567 | 567 | |
568 | 568 | . ${srcdir}/../../bfd/configure.host |
569 | 569 | |
570 | +case ${host} in | |
571 | + *mingw32*) | |
572 | + AC_DEFINE(USE_WIN32API, 1, | |
573 | + [Define if we should use the Windows API, instead of the | |
574 | + POSIX API. On Windows, we use the Windows API when | |
575 | + building for MinGW, but the POSIX API when building | |
576 | + for Cygwin.]) | |
577 | + ;; | |
578 | +esac | |
579 | + | |
570 | 580 | AC_CONFIG_HEADER(config.h:config.in) |
571 | 581 | |
572 | 582 | AC_STRUCT_ST_BLKSIZE |
@@ -584,7 +594,7 @@ AC_TYPE_UID_T | ||
584 | 594 | |
585 | 595 | AC_CHECK_FUNCS(access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink) |
586 | 596 | |
587 | -AC_CHECK_HEADERS(fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h) | |
597 | +AC_CHECK_HEADERS(fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h sys/errno.h) | |
588 | 598 | AC_HEADER_DIRENT |
589 | 599 | |
590 | 600 | dnl Figure out what type of termio/termios support there is |
@@ -43,7 +43,9 @@ | ||
43 | 43 | #include <signal.h> |
44 | 44 | #include <fcntl.h> |
45 | 45 | #include <errno.h> |
46 | +#ifdef HAVE_SYS_ERRNO_H | |
46 | 47 | #include <sys/errno.h> |
48 | +#endif | |
47 | 49 | #include <sys/param.h> |
48 | 50 | #include <sys/time.h> |
49 | 51 |
@@ -224,7 +226,7 @@ write_timeval(unsigned_word addr, | ||
224 | 226 | emul_write_buffer(&t, addr, sizeof(t), processor, cia); |
225 | 227 | } |
226 | 228 | |
227 | - | |
229 | +#ifdef HAVE_GETTIMEOFDAY | |
228 | 230 | STATIC_INLINE_EMUL_NETBSD void |
229 | 231 | write_timezone(unsigned_word addr, |
230 | 232 | struct timezone tz, |
@@ -235,6 +237,7 @@ write_timezone(unsigned_word addr, | ||
235 | 237 | H2T(tz.tz_dsttime); |
236 | 238 | emul_write_buffer(&tz, addr, sizeof(tz), processor, cia); |
237 | 239 | } |
240 | +#endif | |
238 | 241 | |
239 | 242 | |
240 | 243 | #ifdef HAVE_GETDIRENTRIES |
@@ -730,7 +730,11 @@ do_unix_mkdir(os_emul_data *emul, | ||
730 | 730 | if (WITH_TRACE && ppc_trace[trace_os_emul]) |
731 | 731 | printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode); |
732 | 732 | |
733 | +#ifdef USE_WIN32API | |
734 | + status = mkdir(path); | |
735 | +#else | |
733 | 736 | status = mkdir(path, mode); |
737 | +#endif | |
734 | 738 | emul_write_status(processor, status, errno); |
735 | 739 | } |
736 | 740 | #endif |
@@ -44,6 +44,7 @@ | ||
44 | 44 | #include "bfd.h" |
45 | 45 | #include "gdb/callback.h" |
46 | 46 | #include "gdb/remote-sim.h" |
47 | +#include "gdb/signals.h" | |
47 | 48 | |
48 | 49 | /* Define the rate at which the simulator should poll the host |
49 | 50 | for a quit. */ |
@@ -197,13 +198,13 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc) | ||
197 | 198 | case was_continuing: |
198 | 199 | *reason = sim_stopped; |
199 | 200 | if (status.signal == 0) |
200 | - *sigrc = SIGTRAP; | |
201 | + *sigrc = TARGET_SIGNAL_TRAP; | |
201 | 202 | else |
202 | 203 | *sigrc = status.signal; |
203 | 204 | break; |
204 | 205 | case was_trap: |
205 | 206 | *reason = sim_stopped; |
206 | - *sigrc = SIGTRAP; | |
207 | + *sigrc = TARGET_SIGNAL_TRAP; | |
207 | 208 | break; |
208 | 209 | case was_exited: |
209 | 210 | *reason = sim_exited; |