This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 1/2+7.6] /proc/PID/smaps: filename fix
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 29 Mar 2013 21:27:37 +0100
- Subject: Re: [patch 1/2+7.6] /proc/PID/smaps: filename fix
- References: <20130329195301 dot GA3502 at host2 dot jankratochvil dot net> <m21uay3qex dot fsf at igel dot home>
On Fri, 29 Mar 2013 21:24:38 +0100, Andreas Schwab wrote:
> Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> > currently GDB complains:
> > warning: Error parsing {s,}maps file '[heap]'
> > warning: Error parsing {s,}maps file '/usr/lib64/libc-2.17.so'
> >
> > which is sure incorrect, it should have been:
> > warning: Error parsing {s,}maps file '/proc/30100/smaps'
> > warning: Error parsing {s,}maps file '/proc/30100/smaps'
>
> Which mean you'll no longer know what's wrong with it.
I believe the second output was originally intended, this is what this patch
tries to fix.
It may not be perfect but it only tries to suggest what is that "{s,}maps
file". I did not write this code (although reviewed it IIRC).
Jan