2004-06-25 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Fri, 25 Jun 2004 19:46:08 +0000 (19:46 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 25 Jun 2004 19:46:08 +0000 (19:46 +0000)
* defs.h (deprecated_ui_loop_hook): Deprecated.
* wince.c (child_wait): Update.
* win32-nat.c (child_wait): Update.
* v850ice.c (v850ice_wait): Update.
* top.c (deprecated_ui_loop_hook): Update.
* serial.h: Update.
* ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
(do_unix_readchar): Update.
* ser-tcp.c (net_open): Update.
* remote-sim.c (gdb_os_poll_quit): Update.
* rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.

12 files changed:
gdb/ChangeLog
gdb/defs.h
gdb/rdi-share/ardi.c
gdb/remote-sim.c
gdb/ser-tcp.c
gdb/ser-unix.c
gdb/serial.h
gdb/top.c
gdb/v850ice.c
gdb/win32-nat.c
gdb/wince.c
gdb/windows-nat.c

index 22b755a7d69f0896d617b0644cf5f3e672d252dd..f2cbaa5ee6929ab0bbc592a6d6e34a2118d3b1bf 100644 (file)
@@ -1,3 +1,17 @@
+2004-06-25  Andrew Cagney  <cagney@gnu.org>
+
+       * defs.h (deprecated_ui_loop_hook): Deprecated.
+       * wince.c (child_wait): Update.
+       * win32-nat.c (child_wait): Update.
+       * v850ice.c (v850ice_wait): Update.
+       * top.c (deprecated_ui_loop_hook): Update.
+       * serial.h: Update.
+       * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
+       (do_unix_readchar): Update.
+       * ser-tcp.c (net_open): Update.
+       * remote-sim.c (gdb_os_poll_quit): Update.
+       * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
+
 2004-06-24  Andrew Cagney  <cagney@gnu.org>
 
        * defs.h (deprecated_pre_add_symbol_hook)
index 9e787e2c7ddd67e7e58df3247b52f31a441910ab..99d64bb9c1e528ed29ffbd0dbdb5f5b377667130 100644 (file)
@@ -1220,7 +1220,7 @@ extern int event_loop_p;
 extern void (*deprecated_pre_add_symbol_hook) (const char *);
 extern void (*deprecated_post_add_symbol_hook) (void);
 extern void (*selected_frame_level_changed_hook) (int);
-extern int (*ui_loop_hook) (int signo);
+extern int (*deprecated_ui_loop_hook) (int signo);
 extern void (*deprecated_init_ui_hook) (char *argv0);
 extern void (*deprecated_command_loop_hook) (void);
 extern void (*deprecated_show_load_progress) (const char *section,
index d7092ddcc77334a05d35e5e96a3a0089713a7746..598d9a95160a268229b71a6081245f24c1b53679 100644 (file)
@@ -1413,8 +1413,8 @@ static int angel_RDI_ExecuteOrStep(PointHandle *handle, word type,
   signal(SIGINT, ardi_sigint_handler);
   while( executing )
   {
-    if (ui_loop_hook)
-      ui_loop_hook(0);
+    if (deprecated_ui_loop_hook)
+      deprecated_ui_loop_hook(0);
     
     if (interrupt_request || stop_request)
       {
index e058311a73d23aa8956097faba8aeae56a8950ce..a1be90e0e3a9e859d97afe55be807dc45a571bcb 100644 (file)
@@ -632,8 +632,8 @@ gdbsim_stop (void)
 static int
 gdb_os_poll_quit (host_callback *p)
 {
-  if (ui_loop_hook != NULL)
-    ui_loop_hook (0);
+  if (deprecated_ui_loop_hook != NULL)
+    deprecated_ui_loop_hook (0);
 
   if (quit_flag)               /* gdb's idea of quit */
     {
index 21d84768d9cfab117880f0c8dd77bf08e0357551..de8c4283744afbc89bf687f7be09d2b0e07eb825 100644 (file)
@@ -48,7 +48,7 @@ void _initialize_ser_tcp (void);
 
 /* seconds to wait for connect */
 #define TIMEOUT 15
-/* how many times per second to poll ui_loop_hook */
+/* how many times per second to poll deprecated_ui_loop_hook */
 #define POLL_INTERVAL 2
 
 /* Open a tcp socket */
@@ -132,9 +132,9 @@ net_open (struct serial *scb, const char *name)
          /* While we wait for the connect to complete 
             poll the UI so it can update or the user can 
             interrupt. */
-         if (ui_loop_hook)
+         if (deprecated_ui_loop_hook)
            {
-             if (ui_loop_hook (0))
+             if (deprecated_ui_loop_hook (0))
                {
                  errno = EINTR;
                  net_close (scb);
index 4b48f409a9c144e1c1fda6fe7b9449847a36ca1d..6f64f419b3383399a986150df6a005205291ea83 100644 (file)
@@ -578,11 +578,12 @@ do_hardwire_readchar (struct serial *scb, int timeout)
       /* N.B. The UI may destroy our world (for instance by calling
          remote_stop,) in which case we want to get out of here as
          quickly as possible.  It is not safe to touch scb, since
-         someone else might have freed it.  The ui_loop_hook signals that 
-         we should exit by returning 1. */
+         someone else might have freed it.  The
+         deprecated_ui_loop_hook signals that we should exit by
+         returning 1.  */
 
-      if (ui_loop_hook)
-       detach = ui_loop_hook (0);
+      if (deprecated_ui_loop_hook)
+       detach = deprecated_ui_loop_hook (0);
 
       if (detach)
        return SERIAL_TIMEOUT;
@@ -957,12 +958,13 @@ do_unix_readchar (struct serial *scb, int timeout)
       /* N.B. The UI may destroy our world (for instance by calling
          remote_stop,) in which case we want to get out of here as
          quickly as possible.  It is not safe to touch scb, since
-         someone else might have freed it.  The ui_loop_hook signals that 
-         we should exit by returning 1. */
+         someone else might have freed it.  The
+         deprecated_ui_loop_hook signals that we should exit by
+         returning 1.  */
 
-      if (ui_loop_hook)
+      if (deprecated_ui_loop_hook)
        {
-         if (ui_loop_hook (0))
+         if (deprecated_ui_loop_hook (0))
            return SERIAL_TIMEOUT;
        }
 
index 7495b709d57f44a1a599421c731bde42709b1204..abe76b006797b07254f5712b72d73e843c543928 100644 (file)
@@ -62,8 +62,9 @@ extern void serial_un_fdopen (struct serial *scb);
 enum serial_rc {
   SERIAL_ERROR = -1,   /* General error. */
   SERIAL_TIMEOUT = -2, /* Timeout or data-not-ready during read.
-                          Unfortunately, through ui_loop_hook(), this
-                          can also be a QUIT indication.  */
+                          Unfortunately, through
+                          deprecated_ui_loop_hook(), this can also be
+                          a QUIT indication.  */
   SERIAL_EOF = -3      /* General end-of-file or remote target
                           connection closed, indication.  Includes
                           things like the line dropping dead. */
index f68d618631e9a6418f22d589749a01ec069a0a65..98e50100228b4982dd2d2d05b8cdf2d96625496b 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -199,7 +199,7 @@ void (*deprecated_init_ui_hook) (char *argv0);
    steal control from a real user interface's event loop. It returns
    non-zero if the user is requesting a detach, zero otherwise. */
 
-int (*ui_loop_hook) (int);
+int (*deprecated_ui_loop_hook) (int);
 
 /* Called instead of command_loop at top level.  Can be invoked via
    throw_exception().  */
index c36e7564e2ebe73beab0e408ed4e326a0b3044ee..44a8f1d84505b8c8bafcd9c96d4feeb16ee86833 100644 (file)
@@ -441,7 +441,7 @@ v850ice_wait (ptid_t ptid, struct target_waitstatus *status)
     {
       if (count++ % 100000)
        {
-         ui_loop_hook (0);
+         deprecated_ui_loop_hook (0);
          count = 0;
        }
 
index 1d89f4af7652a38fbc7b6886e9fe3611b974fed0..b8e5380715d533b404bcb13b800ca3e9699e2685 100644 (file)
@@ -1417,8 +1417,8 @@ child_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
        {
          int detach = 0;
 
-         if (ui_loop_hook != NULL)
-           detach = ui_loop_hook (0);
+         if (deprecated_ui_loop_hook != NULL)
+           detach = deprecated_ui_loop_hook (0);
 
          if (detach)
            child_kill_inferior ();
index 1b883d6dc6e8aeaa54cb774741b49db27f66124b..02df7a6b025f2d8b44bad3abcfadbd28b5357dd7 100644 (file)
@@ -1507,8 +1507,8 @@ child_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
       {
        int detach = 0;
 
-       if (ui_loop_hook != NULL)
-         detach = ui_loop_hook (0);
+       if (deprecated_ui_loop_hook != NULL)
+         detach = deprecated_ui_loop_hook (0);
 
        if (detach)
          child_kill_inferior ();
index 1d89f4af7652a38fbc7b6886e9fe3611b974fed0..b8e5380715d533b404bcb13b800ca3e9699e2685 100644 (file)
@@ -1417,8 +1417,8 @@ child_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
        {
          int detach = 0;
 
-         if (ui_loop_hook != NULL)
-           detach = ui_loop_hook (0);
+         if (deprecated_ui_loop_hook != NULL)
+           detach = deprecated_ui_loop_hook (0);
 
          if (detach)
            child_kill_inferior ();
This page took 0.034871 seconds and 4 git commands to generate.