[PATCH 2/3] makedep: Output ELF debug file to .debug/ directory.
Rémi Bernon
rbernon at codeweavers.com
Mon May 25 09:32:39 CDT 2020
Linux perf isn't able to parse debug link from PE files either, but it
looks for similarly named files in relative a .debug directory.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
tools/makedep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/makedep.c b/tools/makedep.c
index 250250382fa8..b550534fd789 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -2356,7 +2356,7 @@ static const char *get_debug_file( struct makefile *make, const char *name )
const char *debug_file = NULL;
if (!make->is_cross || !crossdebug) return NULL;
if (!strcmp( crossdebug, "pdb" )) debug_file = strmake( "%s.pdb", get_base_name( name ));
- else if(!strncmp( crossdebug, "split", 5 )) debug_file = strmake( "%s.debug", name );
+ else if(!strncmp( crossdebug, "split", 5 )) debug_file = strmake( ".debug/%s", name );
if (debug_file) strarray_add( &make->debug_files, debug_file );
return debug_file;
}
--
2.26.1
More information about the wine-devel
mailing list