Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* stack usage query
@ 2001-04-08 22:23 Vikram Pandita
  2001-04-08 23:02 ` Daniel Berlin
  0 siblings, 1 reply; 2+ messages in thread
From: Vikram Pandita @ 2001-04-08 22:23 UTC (permalink / raw)
  To: gdb

How do i get the stack usage by a Process/Thread using gdb?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: stack usage query
  2001-04-08 22:23 stack usage query Vikram Pandita
@ 2001-04-08 23:02 ` Daniel Berlin
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Berlin @ 2001-04-08 23:02 UTC (permalink / raw)
  To: Vikram Pandita; +Cc: gdb

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-08 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-08 22:23 stack usage query Vikram Pandita
2001-04-08 23:02 ` Daniel Berlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox