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/10318] Bad address reading arg from mark probe


------- Additional Comments From mjw at redhat dot com  2009-06-24 09:43 -------
(In reply to comment #2)> loc2c-test doesn't want to play along though...
> $ ../loc2c-test -e ./uprobesgcc-O0-m32-debug-uprobeslibgcc-O0-m32-debug_exe
> 0x80484c3 arg1
> ../loc2c-test: fetch supported only for base type or pointer

loc2c-test needed to resolve through const and volatile types. I pushed a patch
for that. Now it does play along:


$ ../loc2c-test -e ./uprobesgcc-O0-m32-debug-uprobeslibgcc-O0-m32-debug_exe
0x80484c3 arg1
#define PROBEADDR 0x80484c3ULL
static void print_value(struct pt_regs *regs)
{
  intptr_t value;
  {
    intptr_t addr;
  intptr_t frame_base;
  { // DWARF expression: 0x75(8)
    {
      intptr_t s0;
        s0 = fetch_register (5) + 8L;
      frame_base = s0;
    }
  }
    { // DWARF expression: 0x91(-20)
      {
        intptr_t s0;
        s0 = frame_base + -20L;
        addr = s0;
      }
    }
    { int32_t value = deref (4, addr);value = value; }
  }
  printk (" ---> %ld\n", (unsigned long) value);
  return;

 deref_fault:
  printk (" => BAD ACCESS\n");
}


-- 


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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