This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How can I get a memory map out of a core file?
> Date: Sat, 7 Jun 2008 09:30:21 -0700
> Cc: Michael Snyder <msnyder@specifix.com>,
> gdb@sourceware.org
> From: Bruce Korb <bruce.korb@gmail.com>
>
> So, for me, the ideal solution is a command that yields
> (figures out) the valid address ranges, and an adequate backup would
> be to tell the "source" command to keep going after a failed command.
> Perhaps this is a "request for enhancement", though I hoped there might
> already be some hackish way of accomplishing what I need.
Along the hackish avenue -- does readelf provide the functionality you
need? If so, perhaps you could incorporate what it outputs into some
user-defined command, and use that?
Just a thought.