aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2006-09-04 10:09:35 +0000
committerNick Roberts <nickrob@snap.net.nz>2006-09-04 10:09:35 +0000
commit345d3cf34c77abca498fca7849541bfac5fe4d82 (patch)
treefa2bf54d02237a8ea9f9f5d273e4819bda799b8a
parent3436d276c568d6a1cf820ce223d75f53ec74989d (diff)
downloadfsf-binutils-gdb-345d3cf34c77abca498fca7849541bfac5fe4d82.zip
fsf-binutils-gdb-345d3cf34c77abca498fca7849541bfac5fe4d82.tar.gz
fsf-binutils-gdb-345d3cf34c77abca498fca7849541bfac5fe4d82.tar.bz2
(standard_async): Make it a no-op.
(async_file_handler): Move to to inf-ptrace.c. (init_exec_ops): Move async_terminal target methods to inf_ptrace_target.
-rw-r--r--gdb/exec.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 4586357..e1994b0 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -33,8 +33,6 @@
#include "value.h"
#include "exec.h"
#include "observer.h"
-#include "event-loop.h"
-#include "async-nat-inferior.h"
#include <fcntl.h>
#include "readline/readline.h"
@@ -48,32 +46,9 @@
#include "xcoffsolib.h"
static void
-async_file_handler (int error, gdb_client_data client_data)
-{
- async_client_callback (INF_REG_EVENT, async_client_context);
-}
-
-static void
standard_async (void (*callback) (enum inferior_event_type event_type,
void *context), void *context)
{
- if (current_target.to_async_mask_value == 0)
- internal_error (__FILE__, __LINE__,
- "Calling remote_async when async is masked");
-
- if (callback != NULL)
- {
- async_client_callback = callback;
- async_client_context = context;
- if (gdb_status->signal_status.receive_fd > 0)
- add_file_handler (gdb_status->signal_status.receive_fd,
- async_file_handler, NULL);
- }
- else
- {
- if (gdb_status->signal_status.receive_fd > 0)
- delete_file_handler (gdb_status->signal_status.receive_fd);
- }
return;
}
@@ -124,7 +99,6 @@ show_write_files (struct ui_file *file, int from_tty,
value);
}
-
struct vmap *vmap;
static void
@@ -782,8 +756,6 @@ Specify the filename of the executable file.";
exec_ops.to_is_async_p = standard_is_async_p;
exec_ops.to_async = standard_async;
exec_ops.to_async_mask_value = 1;
- exec_ops.to_terminal_inferior = async_terminal_inferior;
- exec_ops.to_terminal_ours = async_terminal_ours;
}
}