Skip to content

Commit

Permalink
Add function to access the symbol table
Browse files Browse the repository at this point in the history
  • Loading branch information
aviralg committed Apr 1, 2019
1 parent 196e123 commit 2ff4c11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/include/Rdyntrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ int dyntrace_get_c_function_argument_evaluation(SEXP op);
int dyntrace_get_c_function_arity(SEXP op);
int dyntrace_get_primitive_offset(SEXP op);
const char *const dyntrace_get_c_function_name(SEXP op);
SEXP* dyntrace_get_symbol_table();

void(SET_PRENV_UNPROBED)(SEXP x, SEXP v);
void(SET_PRVALUE_UNPROBED)(SEXP x, SEXP v);
Expand Down
4 changes: 4 additions & 0 deletions src/main/dyntrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,7 @@ const char* const dyntrace_get_c_function_name(SEXP op) {
int offset = dyntrace_get_primitive_offset(op);
return R_FunTab[offset].name;
}

SEXP* dyntrace_get_symbol_table() {
return R_SymbolTable;
}

0 comments on commit 2ff4c11

Please sign in to comment.