This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: 'char **environ' woes with cygwin
- To: chastain at cygnus dot com
- Subject: Re: 'char **environ' woes with cygwin
- From: DJ Delorie <dj at delorie dot com>
- Date: Fri, 25 Aug 2000 14:12:45 -0400
- CC: gdb at sourceware dot cygnus dot com
- References: <200008251808.LAA22026@train2.cygnus.com>
> space_used = marker_2 - marker_1;
This won't work in DJGPP either. sbrk() allocates memory from
wherever the system can find it - it doesn't always show up in
contiguous blocks. Not that many DJGPP users care how much memory gdb
is using.