This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/13022] probe module("*").function("*") does not work on arm


http://sourceware.org/bugzilla/show_bug.cgi?id=13022

--- Comment #1 from William Cohen <wcohen at redhat dot com> 2011-07-23 18:35:53 UTC ---
Set breakpoint __libdwfl_seterrno to find out where the errno gets set and
rerun the example:

Breakpoint 2, __libdwfl_seterrno (error=327711) at dwfl_error.c:143
143      global_error = canonicalize (error);
(gdb) where
#0  __libdwfl_seterrno (error=327711) at dwfl_error.c:143
#1  0x2ab87dc0 in find_section (mod=<value optimized out>, addr=0x7ed1c5d8)
    at derelocate.c:351
#2  0x00077f34 in dump_unwindsyms (m=0x1f9, userdata=<value optimized out>, 
    name=<value optimized out>, base=65536, arg=0x7ed1c7dc)
    at ../systemtap/translate.cxx:5057
#3  0x2ab8927c in dwfl_getmodules (dwfl=0xc07c50, 
    callback=0x77a60 <dump_unwindsyms(Dwfl_Module*, void**, char const*,
Dwarf_Addr, void*)>, arg=0x7ed1c7dc, offset=1) at dwfl_getmodules.c:103
#4  0x0006ea40 in emit_symbol_data (s=...) at ../systemtap/translate.cxx:5607
#5  0x000772e8 in translate_pass (s=...) at ../systemtap/translate.cxx:6049
#6  0x00016ef0 in passes_0_4 (s=...) at ../systemtap/main.cxx:760
#7  0x00017ffc in main (argc=<value optimized out>, argv=<value optimized out>)
    at ../systemtap/main.cxx:998

set breakpoint in find_section and see what is being passed in:

Breakpoint 1, find_section (mod=0xbd7f40, addr=0x7eb66bc8) at derelocate.c:322
322      if (unlikely (mod->reloc_info == NULL) && cache_sections (mod) < 0)
(gdb) print *mod
$1 = {dwfl = 0xbc6a20, next = 0xbd2dd8, userdata = 0x0, 
  name = 0xbc7c40 "ext3", low_addr = 65536, high_addr = 94532, main = {
    name = 0xbd8008 "/lib/modules/2.6.31.14.24-efikamx/build/fs/ext3/ext3.ko", 
    fd = -1, valid = false, relocated = false, elf = 0xbc8f40, bias = 0}, 
  debug = {name = 0x0, fd = 0, valid = false, relocated = false, 
    elf = 0xbc8f40, bias = 0}, ebl = 0xbd1138, e_type = 1, 
  elferr = DWFL_E_NOERROR, reloc_info = 0xc480d8, symfile = 0xbd7f60, 
  symdata = 0xbca978, syments = 987, symstrdata = 0xbcaa00, symxndxdata = 0x0, 
  dw = 0xbdb650, symerr = DWFL_E_NOERROR, dwerr = DWFL_E_NOERROR, 
  first_cu = 0x0, cu = 0x0, lazy_cu_root = 0x0, aranges = 0x0, 
  build_id_bits = 0x0, build_id_vaddr = 0, build_id_len = 0, ncu = 0, 
  lazycu = 1, naranges = 0, dwarf_cfi = 0x0, eh_cfi = 0x0, segment = 0, 
  gc = false}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]