]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: d10v: delete NEED_UI_LOOP_HOOK handling
authorMike Frysinger <vapier@gentoo.org>
Mon, 30 Mar 2015 05:44:57 +0000 (01:44 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 30 Mar 2015 06:20:23 +0000 (02:20 -0400)
This hook is used only when linked into gdb, and d10v doesn't have a gdb
port anymore.  Punt it.

sim/d10v/ChangeLog
sim/d10v/Makefile.in
sim/d10v/interp.c

index 08a099fd891f9dfe2dd1f7e7fad3411fe8780720..ca4b5d2a77dd0f8c1c72fafdccf88b8b9542208e 100644 (file)
@@ -1,3 +1,10 @@
+2015-03-30  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
+       * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
+       ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
+       (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
+
 2015-03-30  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.in (gencode.o, d10v-opc.o): Add $(WARN_CFLAGS).
index 5ea5b1d574125b1f3cf59352ad0c955bee94005d..fb2d72d10377c13536f2d464ef726631868a8589 100644 (file)
@@ -22,8 +22,7 @@ SIM_RUN_OBJS = run.o
 
 SIM_OBJS = interp.o table.o simops.o endian.o sim-load.o
 SIM_EXTRA_CLEAN = clean-extra
-SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT \
-       -DSIM_USE_DEPRECATED_RUN_FRONTEND
+SIM_EXTRA_CFLAGS = -DSIM_HAVE_ENVIRONMENT -DSIM_USE_DEPRECATED_RUN_FRONTEND
 
 INCLUDE = d10v_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \
        $(srcroot)/include/gdb/sim-d10v.h
index 57bca399b117a6f6f3f227408bb527458cefafe5..0b21549783b2afea5c8296652aebf385a0ff48b4 100644 (file)
@@ -56,17 +56,6 @@ extern void sim_set_profile (int n);
 extern void sim_set_profile_size (int n);
 static INLINE uint8 *map_memory (unsigned phys_addr);
 
-#ifdef NEED_UI_LOOP_HOOK
-/* How often to run the ui_loop update, when in use */
-#define UI_LOOP_POLL_INTERVAL 0x14000
-
-/* Counter for the ui_loop_hook update */
-static long ui_loop_hook_counter = UI_LOOP_POLL_INTERVAL;
-
-/* Actual hook to call to run through gdb's gui event loop */
-extern int (*deprecated_ui_loop_hook) (int signo);
-#endif /* NEED_UI_LOOP_HOOK */
-
 #ifndef INLINE
 #if defined(__GNUC__) && defined(__OPTIMIZE__)
 #define INLINE __inline__
@@ -1042,14 +1031,6 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
 
       /* Writeback all the DATA / PC changes */
       SLOT_FLUSH ();
-
-#ifdef NEED_UI_LOOP_HOOK
-      if (deprecated_ui_loop_hook != NULL && ui_loop_hook_counter-- < 0)
-       {
-         ui_loop_hook_counter = UI_LOOP_POLL_INTERVAL;
-         deprecated_ui_loop_hook (0);
-       }
-#endif /* NEED_UI_LOOP_HOOK */
     }
   while ( !State.exception && !stop_simulator);