Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: gdb/mi/mi-cmd-info.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/mi/mi-cmd-file.c ('k') | gdb/mi/mi-cmd-stack.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+ }
+}
« no previous file with comments | « gdb/mi/mi-cmd-file.c ('k') | gdb/mi/mi-cmd-stack.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698