]> gcc.gnu.org Git - gcc.git/commit
analyzer: add __analyzer_dump_state
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 16 Jul 2021 19:47:06 +0000 (15:47 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 16 Jul 2021 19:47:06 +0000 (15:47 -0400)
commit9ea10c480565fa42b1804fb436f7e26ca77b71a3
tree06cc69c3752438b1cdccfa134b6e763d9a1ad303
parent5932dd35eaa816e8d9b6406c6c433395ff5b6162
analyzer: add __analyzer_dump_state

gcc/analyzer/ChangeLog:
* engine.cc (exploded_node::on_stmt_pre): Handle
__analyzer_dump_state.
* program-state.cc (extrinsic_state::get_sm_idx_by_name): New.
(program_state::impl_call_analyzer_dump_state): New.
* program-state.h (extrinsic_state::get_sm_idx_by_name): New decl.
(program_state::impl_call_analyzer_dump_state): New decl.
* region-model-impl-calls.cc
(call_details::get_arg_string_literal): New.
* region-model.h (call_details::get_arg_string_literal): New decl.

gcc/ChangeLog:
* doc/analyzer.texi: Add __analyzer_dump_state.

gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/analyzer-decls.h (__analyzer_dump_state): New.
* gcc.dg/analyzer/dump-state.c: New test.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/engine.cc
gcc/analyzer/program-state.cc
gcc/analyzer/program-state.h
gcc/analyzer/region-model-impl-calls.cc
gcc/analyzer/region-model.h
gcc/doc/analyzer.texi
gcc/testsuite/gcc.dg/analyzer/analyzer-decls.h
gcc/testsuite/gcc.dg/analyzer/dump-state.c [new file with mode: 0644]
This page took 0.068382 seconds and 6 git commands to generate.