diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-25 19:46:08 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-25 19:46:08 +0000 |
commit | 98bbd631ccdf061b430ff2699ed82b92933ae937 (patch) | |
tree | a1d7000bd036c537704c170afddfefb4918cb698 /gdb/ser-unix.c | |
parent | 139181c8d664f1c07b436961e62530585b8fc4a2 (diff) | |
download | gdb-98bbd631ccdf061b430ff2699ed82b92933ae937.zip gdb-98bbd631ccdf061b430ff2699ed82b92933ae937.tar.gz gdb-98bbd631ccdf061b430ff2699ed82b92933ae937.tar.bz2 |
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.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r-- | gdb/ser-unix.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 4b48f409..6f64f41 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -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; } |