@@ -29,6 +29,7 @@ impl Tsffs {
2929 let start_processor = self
3030 . start_processor ( )
3131 . ok_or_else ( || anyhow ! ( "No start processor" ) ) ?;
32+ let start_processor_raw = start_processor. cpu ( ) ;
3233
3334 let start_info = match magic_number {
3435 MagicNumber :: StartBufferPtrSizePtr => {
@@ -54,6 +55,15 @@ impl Tsffs {
5455 . map_err ( |_| anyhow ! ( "Failed to set start time" ) ) ?;
5556 self . coverage_enabled = true ;
5657 self . save_initial_snapshot ( ) ?;
58+ // Collect windows coverage info if enabled
59+ if self . windows && self . symbolic_coverage {
60+ self . windows_os_info . collect (
61+ start_processor_raw,
62+ & self . debuginfo_download_directory ,
63+ self . guess_pdb_function_size ,
64+ & self . debug_info ,
65+ ) ?;
66+ }
5767 self . get_and_write_testcase ( ) ?;
5868 self . post_timeout_event ( ) ?;
5969 }
@@ -204,6 +214,16 @@ impl Tsffs {
204214 self . coverage_enabled = true ;
205215 self . save_initial_snapshot ( ) ?;
206216
217+ // Collect windows coverage info if enabled
218+ if self . windows && self . symbolic_coverage {
219+ self . windows_os_info . collect (
220+ processor,
221+ & self . debuginfo_download_directory ,
222+ self . guess_pdb_function_size ,
223+ & self . debug_info ,
224+ ) ?;
225+ }
226+
207227 self . get_and_write_testcase ( ) ?;
208228
209229 self . post_timeout_event ( ) ?;
@@ -236,6 +256,16 @@ impl Tsffs {
236256 self . coverage_enabled = true ;
237257 self . save_initial_snapshot ( ) ?;
238258
259+ // Collect windows coverage info if enabled
260+ if self . windows && self . symbolic_coverage {
261+ self . windows_os_info . collect (
262+ processor,
263+ & self . debuginfo_download_directory ,
264+ self . guess_pdb_function_size ,
265+ & self . debug_info ,
266+ ) ?;
267+ }
268+
239269 self . post_timeout_event ( ) ?;
240270 }
241271
@@ -571,7 +601,7 @@ impl Tsffs {
571601 ) -> Result < ( ) > {
572602 trace ! (
573603 self . as_conf_object( ) ,
574- "on_magic_instruction( {magic_number})"
604+ "Got magic instruction with magic # {magic_number})"
575605 ) ;
576606
577607 if object_is_processor ( trigger_obj) ? {
@@ -629,4 +659,15 @@ impl Tsffs {
629659
630660 Ok ( ( ) )
631661 }
662+
663+ pub fn on_control_register_write (
664+ & mut self ,
665+ trigger_obj : * mut ConfObject ,
666+ register_nr : i64 ,
667+ value : i64 ,
668+ ) -> Result < ( ) > {
669+ self . on_control_register_write_windows_symcov ( trigger_obj, register_nr, value) ?;
670+
671+ Ok ( ( ) )
672+ }
632673}
0 commit comments