]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Merge remote-tracking branch 'afbjorklund/hash_debug' into pr/279
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 29 Sep 2018 19:48:41 +0000 (21:48 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 29 Sep 2018 19:48:41 +0000 (21:48 +0200)
* afbjorklund/hash_debug:
  Register debug_end as an exit function instead
  Avoid using strcat and small realloc
  Rename helper functions, as suggested in review
  Save debug file streams, instead of reopening
  Add section markers, to the text file
  Rename hash_debug, add matching end function
  Improve documentation with example file names
  Output log to debug, even without a logfile
  Avoid global md variable in mdfour file
  Add --hash-file command, for convenience
  Add functionality to debug the hashing
  Add feature to also log into a memory buffer
  Add config for debug option ($CCACHE_DEBUG)
  Add util to return the command as a string

1  2 
doc/MANUAL.adoc
src/ccache.c
src/ccache.h
src/conf.c
test/suites/base.bash
unittest/test_conf.c

diff --cc doc/MANUAL.adoc
Simple merge
diff --cc src/ccache.c
index 1fc04d3f5bddb3374cdc450eb0f32a91aa96315c,28046a0f8e3a857dd208068d910ae50111e56bc9..93558be1b8c780a79d0c9049a241b520d963980b
@@@ -893,9 -910,10 +912,9 @@@ process_preprocessed_file(struct mdfou
                                        // hash it. See also how debug_prefix_map is handled.
                                        should_hash_inc_path = false;
                                }
 -                              free(cwd);
                        }
                        if (should_hash_inc_path) {
-                               hash_string(hash, inc_path);
+                               hash_buffer(hash, inc_path, strlen(inc_path));
                        }
  
                        remember_include_file(inc_path, hash, system);
diff --cc src/ccache.h
Simple merge
diff --cc src/conf.c
Simple merge
Simple merge
Simple merge