@@ -19,31 +19,33 @@ def test_core_file(self):
1919 core_file = os .path .join (current_dir , "linux-x86_64.core" )
2020
2121 self .create_debug_adapter ()
22- self .attach (exe_file , coreFile = core_file )
22+
23+ source_map = [["/home/labath/test" , current_dir ]]
24+ self .attach (exe_file , coreFile = core_file , sourceMap = source_map )
2325
2426 expected_frames = [
2527 {
2628 "column" : 0 ,
2729 "id" : 524288 ,
2830 "line" : 4 ,
2931 "name" : "bar" ,
30- "source" : {"name" : "main.c" , "path" : "/home/labath/test/ main.c" },
32+ "source" : {"name" : "main.c" , "path" : os . path . join ( current_dir , " main.c") },
3133 "instructionPointerReference" : "0x40011C" ,
3234 },
3335 {
3436 "column" : 0 ,
3537 "id" : 524289 ,
3638 "line" : 10 ,
3739 "name" : "foo" ,
38- "source" : {"name" : "main.c" , "path" : "/home/labath/test/ main.c" },
40+ "source" : {"name" : "main.c" , "path" : os . path . join ( current_dir , " main.c") },
3941 "instructionPointerReference" : "0x400142" ,
4042 },
4143 {
4244 "column" : 0 ,
4345 "id" : 524290 ,
4446 "line" : 16 ,
4547 "name" : "_start" ,
46- "source" : {"name" : "main.c" , "path" : "/home/labath/test/ main.c" },
48+ "source" : {"name" : "main.c" , "path" : os . path . join ( current_dir , " main.c") },
4749 "instructionPointerReference" : "0x40015F" ,
4850 },
4951 ]
0 commit comments