This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] `info proc ' completion [Re: [PATCH] Implement new `info core mappings' command]
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: pedro at codesourcery dot com, gdb-patches at sourceware dot org, sergiodj at redhat dot com
- Date: Tue, 01 Nov 2011 18:22:42 +0200
- Subject: Re: [patch] `info proc ' completion [Re: [PATCH] Implement new `info core mappings' command]
- References: <m3wrbr8olq.fsf@redhat.com> <m3vcr5u9y4.fsf@redhat.com> <20111031070012.GA32610@host1.jankratochvil.net> <201110311220.53564.pedro@codesourcery.com> <20111101115405.GA15861@host1.jankratochvil.net>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.