This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: stack usage query
- To: Vikram Pandita <pvikram at miel dot mot dot com>
- Subject: Re: stack usage query
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: 09 Apr 2001 02:02:28 -0400
- Cc: gdb at sourceware dot cygnus dot com
- References: <3AD14746.C72D2577@miel.mot.com>
Vikram Pandita <pvikram@miel.mot.com> writes:
In terms of memory size?
You don't.
Well, you could always just look at the current stack pointer, go up a
frame, look at the current stakc pointer, and subtract/add (depends on
if your stack grows up or down).
> How do i get the stack usage by a Process/Thread using gdb?
--
When I was little, my grandfather used to make me stand in a
closet for five minutes without moving. He said it was elevator
practice.