bug-cflow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some variables show redefined abnormally.


From: zhangqinghao0811
Subject: Some variables show redefined abnormally.
Date: Thu, 25 Mar 2021 17:30:47 +0800

I'm trying to analyse the source code of isc dhcp with cflow. Here is the download link:
https://downloads.isc.org/isc/dhcp/4.4.2/dhcp-4.4.2.tar.gz

When I used cflow analyse the client mode, I got many logs, here is some passages:

And this is the corresponding code:
It seems that cflow regards "!ptr", "*ptr", "h=..." as variable definition.
Here is the steps of I execute in the root path of the source code:
1. "./configuration"
2. "make"
3. replace all main in "*.c" source core files with no_main except "./client/dhclient.c".
4. create "./cflow" file:
--symbol __extension__:qualifier
--symbol __leaf__:qualifier
--symbol __attribute__:wrapper
5. export CFLOWRC=./cflow.rc
6. execute:
cflow -m main \
./client/*.c \
./common/*.c \
./dhcpctl/*.c \
./keama/*.c \
./omapip/*.c \
./relay/*.c \
./server/*.c \
    --include-dir=./ \
    --include-dir=./includes/ \
--include-dir=./bind/bind-9.11.14/lib/isc/include/ \
--include-dir=./bind/bind-9.11.14/lib/dns/include/ \
--include-dir=./bind/bind-9.11.14/bin/named/include/named/ \
--include-dir=./bind/bind-9.11.14/lib/isccfg/include/ \
--include-dir=./bind/bind-9.11.14/lib/isc/unix/include/ \
--include-dir=./bind/bind-9.11.14/lib/isc/nothreads/include/ \
--include-dir=./bind/bind-9.11.14/lib/isc/alpha/include/ \
--include-dir=./bind/bind-9.11.14/lib/irs/include/ \
--include-dir=./bind/include/ \
--cpp > dhclient_call_graph.txt
Then I got above logs.
So, is that a bug? Or just I use cflow incorrectly?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]