@@ -15,10 +15,13 @@ use windows::Win32::System::{
1515 } ,
1616} ;
1717
18- use crate :: os:: windows:: {
19- debug_info:: DebugInfo ,
20- idt:: IdtEntry64 ,
21- util:: { read_nul_terminated_string, read_unicode_string, read_virtual} ,
18+ use crate :: os:: {
19+ windows:: {
20+ debug_info:: DebugInfo ,
21+ idt:: IdtEntry64 ,
22+ util:: { read_nul_terminated_string, read_unicode_string, read_virtual} ,
23+ } ,
24+ DebugInfoConfig ,
2225} ;
2326
2427use super :: {
@@ -181,7 +184,7 @@ impl KernelInfo {
181184 base : u64 ,
182185 download_directory : P ,
183186 not_found_full_name_cache : & mut HashSet < String > ,
184- user_debug_info : & HashMap < String , Vec < PathBuf > > ,
187+ user_debug_info : DebugInfoConfig ,
185188 ) -> Result < Self >
186189 where
187190 P : AsRef < Path > ,
@@ -258,7 +261,7 @@ impl KernelInfo {
258261 processor : * mut ConfObject ,
259262 download_directory : P ,
260263 not_found_full_name_cache : & mut HashSet < String > ,
261- user_debug_info : & HashMap < String , Vec < PathBuf > > ,
264+ user_debug_info : DebugInfoConfig ,
262265 ) -> Result < Vec < Module > >
263266 where
264267 P : AsRef < Path > ,
@@ -313,7 +316,7 @@ impl KernelInfo {
313316 base,
314317 download_directory. as_ref ( ) ,
315318 not_found_full_name_cache,
316- user_debug_info,
319+ user_debug_info. clone ( ) ,
317320 )
318321 } )
319322 . ok ( ) ;
@@ -382,7 +385,7 @@ impl KernelInfo {
382385 processor : * mut ConfObject ,
383386 download_directory : P ,
384387 not_found_full_name_cache : & mut HashSet < String > ,
385- user_debug_info : & HashMap < String , Vec < PathBuf > > ,
388+ user_debug_info : DebugInfoConfig ,
386389 ) -> Result < Process >
387390 where
388391 P : AsRef < Path > ,
@@ -427,7 +430,7 @@ impl KernelInfo {
427430 processor : * mut ConfObject ,
428431 download_directory : P ,
429432 not_found_full_name_cache : & mut HashSet < String > ,
430- user_debug_info : & HashMap < String , Vec < PathBuf > > ,
433+ user_debug_info : DebugInfoConfig ,
431434 ) -> Result < Vec < Process > >
432435 where
433436 P : AsRef < Path > ,
@@ -477,7 +480,7 @@ impl KernelInfo {
477480 self . build ,
478481 download_directory. as_ref ( ) ,
479482 not_found_full_name_cache,
480- user_debug_info,
483+ user_debug_info. clone ( ) ,
481484 )
482485 . unwrap_or_default ( ) ,
483486 } ) ;
0 commit comments