Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* printing mapped memory regions
@ 2007-07-02 16:45 Balazs Scheidler
  2007-07-02 16:47 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Balazs Scheidler @ 2007-07-02 16:45 UTC (permalink / raw)
  To: gdb

Hi,

Is it possible to query the list of mapped virtual memory regions of a
running process/core file using gdb?

I would like something similar to what /proc/<pid>/maps file provides on
Linux, but unluckily that information is not available (grsec zeroes
those values so nothing to find there).

All I could find was "info shared" but it only prints file-backed
regions, I'd like to see mapped stacks for example.

"info mem" seems to do something completely different.

Is this possible somehow?

Thanks in advance.

-- 
Bazsi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printing mapped memory regions
  2007-07-02 16:45 printing mapped memory regions Balazs Scheidler
@ 2007-07-02 16:47 ` Daniel Jacobowitz
  2007-07-02 16:55   ` Balazs Scheidler
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-07-02 16:47 UTC (permalink / raw)
  To: Balazs Scheidler; +Cc: gdb

On Mon, Jul 02, 2007 at 06:44:59PM +0200, Balazs Scheidler wrote:
> Hi,
> 
> Is it possible to query the list of mapped virtual memory regions of a
> running process/core file using gdb?

No, not yet.

> I would like something similar to what /proc/<pid>/maps file provides on
> Linux, but unluckily that information is not available (grsec zeroes
> those values so nothing to find there).

If there were, GDB would read /proc/<pid>/maps to implement it.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printing mapped memory regions
  2007-07-02 16:47 ` Daniel Jacobowitz
@ 2007-07-02 16:55   ` Balazs Scheidler
  2007-07-02 17:04     ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Balazs Scheidler @ 2007-07-02 16:55 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

On Mon, 2007-07-02 at 12:47 -0400, Daniel Jacobowitz wrote:
> On Mon, Jul 02, 2007 at 06:44:59PM +0200, Balazs Scheidler wrote:
> > Hi,
> > 
> > Is it possible to query the list of mapped virtual memory regions of a
> > running process/core file using gdb?
> 
> No, not yet.
> 
> > I would like something similar to what /proc/<pid>/maps file provides on
> > Linux, but unluckily that information is not available (grsec zeroes
> > those values so nothing to find there).
> 
> If there were, GDB would read /proc/<pid>/maps to implement it.

Hmm.. any other way? The core file supposedly contains all of this
information doesn't it?

-- 
Bazsi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printing mapped memory regions
  2007-07-02 16:55   ` Balazs Scheidler
@ 2007-07-02 17:04     ` Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-07-02 17:04 UTC (permalink / raw)
  To: Balazs Scheidler; +Cc: gdb

On Mon, Jul 02, 2007 at 06:55:11PM +0200, Balazs Scheidler wrote:
> Hmm.. any other way? The core file supposedly contains all of this
> information doesn't it?

Some of it can be reconstructed from the core file, yes.  Not
everything though.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-02 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 16:45 printing mapped memory regions Balazs Scheidler
2007-07-02 16:47 ` Daniel Jacobowitz
2007-07-02 16:55   ` Balazs Scheidler
2007-07-02 17:04     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox