sim: options: fix --help output
[deliverable/binutils-gdb.git] / sim / common / hw-events.c
index a851a2a9181fa8ddbbaab83fc919517efcfcda45..1c749dd8c27c9c014427786f06f861d06ad03be4 100644 (file)
@@ -1,5 +1,5 @@
 /* Hardware event manager.
-   Copyright (C) 1998, 2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1998-2021 Free Software Foundation, Inc.
    Contributed by Cygnus Support.
 
 This file is part of GDB, the GNU debugger.
@@ -23,10 +23,12 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "sim-events.h"
 
+#include <string.h>
 
 /* The hw-events object is implemented using sim-events */
 
-struct hw_event {
+struct hw_event
+{
   void *data;
   struct hw *me;
   hw_event_callback *callback;
@@ -34,7 +36,8 @@ struct hw_event {
   struct hw_event_data *entry;
 };
 
-struct hw_event_data {
+struct hw_event_data
+{
   struct hw_event event;
   struct hw_event_data *next;
 };
@@ -182,6 +185,7 @@ hw_event_remain_time (struct hw *me, struct hw_event *event)
 #include "sim-main.h"
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 static void
 test_handler (struct hw *me,
This page took 0.025407 seconds and 4 git commands to generate.