From: Pedro Alves Date: Wed, 21 May 2014 17:30:46 +0000 (+0100) Subject: go32-nat.c: Don't override to_open. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f5d1b137becfbd8d021640384559b1a458db1ff;p=binutils-gdb.git go32-nat.c: Don't override to_open. Although the string says "Done.", nothing is pushing the target as is. Removing the method override let's us fall through to the the base to_open implemention in inf-child.c, which will push the target in reaction to "target native" in a follow up patch. gdb/ 2014-05-21 Pedro Alves * go32-nat.c (go32_open): Delete. (go32_target): Don't override the to_open method. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6d072838819..ef9c9044e9c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-05-21 Pedro Alves + + * go32-nat.c (go32_open): Delete. + (go32_target): Don't override the to_open method. + 2014-05-21 Pedro Alves * nto-procfs.c (procfs_can_run): New function. diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index ef5278a88ed..e17707ac194 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -338,12 +338,6 @@ static struct { {GDB_SIGNAL_LAST, -1} }; -static void -go32_open (char *name, int from_tty) -{ - printf_unfiltered ("Done. Use the \"run\" command to run the program.\n"); -} - static void go32_attach (struct target_ops *ops, char *args, int from_tty) { @@ -960,7 +954,6 @@ go32_target (void) { struct target_ops *t = inf_child_target (); - t->to_open = go32_open; t->to_attach = go32_attach; t->to_resume = go32_resume; t->to_wait = go32_wait;