bug-cflow
[Top][All Lists]
Advanced

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

Re: [Bug-cflow] cflow-1.1 doesn't find main


From: Robert E. Michael
Subject: Re: [Bug-cflow] cflow-1.1 doesn't find main
Date: Fri, 08 Sep 2006 23:34:37 -0400

Sergey,
    I read some more of the info for gdb and learned how to apply
breakpoints.  By doing so, I traced the segmentation fault to line
275 in the lib/error.c file.  It is trying to print program_name,
which does not exist (gdb complains when I do a print program_name).
However, gdb prints 0x0 for program_invocation_name.  So there
seems to be something wrong with the definition of _LIBC, such
that it allows the alias of program_name to program_invocation_name,
but somehow program_invocation_name is never set.  Perhaps there
is a mistake in the Solaris implementation of LIBC such that
program_invocation_name is never set.  Perhaps line 270 or
error.c should be #ifdef _LIBC rather than #if _LIBC?

    If I place "if (program_name != NULL)" before line 275 and
recompile, then cflow runs and generates dozens of "redefined"
error messages.  I am not sure I understand enough about the
details of how cflow handles compiler variables like __STDC__
and __cplusplus.  Depending on what it does, there could be
multiple definitions in c.c, which is heavily laced with #ifdef
statements.  Do you get many "redefined" messages from your
run of cflow on c.c?

Bob Michael





reply via email to

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