public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* frysk/rt/StackAccessors.java#getElfImage() suggestions?
@ 2007-04-27 14:35 Nurdin Premji
  0 siblings, 0 replies; only message in thread
From: Nurdin Premji @ 2007-04-27 14:35 UTC (permalink / raw)
  To: frysk

The method getElfImage() inside of frysk/rt/StackAccessors.java 
currently depends on a running process. It is used by libunwind to map 
an elfImage (or vdso segment) into local memory.  It works by finding 
the elf image file name and mmapping it into memory, also keeping track 
of the offset into the file that was mapped, and the lowAddress of that 
segment (as displayed in proc/$$/maps).

The question is how to refactor this to account for core processes.

One way is by using a Proc.getElfImageInfo method that could return the 
name, lowAddress, and offset fields to the getElfImage and it would just 
map that file. The problem comes with the vdso section, mapping this 
section would be different between core and running processes. There is 
a method: lib.unwind.Unwind.createElfImageFromVDSO (might be better to 
call it ...FromRunningProcessVDSO) which will create an elfImage from a 
running processes vdso so perhaps a similar method for core process VDSO 
could be created.

Any suggestions?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-26 21:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-27 14:35 frysk/rt/StackAccessors.java#getElfImage() suggestions? Nurdin Premji

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).