From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Berlin To: Vikram Pandita Cc: gdb@sourceware.cygnus.com Subject: Re: stack usage query Date: Sun, 08 Apr 2001 23:02:00 -0000 Message-id: References: <3AD14746.C72D2577@miel.mot.com> X-SW-Source: 2001-04/msg00067.html Vikram Pandita 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.