public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Elfutils module reporting
@ 2007-07-16 20:05 Nurdin Premji
  2007-07-16 20:41 ` Roland McGrath
  0 siblings, 1 reply; 4+ messages in thread
From: Nurdin Premji @ 2007-07-16 20:05 UTC (permalink / raw)
  To: Roland McGrath, frysk

Roland, I'm trying to refresh dwfl objects in terms of the dwfl_modules. 
To optimize code and not create a new dwfl object every time a task changes.
As a first pass I was trying to remove all old modules and re-report new 
modules just by using dwfl_report_begin and dwfl_report_end. The 
libdwfl.h comments lead me to believe this is all that is necessary to 
remove all old modules and report only new modules. I plan to switch to 
dwfl_report_begin_add later on and only report modules that have changed.

I got an assertion failure at the dwfl_report_end stage
 /home/yyz/npremji/mainworkspace/frysk/frysk-imports/elfutils/libdwfl/dwfl_module.c:249: 
dwfl_report_end: Assertion `i == dwfl->nmodules' failed.

Looking at the dwfl_module.c file I see that dwfl_report_begin calls 
dwfl_report_begin_add, which clears all the modules. I thought that this 
function was supposed to preserver all the old modules?

Also how would I go about removing single modules in an updating 
scenario? i.e. is there a dwfl_report_remove_module function to link 
with dwfl_report_begin_add?

Thank you,
Nurdin.

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

end of thread, other threads:[~2007-07-16 22:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-16 20:05 Elfutils module reporting Nurdin Premji
2007-07-16 20:41 ` Roland McGrath
2007-07-16 22:00   ` Nurdin Premji
2007-07-16 22:25     ` Roland McGrath

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