public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: "Andreas Groß" <gross_andreas@web.de>
Cc: gdb@sources.redhat.com
Subject: Re: Virtual memory
Date: Mon, 19 May 2003 17:02:00 -0000	[thread overview]
Message-ID: <20030519170206.GA5616@nevyn.them.org> (raw)
In-Reply-To: <200305191557.20097.gross_andreas@web.de>

On Mon, May 19, 2003 at 03:57:19PM +0000, Andreas Groß wrote:
> Hi there...
> 
> I'm programming a patch for gdb which gives out a state graph of a program. I 
> have the following problem:
> I store the state graph in the heap memory (using xmalloc). The problem is 
> that I get an out-of-memory-error while computing the state graph of huge 
> programs:
> 
> utils.c:981: gdb-internal-error: virtual memory exhausted: can't allocate 
> 49220 bytes.
> An internal GDB error was detected.  This may make further
> debugging unreliable.  Quit this debugging session? (y or n) y
> 
> My question: Is it possible to say gdb to allocate more virtual memory?

If you get that error, then you've really run out of memory, as
reported by your operating system; there's not much to be done about
it.  How big is this state graph anyway?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

      reply	other threads:[~2003-05-19 17:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-19 13:57 Andreas Groß
2003-05-19 17:02 ` Daniel Jacobowitz [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=20030519170206.GA5616@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=gross_andreas@web.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).