summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org>2016-11-12 12:09:49 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-11-14 21:34:33 (GMT)
commit614eabb225a9f62d1dbfe50fe44e7b9db9c0467d (patch) (side-by-side diff)
treeed0ae264afb6e4dc4b7bc3f3f908281ebd50f220 /src/main.c
parentb92047ed10c4da784c296dfcf09da250b7b637c7 (diff)
downloadcflow-614eabb225a9f62d1dbfe50fe44e7b9db9c0467d.tar.gz
cflow-614eabb225a9f62d1dbfe50fe44e7b9db9c0467d.tar.bz2
Include static symbols as root points in inverted graphs.
* src/cflow.h (linked_list_size): New function. * src/linked-list.c (linked_list_size): New function. * src/symbol.c (collect_symbols): Include static symbols, if allowed by sel. * src/main.c (parse_opt): Exclude static symbols for --xref
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index e034439..b70384f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -647,6 +647,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
break;
case 'x':
print_option = PRINT_XREF;
+ SYMBOL_EXCLUDE('s'); /* Exclude static symbols by default */
break;
case OPT_PREPROCESS:
preprocess_option = 1;

Return to:

Send suggestions and report system problems to the System administrator.