Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* program spaces vs exec
@ 2011-10-05 18:15 Doug Evans
  2011-10-06 11:51 ` Pedro Alves
  0 siblings, 1 reply; 11+ messages in thread
From: Doug Evans @ 2011-10-05 18:15 UTC (permalink / raw)
  To: pedro; +Cc: gdb

Hi.

Question: Why does the program space remain unchanged across an exec?
[for reference sake, target = amd64-linux]

Is it just expediency?  Or is there a functional reason?

I ask because, for example, registering pretty-printers
with a particular progspace doesn't work as one would expect
in this case.  E.g., One needs the pretty-printers from the
previous program to be gone when the new one loads.

This concerns more than just exec of course.
E.g., Any time the "main" objfile is changed (e.g., "file foo") I'd intuitively
expect a new program space.

OTOH, it's entirely possible progspaces need to be looked at differently
for *nix.

For reference sake, from the archives I found this:
http://sourceware.org/ml/gdb-patches/2009-10/msg00110.html


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

end of thread, other threads:[~2011-10-09 20:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-05 18:15 program spaces vs exec Doug Evans
2011-10-06 11:51 ` Pedro Alves
2011-10-06 18:23   ` Tom Tromey
2011-10-06 18:43     ` Pedro Alves
2011-10-06 19:32       ` Tom Tromey
2011-10-06 19:35       ` Tom Tromey
2011-10-06 19:41         ` Pedro Alves
2011-10-07 15:43           ` Tom Tromey
2011-10-09 20:42           ` Doug Evans
2011-10-06 19:05   ` Doug Evans
     [not found]   ` <CADPb22RCDS-a2FBm=Bf-W8j1X8CXatEFdZOpk1MAJyUHTvJvWA@mail.gmail.com>
2011-10-06 19:35     ` Pedro Alves

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