Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* hook to run on attach/exec?
@ 2004-01-29  4:08 Roland McGrath
  2004-01-29  4:13 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Roland McGrath @ 2004-01-29  4:08 UTC (permalink / raw)
  To: gdb-patches

I read someone mention somewhere recently that a new hook might be in the
works to be the spot where PIE support would figure out where the
executable got loaded.  Can someone give me the skinny?

For vsyscall DSO detection, the hook I need goes at the same place, I
think.  That is, a spot that gets run after an inferior execs (from "run"
or otherwise, skipping first "run" exec for the shell of course) or when
gdb attaches to an inferior or to a core dump image; i.e., whenever the
inferior's address space is freshly made or presumed to be.  Those are the
times you need to figure out where a PIE actually resides in memory, and
also the times you need to figure out where a system-supplied DSO is.

Last time I was looking into the vsyscall DSO support, it seemed like there
was no precisely appropriate hook already.  But I didn't know exactly what
to do about adding one.  Is my life easier now?


Thanks,
Roland


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

end of thread, other threads:[~2004-01-29  4:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29  4:08 hook to run on attach/exec? Roland McGrath
2004-01-29  4:13 ` Daniel Jacobowitz

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