summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index d2c33349..17e315e9 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2928,6 +2928,14 @@ dwarf_derived_probe::saveargs(dwarf_query& q, Dwarf_Die* scope_die, dwarf_var_ex
/* trick from visit_target_symbol_context */
target_symbol *tsym = new target_symbol;
token *t = new token;
+ /* We hypothesize accessing the argument
+ * The source_loc will be base_loc since no real one */
+ t->content = "$";
+ t->content += arg_name;
+ t->type = tok_identifier;
+ t->location.file = q.base_loc->tok->location.file;
+ t->location.column = q.base_loc->tok->location.column;
+ t->location.line = q.base_loc->tok->location.line;
tsym->tok = t;
tsym->base_name = "$";
tsym->base_name += arg_name;