From: Sergio Durigan Junior <sergiodj@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: "Ulrich Weigand" <uweigand@de.ibm.com>,
gdb-patches@sourceware.org, jan.kratochvil@redhat.com
Subject: Re: [rfc][3/3] Remote core file generation: memory map
Date: Wed, 09 Nov 2011 20:04:00 -0000 [thread overview]
Message-ID: <m3fwhxnjvw.fsf@redhat.com> (raw)
In-Reply-To: <201111091930.53937.pedro@codesourcery.com> (Pedro Alves's message of "Wed, 9 Nov 2011 19:30:53 +0000")
Pedro Alves <pedro@codesourcery.com> writes:
> On Wednesday 09 November 2011 18:27:07, Ulrich Weigand wrote:
>
>> OK. In the meantime, I've noticed the discussion going on in parallel
>> on the "info core mappings" commands. If we implement this, we have
>> the somewhat weird situation that we can show mappings for native
>> processes and for core files, but not for processes attached to remotely,
>> even if the target is also Linux ...
>>
>> It would appear to me that this command actually just needs the very
>> same data I need here for the generate-core-file command, namely the
>> current list of memory mappings.
>>
>> If we create a new target object for VMA memory mappings, maybe we
>> ought to then have a standard "info mappings" (or the like) command
>> implemented in GDB *common code* that works likewise on native,
>> core file, *and* also gdbserver targets; in fact, on all targets
>> that provide that new target object (which may need to be a bit
>> richer, e.g. provide mapped file names as well)?
>
> Sounds like a good idea indeed.
I totally agree. When doing the `info core' patch, I often found myself
thinking about how `info proc mappings' needed to be reworked.
Anyway, just to be clear, will this new command be implemented
differently than the current `info proc mappings'? I don't know about
you, but cat'ing /proc/PID/maps is something that could be improved.
Thanks.
prev parent reply other threads:[~2011-11-09 20:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-21 19:54 Ulrich Weigand
2011-11-01 18:41 ` Jan Kratochvil
2011-11-01 21:28 ` Ulrich Weigand
2011-11-08 17:25 ` Ulrich Weigand
2011-11-09 16:37 ` Pedro Alves
2011-11-09 18:27 ` Ulrich Weigand
2011-11-09 19:31 ` Pedro Alves
2011-11-09 20:04 ` Sergio Durigan Junior [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3fwhxnjvw.fsf@redhat.com \
--to=sergiodj@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=pedro@codesourcery.com \
--cc=uweigand@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox