/* The common simulator framework for GDB, the GNU Debugger.
- Copyright 2002, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+ Copyright 2002-2019 Free Software Foundation, Inc.
Contributed by Andrew Cagney and Red Hat.
#include "hw-main.h"
#include "hw-base.h"
+#if HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
-struct hw_handle_mapping {
+struct hw_handle_mapping
+{
cell_word external;
struct hw *phandle;
struct hw_instance *ihandle;
};
-struct hw_handle_data {
+struct hw_handle_data
+{
int nr_mappings;
struct hw_handle_mapping *mappings;
};