Rename "target darwin-child" -> "target native"
authorPedro Alves <palves@redhat.com>
Wed, 21 May 2014 17:30:43 +0000 (18:30 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 21 May 2014 17:30:43 +0000 (18:30 +0100)
To be like other native targets.

Leave to_shortname, to_longname, to_doc as inf-child.c sets them:

  t->to_shortname = "native";
  t->to_longname = "Native process";
  t->to_doc = "Native process (started by the \"run\" command).";

gdb/
2014-05-21  Pedro Alves  <palves@redhat.com>

* darwin-nat.c (_initialize_darwin_inferior): Don't override
to_shortname, to_longname or to_doc.

gdb/ChangeLog
gdb/darwin-nat.c

index 3a94db8ad7f4e20e22d91ce97b043d4a4a1d4cd4..1e114e4d9df6bd1c54e9a8d8d6eebb637628517f 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-21  Pedro Alves  <palves@redhat.com>
+
+       * darwin-nat.c (_initialize_darwin_inferior): Don't override
+       to_shortname, to_longname or to_doc.
+
 2014-05-21  Pedro Alves  <palves@redhat.com>
 
        * go32-nat.c (go32_target): Don't override to_shortname,
index 0ffa69aacdbf3a9c6ace1305575d9376d4f2c82b..478429cedcaff4cf868ada57ec6cfdc4ad3d4a74 100644 (file)
@@ -2148,10 +2148,6 @@ _initialize_darwin_inferior (void)
 
   darwin_ops = inf_child_target ();
 
-  darwin_ops->to_shortname = "darwin-child";
-  darwin_ops->to_longname = _("Darwin child process");
-  darwin_ops->to_doc =
-    _("Darwin child process (started by the \"run\" command).");
   darwin_ops->to_create_inferior = darwin_create_inferior;
   darwin_ops->to_attach = darwin_attach;
   darwin_ops->to_attach_no_wait = 0;