This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Virtual memory
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Andreas Groß <gross_andreas at web dot de>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 19 May 2003 13:02:06 -0400
- Subject: Re: Virtual memory
- References: <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