gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 2 Nov 2011 18:47:16 +0000 (18:47 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 2 Nov 2011 18:47:16 +0000 (18:47 +0000)
commitf179e16214758688265c2a0798bb2bebc0cd2770
tree456b2838736b1632469de71febf56f8947b70bc7
parenta72173de2524e96e0d9515f36cc033016d619e0f
gdb/
* linux-nat.c: Include cli/cli-utils.h.
(enum info_proc_what): New.
(linux_nat_info_proc_cmd): Rename to ...
(linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
status_f and stat_f from WHAT.  Throw error on extra parameters.
(linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
(linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
(linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
(linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
(_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
proc mappings', `info proc stat`, `info proc status', `info proc cwd',
`info proc cmdline', `info proc exe' and `info proc all' as real
subcommands of `info proc'.
gdb/ChangeLog
gdb/linux-nat.c