This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: "info proc map" for corefiles
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: sergiodj at linux dot vnet dot ibm dot com
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 18 Dec 2008 19:46:29 +0100 (CET)
- Subject: Re: RFC: "info proc map" for corefiles
- References: <1229620702.6602.12.camel@miki>
> From: =?ISO-8859-1?Q?S=E9rgio?= Durigan =?ISO-8859-1?Q?J=FAnior?= <sergiodj@linux.vnet.ibm.com>
> Date: Thu, 18 Dec 2008 15:18:22 -0200
>
> Hi guys and girls,
>
> This little patch o' mine implements the command "info proc map" for
> corefiles in GDB. Initially, this feature is only provided for live
> process being debugged. We decided that it would be good to have such
> functionality for corefiles as well, since this information (the memory
> mappings) is available inside them.
>
> This was something that Thiago and I have discussed for some time, and
> it took a little while for me to figure out how things worked in this
> part of the code. I really don't know if this is the right way to
> implement this, so I'd be glad if you could take a look and give your
> opinions.
>
> It's not architecture-dependend so this time you'll be able to test
> without problems. Comments and reviews are welcome, as always.
This looks pretty cool, but I think having this as "info proc"
subcommand is wrong:
(gdb) help info
...
info proc -- Show /proc process information about any running process
...
Corefiles have nothing to do with /proc and many operating systems
don't even have such a thing.