aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-08-19 12:49:19 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-08-19 12:49:19 +0000
commit073120b913e2614f309c5b6d0c313308ed2b4c82 (patch)
treee09ff154a3adc12442cd75481a49f3079060be20
parentaeac0ff9c2b0734cd9b0ce4ee0af9e9169c8dc6b (diff)
downloadfsf-binutils-gdb-073120b913e2614f309c5b6d0c313308ed2b4c82.zip
fsf-binutils-gdb-073120b913e2614f309c5b6d0c313308ed2b4c82.tar.gz
fsf-binutils-gdb-073120b913e2614f309c5b6d0c313308ed2b4c82.tar.bz2
* target.c (maybe_kill_then_attach)
(maybe_kill_then_create_inferior): Remove. (update_current_target): Do not default to_attach, to_create_inferiour, to_is_async_p.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/target.c27
2 files changed, 7 insertions, 27 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0eb48b3..1e3d82b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
+
+ * target.c (maybe_kill_then_attach)
+ (maybe_kill_then_create_inferior): Remove.
+ (update_current_target): Do not default to_attach,
+ to_create_inferiour, to_is_async_p.
+
2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
Changes for supporting boolean types in debugging data.
diff --git a/gdb/target.c b/gdb/target.c
index 681043e..575415b 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -44,8 +44,6 @@
static void target_info (char *, int);
-static void maybe_kill_then_attach (char *, int);
-
static void kill_or_be_killed (int);
static void default_terminal_info (char *, int);
@@ -358,21 +356,6 @@ kill_or_be_killed (int from_tty)
tcomplain ();
}
-static void
-maybe_kill_then_attach (char *args, int from_tty)
-{
- kill_or_be_killed (from_tty);
- target_attach (args, from_tty);
-}
-
-static void
-maybe_kill_then_create_inferior (char *exec, char *args, char **env,
- int from_tty)
-{
- kill_or_be_killed (0);
- target_create_inferior (exec, args, env, from_tty);
-}
-
/* Go through the target stack from top to bottom, copying over zero
entries in current_target, then filling in still empty entries. In
effect, we are doing class inheritance through the pushed target
@@ -500,8 +483,6 @@ update_current_target (void)
de_fault (to_close,
(void (*) (int))
target_ignore);
- de_fault (to_attach,
- maybe_kill_then_attach);
de_fault (to_post_attach,
(void (*) (int))
target_ignore);
@@ -584,8 +565,6 @@ update_current_target (void)
de_fault (to_lookup_symbol,
(int (*) (char *, CORE_ADDR *))
nosymbol);
- de_fault (to_create_inferior,
- maybe_kill_then_create_inferior);
de_fault (to_post_startup_inferior,
(void (*) (ptid_t))
target_ignore);
@@ -640,12 +619,6 @@ update_current_target (void)
de_fault (to_pid_to_exec_file,
(char *(*) (int))
return_zero);
- de_fault (to_can_async_p,
- (int (*) (void))
- return_zero);
- de_fault (to_is_async_p,
- (int (*) (void))
- return_zero);
de_fault (to_async,
(void (*) (void (*) (enum inferior_event_type, void*), void*))
tcomplain);