public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Multiple inferiors and memory consumption
@ 2012-07-09 20:31 Vladimir Prus
  2012-07-10  2:29 ` Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Vladimir Prus @ 2012-07-09 20:31 UTC (permalink / raw)
  To: gdb


It could be me, but I always expected that using GDB multi-process functionality should be better than
separate GDB instances -- including memory consumption. So, I've just tried to run CVS gdb on itself
inside 4 inferiors, and it looks like each inferior, the amount of data used by GDB (the DATA column
in top) grows pretty much linearly. That is, it does not seem like GDB notices that symbol tables of
all 4 loaded executables are identical (There's a link to the chart: http://goo.gl/0auVf)

Is this something that is going to be improved upon in future?

And now for my real question -- is there any case when using multi-process to debug several applications
not related via parent-child relationship is better than running N copies of GDB?

Thanks,

-- 
Vladimir Prus
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/

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

end of thread, other threads:[~2012-07-12 11:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-09 20:31 Multiple inferiors and memory consumption Vladimir Prus
2012-07-10  2:29 ` Tom Tromey
2012-07-10  4:55   ` Vladimir Prus
2012-07-10 19:12     ` Tom Tromey
2012-07-10  8:04 ` Chris January
2012-07-10 19:09   ` Tom Tromey
2012-07-12 11:01     ` Chris January
2012-07-10 20:35 ` Marc Khouzam
2012-07-10 20:59   ` Paul_Koning
2012-07-10 21:06   ` Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).