Index: gdb/mi/mi-cmd-info.c |
diff --git a/gdb/common/linux-procfs.h b/gdb/mi/mi-cmd-info.c |
similarity index 65% |
copy from gdb/common/linux-procfs.h |
copy to gdb/mi/mi-cmd-info.c |
index a4ba4a1b48db5e809ba7848b7ae3774cb937dbfc..ffda52f726dcf57fcbe17006c837b821704648fc 100644 |
--- a/gdb/common/linux-procfs.h |
+++ b/gdb/mi/mi-cmd-info.c |
@@ -1,4 +1,4 @@ |
-/* Linux-specific PROCFS manipulation routines. |
+/* MI Command Set - information commands. |
Copyright (C) 2011-2012 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -16,14 +16,23 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-#ifndef COMMON_LINUX_PROCFS_H |
-#define COMMON_LINUX_PROCFS_H |
- |
-#include <unistd.h> |
- |
-/* Return the TGID of LWPID from /proc/pid/status. Returns -1 if not |
- found. */ |
- |
-extern int linux_proc_get_tgid (int lwpid); |
- |
-#endif /* COMMON_LINUX_PROCFS_H */ |
+#include "defs.h" |
+#include "osdata.h" |
+#include "mi-cmds.h" |
+ |
+void |
+mi_cmd_info_os (char *command, char **argv, int argc) |
+{ |
+ switch (argc) |
+ { |
+ case 0: |
+ info_osdata_command ("", 0); |
+ break; |
+ case 1: |
+ info_osdata_command (argv[0], 0); |
+ break; |
+ default: |
+ error (_("Usage: -info-os [INFOTYPE]")); |
+ break; |
+ } |
+} |