diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-04 21:04:41 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-12-04 22:09:42 -0500 |
commit | 2c29882f833f634d776b19fa15a1f1bad70bf447 (patch) | |
tree | 40925a6a8590fa8e8389caee67e97004f0a040dc | |
parent | 20a8e078cc573f85f7262f7b87be3cf8e8a6424f (diff) | |
download | gdb-2c29882f833f634d776b19fa15a1f1bad70bf447.zip gdb-2c29882f833f634d776b19fa15a1f1bad70bf447.tar.gz gdb-2c29882f833f634d776b19fa15a1f1bad70bf447.tar.bz2 |
sim: include stdarg.h when used
Avoid implicit include deps with this to help untangle sim headers
so we can get rid of arch-specific sim-main.h.
-rw-r--r-- | sim/common/cgen-trace.c | 1 | ||||
-rw-r--r-- | sim/common/hw-device.c | 1 | ||||
-rw-r--r-- | sim/common/hw-device.h | 1 | ||||
-rw-r--r-- | sim/common/hw-events.c | 1 | ||||
-rw-r--r-- | sim/common/hw-events.h | 2 | ||||
-rw-r--r-- | sim/common/hw-tree.c | 1 | ||||
-rw-r--r-- | sim/common/hw-tree.h | 1 | ||||
-rw-r--r-- | sim/common/sim-abort.c | 1 | ||||
-rw-r--r-- | sim/common/sim-engine.c | 1 | ||||
-rw-r--r-- | sim/common/sim-engine.h | 1 | ||||
-rw-r--r-- | sim/common/sim-events.c | 1 | ||||
-rw-r--r-- | sim/common/sim-events.h | 1 | ||||
-rw-r--r-- | sim/common/sim-hw.c | 1 | ||||
-rw-r--r-- | sim/common/sim-hw.h | 1 | ||||
-rw-r--r-- | sim/common/sim-io.c | 1 | ||||
-rw-r--r-- | sim/common/sim-io.h | 1 | ||||
-rw-r--r-- | sim/common/sim-profile.c | 1 | ||||
-rw-r--r-- | sim/common/sim-trace.c | 1 | ||||
-rw-r--r-- | sim/common/sim-trace.h | 2 | ||||
-rw-r--r-- | sim/common/sim-utils.c | 1 |
20 files changed, 22 insertions, 0 deletions
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index f372c47..f8f8727 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "defs.h" #include <errno.h> +#include <stdarg.h> #include <stdlib.h> #include "bfd.h" diff --git a/sim/common/hw-device.c b/sim/common/hw-device.c index b30eede..28450fa 100644 --- a/sim/common/hw-device.c +++ b/sim/common/hw-device.c @@ -22,6 +22,7 @@ /* This must come before any other includes. */ #include "defs.h" +#include <stdarg.h> #include <stdlib.h> #include <string.h> diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h index ffd627a..a7e598b 100644 --- a/sim/common/hw-device.h +++ b/sim/common/hw-device.h @@ -23,6 +23,7 @@ #ifndef HW_DEVICE_H #define HW_DEVICE_H +#include <stdarg.h> /* Introduction: diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c index 301f868..3337416 100644 --- a/sim/common/hw-events.c +++ b/sim/common/hw-events.c @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" +#include <stdarg.h> #include <string.h> #include "hw-main.h" diff --git a/sim/common/hw-events.h b/sim/common/hw-events.h index 51ca5bd..7d75000 100644 --- a/sim/common/hw-events.h +++ b/sim/common/hw-events.h @@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef HW_EVENTS_H #define HW_EVENTS_H +#include <stdarg.h> + /* Event manager customized for hardware models. This interface is discussed further in sim-events.h. */ diff --git a/sim/common/hw-tree.c b/sim/common/hw-tree.c index 2e441ce..c5fa1bc 100644 --- a/sim/common/hw-tree.c +++ b/sim/common/hw-tree.c @@ -23,6 +23,7 @@ #include "defs.h" #include <ctype.h> +#include <stdarg.h> #include <stdlib.h> #include <string.h> diff --git a/sim/common/hw-tree.h b/sim/common/hw-tree.h index 85c91ad..2f717ec 100644 --- a/sim/common/hw-tree.h +++ b/sim/common/hw-tree.h @@ -23,6 +23,7 @@ #ifndef HW_TREE #define HW_TREE +#include <stdarg.h> struct hw *hw_tree_create (SIM_DESC sd, diff --git a/sim/common/sim-abort.c b/sim/common/sim-abort.c index 06df127..d30b9a4 100644 --- a/sim/common/sim-abort.c +++ b/sim/common/sim-abort.c @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> diff --git a/sim/common/sim-engine.c b/sim/common/sim-engine.c index 0e06b55..5eeef51 100644 --- a/sim/common/sim-engine.c +++ b/sim/common/sim-engine.c @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> diff --git a/sim/common/sim-engine.h b/sim/common/sim-engine.h index 1feb8a6..159d96b 100644 --- a/sim/common/sim-engine.h +++ b/sim/common/sim-engine.h @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef SIM_ENGINE_H #define SIM_ENGINE_H +#include <stdarg.h> typedef struct _sim_engine sim_engine; struct _sim_engine diff --git a/sim/common/sim-events.c b/sim/common/sim-events.c index a5ec32d..50c8cff 100644 --- a/sim/common/sim-events.c +++ b/sim/common/sim-events.c @@ -27,6 +27,7 @@ #include "defs.h" #include <signal.h> /* For SIGPROCMASK et al. */ +#include <stdarg.h> #include <stdlib.h> #include <string.h> diff --git a/sim/common/sim-events.h b/sim/common/sim-events.h index 3f1501e..3c30d64 100644 --- a/sim/common/sim-events.h +++ b/sim/common/sim-events.h @@ -23,6 +23,7 @@ #ifndef SIM_EVENTS_H #define SIM_EVENTS_H +#include <stdarg.h> /* Notes: diff --git a/sim/common/sim-hw.c b/sim/common/sim-hw.c index 1b08643..0c2309c 100644 --- a/sim/common/sim-hw.c +++ b/sim/common/sim-hw.c @@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <ctype.h> #include <errno.h> +#include <stdarg.h> #include <stdlib.h> #include <string.h> diff --git a/sim/common/sim-hw.h b/sim/common/sim-hw.h index 82c404a..71dc837 100644 --- a/sim/common/sim-hw.h +++ b/sim/common/sim-hw.h @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef SIM_HW_H #define SIM_HW_H +#include <stdarg.h> /* Parse a hardware definition */ diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c index 5a47f65..a278d6e 100644 --- a/sim/common/sim-io.c +++ b/sim/common/sim-io.c @@ -26,6 +26,7 @@ #if HAVE_FCNTL_H #include <fcntl.h> #endif +#include <stdarg.h> #include <stdlib.h> #if HAVE_UNISTD_H #include <unistd.h> diff --git a/sim/common/sim-io.h b/sim/common/sim-io.h index f9fd197..c88adcd 100644 --- a/sim/common/sim-io.h +++ b/sim/common/sim-io.h @@ -23,6 +23,7 @@ #ifndef SIM_IO_H #define SIM_IO_H +#include <stdarg.h> #include <sys/stat.h> #include <sys/types.h> diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index adde403..393a0b7 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "defs.h" #include <ctype.h> +#include <stdarg.h> #include <stdlib.h> #include <string.h> diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c index f4712aa..fbfa27f 100644 --- a/sim/common/sim-trace.c +++ b/sim/common/sim-trace.c @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" +#include <stdarg.h> #include <stdlib.h> #include <string.h> diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h index c73dc6d..f17bbc6 100644 --- a/sim/common/sim-trace.h +++ b/sim/common/sim-trace.h @@ -22,6 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef SIM_TRACE_H #define SIM_TRACE_H +#include <stdarg.h> + #include "dis-asm.h" /* Standard traceable entities. */ diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index e30627b..2e4edb2 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" +#include <stdarg.h> #include <stdlib.h> #include <string.h> #include <time.h> |