summaryrefslogtreecommitdiffstats
path: root/src/config-bison.y
diff options
context:
space:
mode:
authorJiri Olsa <Jiri Olsa jolsa@redhat.com>2011-06-16 11:04:30 +0200
committerJiri Olsa <Jiri Olsa jolsa@redhat.com>2011-06-17 12:08:20 +0200
commit23916445a712b64e34735a7d06bc69bfcfa4b3b6 (patch)
tree6dba80cbad70536e18483b625b812fbbd722d5f0 /src/config-bison.y
parentb56d0731ccb162f5830a94c037d6975371a067ac (diff)
downloadlatrace-23916445a712b64e34735a7d06bc69bfcfa4b3b6.tar.gz
latrace-23916445a712b64e34735a7d06bc69bfcfa4b3b6.tar.xz
latrace-23916445a712b64e34735a7d06bc69bfcfa4b3b6.zip
config: Add SYM_NOEXIT option
Added SYM_NOEXIT option to be able to run only pltentry callback for specified symbols. This option is needed for setjmp symbol, otherwise the tracee segfaults. The "_setjmp" symbol is added as default value to the global config file.
Diffstat (limited to 'src/config-bison.y')
-rw-r--r--src/config-bison.y12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/config-bison.y b/src/config-bison.y
index 0000907..cc7d88b 100644
--- a/src/config-bison.y
+++ b/src/config-bison.y
@@ -64,7 +64,7 @@ static struct lt_list_head ln_names;
%token OPT_DEMANGLE OPT_BRACES OPT_ENABLE_ARGS
%token OPT_DETAIL_ARGS OPT_OUTPUT_TTY
%token OPT_LIBS OPT_LIBS_TO OPT_LIBS_FROM
-%token OPT_SYM OPT_SYM_OMIT OPT_SYM_BELOW
+%token OPT_SYM OPT_SYM_OMIT OPT_SYM_BELOW OPT_SYM_NOEXIT
%union
{
@@ -240,6 +240,16 @@ OPTIONS_DEF OPT_SYM_BELOW '=' list_names_comma
OPTION_ADD(LT_OPT_SYM_BELOW, sym_below, -1);
}
|
+OPTIONS_DEF OPT_SYM_NOEXIT '=' list_names_comma
+{
+ char sym_noexit[LT_SYMBOLS_MAXSIZE];
+
+ if (lt_config_ln_fill(&ln_names, sym_noexit, LT_SYMBOLS_MAXSIZE))
+ ERROR("failed to process sym_below option");
+
+ OPTION_ADD(LT_OPT_SYM_NOEXIT, sym_noexit, -1);
+}
+|
/* left blank intentionally */
list_names_comma: