public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/2140] New: 'delete' operator doesn't work on all variations
@ 2006-01-12  0:09 joshua dot i dot stone at intel dot com
  2006-01-12  1:19 ` [Bug translator/2140] " joshua dot i dot stone at intel dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: joshua dot i dot stone at intel dot com @ 2006-01-12  0:09 UTC (permalink / raw)
  To: systemtap

see http://sourceware.org/ml/systemtap/2006-q1/msg00051.html

Presently, use of the 'delete' operator does not generate valid code for all
possible variations.  It is agreed that 'delete' should work on indices of maps
or on the entire map, whether the map value-type is string, integer, or stat. 
It should probably also work as a reset for scalar stat variables as well, since
there's no other way to clear them.

It's debatable whether 'delete' should act as a reset for scalar strings and
integers, but since no-one seems to have a strong opinion against this, we
should probably add it for consistency.

See src/testsuite/buildok/delete.stp for a testcase which currently fails.

-- 
           Summary: 'delete' operator doesn't work on all variations
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: joshua dot i dot stone at intel dot com


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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/2140] 'delete' operator doesn't work on all variations
  2006-01-12  0:09 [Bug translator/2140] New: 'delete' operator doesn't work on all variations joshua dot i dot stone at intel dot com
@ 2006-01-12  1:19 ` joshua dot i dot stone at intel dot com
  2006-01-16 18:59 ` fche at redhat dot com
  2006-01-16 23:45 ` joshua dot i dot stone at intel dot com
  2 siblings, 0 replies; 4+ messages in thread
From: joshua dot i dot stone at intel dot com @ 2006-01-12  1:19 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From joshua dot i dot stone at intel dot com  2006-01-12 01:19 -------
Created an attachment (id=824)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=824&action=view)
first crack at a fix

Here's a patch that I thought would fix this, but it's not quite there.

There seems to be a disconnect with the way temporaries are defined - e.g. it
generates a Stat temporary (illegal), but I don't understand why.  Nothing in
the probe body tries to assign a Stat to a temp.  In fact, it generates temps
up to __tmp26, even though the highest I see referenced in the actual probe is
__tmp23.

-- 


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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/2140] 'delete' operator doesn't work on all variations
  2006-01-12  0:09 [Bug translator/2140] New: 'delete' operator doesn't work on all variations joshua dot i dot stone at intel dot com
  2006-01-12  1:19 ` [Bug translator/2140] " joshua dot i dot stone at intel dot com
@ 2006-01-16 18:59 ` fche at redhat dot com
  2006-01-16 23:45 ` joshua dot i dot stone at intel dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2006-01-16 18:59 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2006-01-16 18:59 -------
*** Bug 2157 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hunt at redhat dot com


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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug translator/2140] 'delete' operator doesn't work on all variations
  2006-01-12  0:09 [Bug translator/2140] New: 'delete' operator doesn't work on all variations joshua dot i dot stone at intel dot com
  2006-01-12  1:19 ` [Bug translator/2140] " joshua dot i dot stone at intel dot com
  2006-01-16 18:59 ` fche at redhat dot com
@ 2006-01-16 23:45 ` joshua dot i dot stone at intel dot com
  2 siblings, 0 replies; 4+ messages in thread
From: joshua dot i dot stone at intel dot com @ 2006-01-16 23:45 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From joshua dot i dot stone at intel dot com  2006-01-16 23:44 -------
Committed in CVS

translate.cxx   1.94
runtime/stat.c  1.4

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-01-16 23:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12  0:09 [Bug translator/2140] New: 'delete' operator doesn't work on all variations joshua dot i dot stone at intel dot com
2006-01-12  1:19 ` [Bug translator/2140] " joshua dot i dot stone at intel dot com
2006-01-16 18:59 ` fche at redhat dot com
2006-01-16 23:45 ` joshua dot i dot stone at intel dot com

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).