Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_data/db/create_db.sh
          +++ new/usr/src/tools/smatch/src/smatch_data/db/create_db.sh
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37  ${bin_dir}/fill_db_type_size.pl "$PROJ" $info_file $db_file
  38   38  ${bin_dir}/copy_required_constraints.pl "$PROJ" $info_file $db_file
  39   39  ${bin_dir}/build_late_index.sh $db_file
  40   40  
  41   41  ${bin_dir}/fixup_all.sh $db_file
  42   42  if [ "$PROJ" != "" ] ; then
  43   43      ${bin_dir}/fixup_${PROJ}.sh $db_file
  44   44  fi
  45   45  
  46   46  ${bin_dir}/remove_mixed_up_pointer_params.pl $db_file
       47 +${bin_dir}/delete_too_common_fn_ptr.sh $db_file
  47   48  ${bin_dir}/mark_function_ptrs_searchable.pl $db_file
  48   49  
  49   50  # delete duplicate entrees and speed things up
  50   51  echo "delete from function_ptr where rowid not in (select min(rowid) from function_ptr group by file, function, ptr, searchable);" | sqlite3 $db_file
  51   52  
  52      -test -e  ${bin_dir}/${PROJ}.return_fixes && \
  53      -cat ${bin_dir}/${PROJ}.return_fixes | \
  54      -while read func old new ; do
  55      -    echo "update return_states set return = '$new' where function = '$func' and return = '$old';" | sqlite3 $db_file
  56      -done
       53 +${bin_dir}/apply_return_fixes.sh -p=${PROJ} $db_file
  57   54  
  58   55  mv $db_file smatch_db.sqlite
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX