This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] `info proc ' completion [Re: [PATCH] Implement new `info core mappings' command]


> Date: Tue, 1 Nov 2011 12:54:05 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb-patches@sourceware.org, Sergio Durigan Junior <sergiodj@redhat.com>
> 
> -Specify any process id, or use the program being debugged by default.\n\
> -Specify any of the following keywords for detailed info:\n\
> -  mappings -- list of mapped memory regions.\n\
> -  stat     -- list a bunch of random process info.\n\
> -  status   -- list a different bunch of random process info.\n\
> -  all      -- list all available /proc info."));
> +Specify any process id, or use the program being debugged by default."),
> +		  &info_proc_cmdlist, "info proc ",
> +		  1/*allow-unknown*/, &infolist);
> +
> +  add_cmd ("mappings", class_info, linux_nat_info_proc_cmd_mappings, _("\
> +List of mapped memory regions."),
> +	   &info_proc_cmdlist);
> +
> +  add_cmd ("stat", class_info, linux_nat_info_proc_cmd_stat, _("\
> +List a bunch of random process info."),
> +	   &info_proc_cmdlist);
> +
> +  add_cmd ("status", class_info, linux_nat_info_proc_cmd_status, _("\
> +List a different bunch of random process info."),
> +	   &info_proc_cmdlist);
> +
> +  add_cmd ("cwd", class_info, linux_nat_info_proc_cmd_cwd, _("\
> +List a different bunch of random process info."),
> +	   &info_proc_cmdlist);
> +
> +  add_cmd ("cmdline", class_info, linux_nat_info_proc_cmd_cmdline, _("\
> +List a different bunch of random process info."),
> +	   &info_proc_cmdlist);
> +
> +  add_cmd ("exe", class_info, linux_nat_info_proc_cmd_exe, _("\
> +List a different bunch of random process info."),

I wonder if we could clean up this mess with 5 "different bunches of
info", while we are at that.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]