File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,23 @@ export class CDTDebugConfigurationProvider
8989 ) ;
9090 if ( isAppReproducibleBuildEnabled === "y" ) {
9191 const buildDirPath = readParameter ( "idf.buildPath" , folder ) as string ;
92- config . initCommands . push (
93- `source ${ join ( buildDirPath , "prefix_map_gdbinit" ) } `
94- ) ;
92+ const gdbinitPrefixMap = join ( buildDirPath , "gdbinit" , "prefix_map" ) ;
93+ const gdbinitPrefixMapExists = await pathExists ( gdbinitPrefixMap ) ;
94+ if ( gdbinitPrefixMapExists ) {
95+ config . initCommands . push ( `source ${ gdbinitPrefixMap } ` ) ;
96+ } else {
97+ const prefix_map_gdbinit = join ( buildDirPath , "prefix_map_gdbinit" ) ;
98+ const prefix_map_gdbinitExists = await pathExists (
99+ prefix_map_gdbinit
100+ ) ;
101+ if ( prefix_map_gdbinitExists ) {
102+ config . initCommands . push ( `source ${ prefix_map_gdbinit } ` ) ;
103+ } else {
104+ window . showInformationMessage (
105+ `CONFIG_APP_REPRODUCIBLE_BUILD is enabled but no gdbinit prefix map was found.`
106+ ) ;
107+ }
108+ }
95109 }
96110 if ( typeof config . initialBreakpoint === "undefined" ) {
97111 config . initCommands . push ( `thb app_main` ) ;
You can’t perform that action at this time.
0 commit comments