From: "mjw at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug translator/10318] Bad address reading arg from mark probe
Date: Wed, 24 Jun 2009 09:43:00 -0000 [thread overview]
Message-ID: <20090624094335.29042.qmail@sourceware.org> (raw)
In-Reply-To: <20090623142132.10318.mjw@redhat.com>
------- 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.
next prev parent reply other threads:[~2009-06-24 9:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 14:21 [Bug translator/10318] New: " mjw at redhat dot com
2009-06-23 21:02 ` [Bug translator/10318] " mjw at redhat dot com
2009-06-24 9:07 ` mjw at redhat dot com
2009-06-24 9:43 ` mjw at redhat dot com [this message]
2009-06-24 10:01 ` mjw at redhat dot com
2009-06-24 10:54 ` roland at gnu dot org
2009-06-26 18:14 ` mjw at redhat dot com
2009-07-14 9:46 ` wenji dot huang at oracle dot com
2009-07-17 18:19 ` mjw at redhat dot com
2009-09-04 7:05 ` mjw at redhat dot com
2009-12-21 19:22 ` fche at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090624094335.29042.qmail@sourceware.org \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).