mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
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.
This commit is contained in:
@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
/* This must come before any other includes. */
|
/* This must come before any other includes. */
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#ifndef HW_DEVICE_H
|
#ifndef HW_DEVICE_H
|
||||||
#define HW_DEVICE_H
|
#define HW_DEVICE_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
/* Introduction:
|
/* Introduction:
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
/* This must come before any other includes. */
|
/* This must come before any other includes. */
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "hw-main.h"
|
#include "hw-main.h"
|
||||||
|
@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#ifndef HW_EVENTS_H
|
#ifndef HW_EVENTS_H
|
||||||
#define HW_EVENTS_H
|
#define HW_EVENTS_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
/* Event manager customized for hardware models.
|
/* Event manager customized for hardware models.
|
||||||
|
|
||||||
This interface is discussed further in sim-events.h. */
|
This interface is discussed further in sim-events.h. */
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#ifndef HW_TREE
|
#ifndef HW_TREE
|
||||||
#define HW_TREE
|
#define HW_TREE
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
struct hw *hw_tree_create
|
struct hw *hw_tree_create
|
||||||
(SIM_DESC sd,
|
(SIM_DESC sd,
|
||||||
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
/* This must come before any other includes. */
|
/* This must come before any other includes. */
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
/* This must come before any other includes. */
|
/* This must come before any other includes. */
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#ifndef SIM_ENGINE_H
|
#ifndef SIM_ENGINE_H
|
||||||
#define SIM_ENGINE_H
|
#define SIM_ENGINE_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
typedef struct _sim_engine sim_engine;
|
typedef struct _sim_engine sim_engine;
|
||||||
struct _sim_engine
|
struct _sim_engine
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
#include <signal.h> /* For SIGPROCMASK et al. */
|
#include <signal.h> /* For SIGPROCMASK et al. */
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#ifndef SIM_EVENTS_H
|
#ifndef SIM_EVENTS_H
|
||||||
#define SIM_EVENTS_H
|
#define SIM_EVENTS_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
/* Notes:
|
/* Notes:
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#ifndef SIM_HW_H
|
#ifndef SIM_HW_H
|
||||||
#define SIM_HW_H
|
#define SIM_HW_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
/* Parse a hardware definition */
|
/* Parse a hardware definition */
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#if HAVE_FCNTL_H
|
#if HAVE_FCNTL_H
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if HAVE_UNISTD_H
|
#if HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#ifndef SIM_IO_H
|
#ifndef SIM_IO_H
|
||||||
#define SIM_IO_H
|
#define SIM_IO_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
/* This must come before any other includes. */
|
/* This must come before any other includes. */
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#ifndef SIM_TRACE_H
|
#ifndef SIM_TRACE_H
|
||||||
#define SIM_TRACE_H
|
#define SIM_TRACE_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "dis-asm.h"
|
#include "dis-asm.h"
|
||||||
|
|
||||||
/* Standard traceable entities. */
|
/* Standard traceable entities. */
|
||||||
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
/* This must come before any other includes. */
|
/* This must come before any other includes. */
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
Reference in New Issue
Block a user