On Thu, Nov 12, 2009 at 12:44:01AM +0100, Kurt Roeckx wrote:
> 
> > And then systemtap looks only at file under /lib/modules:
> > 
> >     open("/lib/modules/2.6.32-rc6/kernel/sound/core/snd.ko", O_RDONLY) = 3
> >     open("/usr/lib/../lib/elfutils/libebl_x86_64.so", O_RDONLY) = 3
> >     
> > open("/usr/lib/debug/.build-id/8d/19f404d7db2242e69c87419b8fd32f67fca584.debug",
> >  O_RDONLY) = -1 ENOENT (No such file or directory)
> >     open("/lib/modules/2.6.32-rc6/kernel/sound/core/snd.ko", O_RDONLY) = 3
> >     WARNING: cannot find module snd debuginfo: No DWARF information found
> 
> That might be a bug somewhere.  It really should try
> /usr/lib/debug/lib/modules/2.6.32-rc6/kernel/sound/core/snd.ko
> now.
> 
> > > As I understand the code, find-debuginfo.c:find_debuginfo_in_path()
> > > uses a default with ".debug" if no debuglink is set.
> > It looks like it does not try to look under /usr/lib/debug...
> 
> I'll take a look at this tomorrow.

So my understanding of the code is that it gets a list of path's
to look at.  It does:
  const Dwfl_Callbacks *const cb = mod->dwfl->callbacks;
  char *path = strdupa ((cb->debuginfo_path ? *cb->debuginfo_path : NULL)
                        ?: DEFAULT_DEBUGINFO_PATH);

And the default is:
libdwflP.h:#define DEFAULT_DEBUGINFO_PATH ":.debug:/usr/lib/debug"

systemtap seems to be changing the debuginfo_path.


Kurt




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to