This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11847] New: sdt.h for ppc, -mno-regnames, use %I0%0
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 28 Jul 2010 21:57:23 -0000
- Subject: [Bug translator/11847] New: sdt.h for ppc, -mno-regnames, use %I0%0
- Reply-to: sourceware-bugzilla at sourceware dot org
We sort of gave up back in bug #11821, but it turns out we can
do somewhat better, if the "%0" is replaced with "%I0%0" for
each SDT_V2 operand slot, for powerpc only. This would cause
literals to be prefixed with "i", resolving the ambiguity.
Then in turn the translator's $nnnn regex matcher (tapsets.cxx:4675ish)
could accept "i" as a literal number prefix, not just "$".
Up to this point, it's all compatible with SDT_V2 binaries & logic.
However, the later REGISTER case can't presume that the lack-of-"i"
means a register number, since SDT_V2 binaries may exist that precede
this particular change. So a later magic number may need to be assigned
to communicate to the translator that %I0%0 was specified, and thus
lack-of-"i" means "register number, for sure".
--
Summary: sdt.h for ppc, -mno-regnames, use %I0%0
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11847
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.