diff options
author | wcohen <wcohen> | 2006-05-09 12:55:56 +0000 |
---|---|---|
committer | wcohen <wcohen> | 2006-05-09 12:55:56 +0000 |
commit | 0323ed4d37fee4f84251a74dce04271160d2d1f1 (patch) | |
tree | 6ef595d8821c3c7ffc2c2b54f59133831eed4adf /parse.cxx | |
parent | f272aaccb24b64bf1baa1d70722e0608d654297f (diff) | |
download | systemtap-steved-0323ed4d37fee4f84251a74dce04271160d2d1f1.tar.gz systemtap-steved-0323ed4d37fee4f84251a74dce04271160d2d1f1.tar.xz systemtap-steved-0323ed4d37fee4f84251a74dce04271160d2d1f1.zip |
Print out information to make it easier to determine which probe
in script associated with timing information.
Diffstat (limited to 'parse.cxx')
-rw-r--r-- | parse.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -77,6 +77,16 @@ tt2str(token_type tt) } ostream& +operator << (ostream& o, const source_loc& loc) +{ + o << loc.file << ":" + << loc.line << ":" + << loc.column; + + return o; +} + +ostream& operator << (ostream& o, const token& t) { o << tt2str(t.type); @@ -93,9 +103,7 @@ operator << (ostream& o, const token& t) } o << " at " - << t.location.file << ":" - << t.location.line << ":" - << t.location.column; + << t.location; return o; } |